Closed triumfas closed 2 years ago
Hi, thanks for reporting the error.
It basically fails to to set icon from map. Will add a check to handle this error.
Also would be interesting to see what data you have in outputs object.
I have switches which I pass to Google Home. Then it's easy to use Google Assistant to automate it using routines.
# Eldes switches
- platform: template
switches:
google_eldes_garage:
value_template: "{{ is_state('alarm_control_panel.garage', 'armed_away') }}"
turn_on:
service: script.eldes_arm_garage
turn_off:
service: script.eldes_disarm_garage
google_eldes_house:
value_template: "{{ is_state('alarm_control_panel.house', 'armed_away') }}"
turn_on:
service: script.eldes_arm_house
turn_off:
service: script.eldes_disarm_house
Added error handling for switch icons. You should not see any errors again, only info messages when enabled in your HA settings and if icon is missing in your output.
To get rid of info message, you should go to your Eldes App and set correct icons for automations/outputs.
Default icon for output is mdi:lightning-bolt-outline
.
Not sure what it's all about, but I see an error in log after HA restart. Might be some initial check that does not go through. No issues other than that - all is working as expected.