@th1234 wrote:
Hello,
I created a slider temperature with shell command for AC and I created an autmation. When I moved the slider I saw that the automation triggered but I created a file to test if the input data is written in the file but nothing happened.
it’s the configuration.yaml:input_number: ac_temperature: name: A/C Setting initial: 24 min: 18 max: 32 step: 1 shell_command: set_ac_to_slider: echo {{ states("input_number.ac_temperature") }} > /home/docker/homeassistant/hass_config/kuku.txt
And it’s the automations.yaml file:
- id: 'ac_config' alias: 'Apply A/C Configuration' trigger: platform: state entity_id: input_number.ac_temperature action: service: shell_command.set_ac_to_slider
What I am doing wrong?
Thanks
Posts: 17
Participants: 2