mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 01:06:52 +00:00
Add entities
This commit is contained in:
parent
a8c7b0fee0
commit
96d65fb780
@ -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…
x
Reference in New Issue
Block a user