Add entities
This commit is contained in:
parent
a8c7b0fee0
commit
96d65fb780
1 changed files with 6 additions and 1 deletions
|
@ -33,7 +33,7 @@ hass.start()
|
||||||
living_room = hass.states.get('group.living_room')
|
living_room = hass.states.get('group.living_room')
|
||||||
```
|
```
|
||||||
|
|
||||||
### {% linkable_title Get details about servies and events %}
|
### {% linkable_title Get details about services, events, and entitites %}
|
||||||
|
|
||||||
Similar to the output in the "Developer Tools" of the frontend.
|
Similar to the output in the "Developer Tools" of the frontend.
|
||||||
|
|
||||||
|
@ -51,6 +51,11 @@ print('\n-- Available event')
|
||||||
events = remote.get_event_listeners(api)
|
events = remote.get_event_listeners(api)
|
||||||
for event in events:
|
for event in events:
|
||||||
print(event)
|
print(event)
|
||||||
|
|
||||||
|
print('\n-- Available entities')
|
||||||
|
entities = remote.get_states(api)
|
||||||
|
for entity in entities:
|
||||||
|
print(entity)
|
||||||
```
|
```
|
||||||
|
|
||||||
### {% linkable_title Get the state of an entity %}
|
### {% linkable_title Get the state of an entity %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue