I try to set state in automation to an input select but it fails and i have no errors in log.
my code for automation
- alias: "Desactive alarme quand j'arrive"
trigger:
- platform: state
entity_id: device_tracker.hokagegano_r7sf
from: 'not_home'
to: 'home'
action:
service: input_select.select_option
entity_id: input_select.alarmselect
data:
state: "off"
i tried with option in place of state, it fails too …
if you have any informations on that
aimc
(Andrew Cockburn)
June 27, 2016, 7:12pm
2
Try this:
- alias: "Desactive alarme quand j'arrive"
trigger:
- platform: state
entity_id: device_tracker.hokagegano_r7sf
from: 'not_home'
to: 'home'
action:
service: input_select.select_option
data:
entity_id: input_select.alarmselect
option: off
aimc:
alias: “Desactive alarme quand j’arrive”
trigger:
platform: state
entity_id: device_tracker.hokagegano_r7sf
from: ‘not_home’
to: ‘home’
action:
service: input_select.select_option
data:
entity_id: input_select.alarmselect
option: off
It rocks the correct syntax need “off” for option but it works thanks … again
faljeremy
(Faljeremy)
July 26, 2016, 7:59am
6
in the same area, how can i use a var from input_select with “time” platfrom?
like :
trigger:
platform: time
after: ‘input_slider…’
is it possible?
i want the user to tell the system when to activate the trigger