Skip to content

Hass

Inherits: Node

Properties

NameTypeDefault
LOG_MESSAGESboolfalse
assist_handlerAssist
auth_handlerAuth
connectedboolfalse
devices_templateString
entitiesDictionary
entitiy_callbacksCallbackMap
history_handlerHistory
idint1
integration_handlerIntegration
packet_callbacksCallbackMap
request_timeoutfloat10.0
socketWebSocketPeer
tokenString""
urlString""

Methods

ReturnsName
void_init ( url: String, token: String )
void_process ( delta: Variant )
voidconnect_ws ( )
Variantdecode_packet ( packet: PackedByteArray )
Variantencode_packet ( packet: Dictionary )
voidget_device ( id: String )
Variantget_devices ( )
Variantget_history ( entity_id: Variant, start: Variant, end: Variant )
Variantget_state ( entity: String )
Variantget_voice_assistant ( )
voidhandle_connect ( )
voidhandle_disconnect ( )
voidhandle_packet ( packet: Dictionary )
Varianthas_connected ( )
Varianthas_integration ( )
voidsend_packet ( packet: Dictionary, with_id: bool )
voidsend_raw ( packet: PackedByteArray )
Variantsend_request_packet ( packet: Dictionary, ignore_initial: bool )
Variantsend_subscribe_packet ( packet: Dictionary, callback: Callable )
Variantset_state ( entity: String, state: Variant, attributes: Dictionary )
voidstart_subscriptions ( )
voidupdate_room ( room: String )
Variantwatch_state ( entity: String, callback: Callable )

Signals

on_connect ( )

No description provided yet.

on_disconnect ( )

No description provided yet.

Constants

AuthHandler = <Object>

No description provided yet.

IntegrationHandler = <Object>

No description provided yet.

AssistHandler = <Object>

No description provided yet.

HistoryHandler = <Object>

No description provided yet.

Property Descriptions

LOG_MESSAGES: bool

No description provided yet.

assist_handler: Assist

No description provided yet.

auth_handler: Auth

No description provided yet.

connected: bool

No description provided yet.

devices_template: String

No description provided yet.

entities: Dictionary

No description provided yet.

entitiy_callbacks: CallbackMap

No description provided yet.

history_handler: History

No description provided yet.

id: int

No description provided yet.

integration_handler: Integration

No description provided yet.

packet_callbacks: CallbackMap

No description provided yet.

request_timeout: float

No description provided yet.

socket: WebSocketPeer

No description provided yet.

token: String

No description provided yet.

url: String

No description provided yet.

Method Descriptions

_init (url: String , token: String ) -> void

No description provided yet.

_process (delta: Variant ) -> void

No description provided yet.

connect_ws ( ) -> void

No description provided yet.

decode_packet (packet: PackedByteArray ) -> Variant

No description provided yet.

encode_packet (packet: Dictionary ) -> Variant

No description provided yet.

get_device (id: String ) -> void

No description provided yet.

get_devices ( ) -> Variant

No description provided yet.

get_history (entity_id: Variant , start: Variant , end: Variant ) -> Variant

No description provided yet.

get_state (entity: String ) -> Variant

No description provided yet.

get_voice_assistant ( ) -> Variant

No description provided yet.

handle_connect ( ) -> void

No description provided yet.

handle_disconnect ( ) -> void

No description provided yet.

handle_packet (packet: Dictionary ) -> void

No description provided yet.

has_connected ( ) -> Variant

No description provided yet.

has_integration ( ) -> Variant

No description provided yet.

send_packet (packet: Dictionary , with_id: bool ) -> void

No description provided yet.

send_raw (packet: PackedByteArray ) -> void

No description provided yet.

send_request_packet (packet: Dictionary , ignore_initial: bool ) -> Variant

No description provided yet.

send_subscribe_packet (packet: Dictionary , callback: Callable ) -> Variant

No description provided yet.

set_state (entity: String , state: Variant , attributes: Dictionary ) -> Variant

No description provided yet.

start_subscriptions ( ) -> void

No description provided yet.

update_room (room: String ) -> void

No description provided yet.

watch_state (entity: String , callback: Callable ) -> Variant

No description provided yet.