Hi,
I have connected an Shelly Door/Window Sensor and a Shelly 1 to my Garagedoor.
I also setup a cover to have the Status of the garage door as well as the command for open/close in one entity:
cover:
- platform: template
covers:
garage_door:
friendly_name: "Garagentor Cover"
#value_template: "{{ is_state('binary_sensor.garage_torstatus_binary', 'on') }}"
value_template: "{{ is_state('binary_sensor.shellydw2_garagentor_sensor_door', 'on') }}"
open_cover:
service: switch.turn_on
data:
entity_id: switch.shelly1_2
close_cover:
service: switch.turn_on
data:
entity_id: switch.shelly1_2
icon_template: >-
{% if states('binary_sensor.shellydw2_garagentor_sensor_door') == "on" %}
mdi:garage-open
{% else %}
mdi:garage
{% endif %}
So far it works, but the Icon of the door changes to purple if open. I want to have it in yellow. How can I do this?
Best Regards,
Johannes