@Taaamten wrote:
Hi
Been running an old version of Hassbian with home assistant but after getting a Pi4 I also upgraded the Home Assistant and is now running Hass.io v 0.103.0.
I’ve moved around my tradfri lights from tradfri bridge to hue, and all buttons, remotes etc to deconz.
So far all is ok, but when I tried to integrate my virtual sensors I used Before I can’t get them to work.
I have a bunch of input_select: boxes set for different light scenes and states for presence detections and corresponding virtual sensors checking the status of the input select boxes. By checking these sensors I could trigger automations depending on the the Choice of the input_selection box.
Now these sensors never show up.examplke of the input_select, that actually works:
input_select: farstun_scene_status_dropdown: name: 'Farstuns Scener' options: - 'Dag' - 'Natt' - 'Av' initial: 'Av'
The status of the selection was detected by this:
sensor: - platform: template sensors: farstun_scene_status: value_template: '{{ states.input_select.farstun_scene_status_dropdown.state }}' friendly_name: 'Scener i farstun'
Reading up on this I know it is better to format the template as states(…) but the problem is that I can’t get the system to add this sensor at all. Any Idea to how to solve this?
Posts: 8
Participants: 3