Hi! This is my first post here and i really like Home-assistant.
I have a question about switch in automation, i use a Broadlink to turn on and off a lamp in automation with time but suddenly the switch_on and switch_off stopped to working, when i changed to homeassistant_on and off it started to working again. Have this Something to do do with some updates ore why dit it suddenly stopped to working? Thank you all how have made this home-assistant!
It would be helpful if you could post your complete automation. What exactly do you mean by âI use a broadlinkâ? What kind of switches do you use? Cheers, Markus
Sorry for my late reply, been little busy. I use Broadlink rm pro to control the lights in automation, here is my configurations.
switch:
- platform: broadlink
host: 192.168.1.87
mac: âmy mac adressâ
timeout: 30
friendly_name: âPro1â
type: rm
switches:
garage_light:
friendly_name: âGarage lightâ
command_on: âexM0AAsgDB8MHwwfIQoMAAFEIQoMHyELIQogCwwfIAshCgwgDCAgCwsfDB8MHyEKDCALHyEKDB8AAAAAâ
command_off: âezs0ACEKIQshCgwfIQsgCwwfDB8gCwwgDB8MHyEKDB8MHyEKDB8MIAwfDCAgCgwfDAABRCELCyAAAAAAâ
Automation
-
id: light_on_at_morning
alias: Light on at morning
hide_entity: false
initial_state: âtrueâ
trigger:- platform: time
at: â07:15:00â
condition: - condition: time
weekday:- mon
- tue
- wed
- thu
- fri
action:
service: homeassistant.turn_on
entity_id:
- group.garage
- platform: time
-
id: light_off_at_morning
alias: Light off at morning
hide_entity: false
initial_state: âtrueâ
trigger:- platform: time
at: â08:15:00â
condition: - condition: time
weekday:- mon
- tue
- wed
- thu
- fri
action:
service: homeassistant.turn_off
entity_id:
- group.garage
Groups
default_view:
name: Froms
view: yes
entities: - group.garage
garage:
name: Garage
view: true
entities: - switch.garage_light
- platform: time
But i couldn´t get switch_on switch_off to work suddenly, only homeassistant_on and off but i´m glad that is working with something