immersive-home/docs/reference/lib--home_apis--hass_ws--hass.md
2024-03-16 18:45:43 +01:00

16 KiB

Hass

Properties

Name Type Default
LOG_MESSAGES bool false
assist_handler Assist
auth_handler Auth
connected bool false
devices_template String
entities Dictionary
entitiy_callbacks CallbackMap
id int 1
integration_handler Integration
packet_callbacks CallbackMap
request_timeout float 10.0
socket WebSocketPeer
token String ""
url String ""

Methods

Returns Name
void _init ( url: String, token: String )
void _process ( delta: Variant )
void connect_ws ( )
Variant decode_packet ( packet: PackedByteArray )
Variant encode_packet ( packet: Dictionary )
void get_device ( id: String )
Variant get_devices ( )
Variant get_state ( entity: String )
void handle_connect ( )
void handle_disconnect ( )
void handle_packet ( packet: Dictionary )
Variant has_connected ( )
Variant has_integration ( )
void send_packet ( packet: Dictionary, with_id: bool )
void send_raw ( packet: PackedByteArray )
Variant send_request_packet ( packet: Dictionary, ignore_initial: bool )
Variant send_subscribe_packet ( packet: Dictionary, callback: Callable )
Variant set_state ( entity: String, state: Variant, attributes: Dictionary )
void start_subscriptions ( )
void update_room ( room: String )
Variant watch_state ( entity: String, callback: Callable )

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.

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_state ( entity: String ) -> 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.