A hot observable that will emit when there is a state change in the Home Assistant system.
Closes the connection to home assistant and unsubscribes all observables.
Returns a hot observable that will emit when the state of the given entity changes.
Type of the entity to monitor.
Id of the entity to monitor.
Returns a Entity instance or a object of a derived class representing the state of a given entity in the Home Assistant system.
A type derived from Entity matching the type of
entity represented by the given id
.
Entity id
Optional Class function of T , if omitted a object of class Entity will be returned.
A object of type T.
Returns a object derived from AbstractService ready to send service requests to the Home Assistant system.
A type derived from AbstractService.
Class function of T.
A object of type T.
Factory function creating new instances of the class.
Hostname (and port) of the running home assistant system to connect to.
A (long lived) token authorizing access to the Home Assistant system.
Generated using TypeDoc
Main entry point to the module. A object of this class represents a running home assistant instance that exposes the websocket and rest API:s.
Instances of this class should be created using the static
create
method.