Hi, I have a custom sensor template to figure out whether it is day or night and I want to expose that data to the knx bus.
- platform: template
sensors:
day_night:
value_template: >
{{ 1 if is_state('sensor.period_of_day','up') else 0 }}
My idea was to expose that entitiy to the bus via
expose:
- type: binary
entity_id: sensor.day_night
address: "6/4/1"
But I get the error message “mapping values are not allowed here in “/config/knx/expose/expose.yaml”, line 2, column 14” which points to the entitiy id of the expose.
So my question would be how can I expose the mapping? Or is there another way to do that?