From e9686509cafa8153e052f6ef664bcc458b244c0a Mon Sep 17 00:00:00 2001 From: Max Rydahl Andersen Date: Wed, 7 Nov 2018 08:35:29 +0100 Subject: [PATCH] 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 :) --- source/_components/deconz.markdown | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/_components/deconz.markdown b/source/_components/deconz.markdown index db8927e9a4e..a579fef358f 100644 --- a/source/_components/deconz.markdown +++ b/source/_components/deconz.markdown @@ -150,6 +150,7 @@ automation: #### {% 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. +Put this in `apps.yaml`: {% raw %} ```yaml deconz_helper: @@ -157,6 +158,7 @@ deconz_helper: class: DeconzHelper ``` +Put this in `deconz_helper.py`: ```python import appdaemon.plugins.hass.hassapi as hass import datetime @@ -176,6 +178,7 @@ class DeconzHelper(hass.Hass): ``` {% endraw %} +Note: the event will not be visible before one event gets sent. #### {% linkable_title Appdaemon remote template %}