Hi,
I searched a lot for this but can,'t find a solution:
I am running rtl2mqtt to pick up many temperature sensors around the house and everything works as expected.
Now I added a double-switch to the mix with its own topic and a strange thing happens: As soon as a new state change occurs the state of the other switch changes to unknown, see the following images:
My config is as follows:
- platform: mqtt
state_topic: 'RTL_433/home/schalter'
name: 'Schalter links'
value_template: >-
{% if value_json.id == 38274473 and value_json.unit == 2 %}
{{ value_json.state }}
{% else %}
{{ states('sensor.schalter-links') }}
{% endif %}
- platform: mqtt
state_topic: 'RTL_433/home/schalter'
name: 'Schalter rechts'
value_template: >-
{% if value_json.id == 38274473 and value_json.unit == 3 %}
{{ value_json.state }}
{% else %}
{{ states('sensor.schalter-rechts') }}
{% endif %}
Does anybody have a clue what I can change to have both states show at the same time?
Thanks in advance