mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
clarify the filenames needed for appdemon example (#7399)
Small thing but I at first try just copied the python and template code into the appdemon examples - which won't work as the names must match :)
This commit is contained in:
parent
d328e9782f
commit
e9686509ca
@ -150,6 +150,7 @@ automation:
|
|||||||
#### {% linkable_title Appdaemon event helper %}
|
#### {% linkable_title Appdaemon event helper %}
|
||||||
Helper app that creates a sensor `sensor.deconz_event` with a state that represents the id from the last event and an attribute to show the event data.
|
Helper app that creates a sensor `sensor.deconz_event` with a state that represents the id from the last event and an attribute to show the event data.
|
||||||
|
|
||||||
|
Put this in `apps.yaml`:
|
||||||
{% raw %}
|
{% raw %}
|
||||||
```yaml
|
```yaml
|
||||||
deconz_helper:
|
deconz_helper:
|
||||||
@ -157,6 +158,7 @@ deconz_helper:
|
|||||||
class: DeconzHelper
|
class: DeconzHelper
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Put this in `deconz_helper.py`:
|
||||||
```python
|
```python
|
||||||
import appdaemon.plugins.hass.hassapi as hass
|
import appdaemon.plugins.hass.hassapi as hass
|
||||||
import datetime
|
import datetime
|
||||||
@ -176,6 +178,7 @@ class DeconzHelper(hass.Hass):
|
|||||||
```
|
```
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
|
|
||||||
|
Note: the event will not be visible before one event gets sent.
|
||||||
|
|
||||||
#### {% linkable_title Appdaemon remote template %}
|
#### {% linkable_title Appdaemon remote template %}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user