#I'm trying to set up a template sensor.
1 messages · Page 1 of 1 (latest)
I tried adding this to my configuration.yaml.
template:
- trigger:
platform: event
event_type: "zha_event"
binary_sensor:
- name: Event recently fired
auto_off: 5
state: true
After restarting I trigger a zigbee event (which is registered in the devtools event listener), look for the sensor in the states tab, but it's not showing up. Logs don't show anything. I tried ommiting the "event_type", this leads to the logs showing that error.
I'm also not sure where to put quotation marks. The examples in the documentation above sometimes use them for name, sometimes not. Same for the event_type, sometimes used sometimes now.
Does anyone have an idea what I'm doing wrong? 🙂
To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks.
```yaml
example: here
```
Don't forget you can edit your post rather than repeatedly posting the same thing.
To check your configuration use the command for your install method:
I ran the configuration check, it says everything's ok