I’m trying to turn off my pi
My script did work, but now it stopped.
Can some one help me to make it work again?
I think some update bricked my script, i am lost in fixing it.
I validate all the switches, sensors and links they are all fine.
script_kill_ender3:
sequence:
# This is written using the Script Syntax
- service: rest_command.ender3_pi_request
- wait_template: "{{ is_state('binary_sensor.ping_ender3_pi', 'off') }}"
- delay: '00:01:00'
- service: switch.turn_off
entity_id: switch.energy_temp_relay_3
script_pwr_ender_off:
sequence:
# This is written using the Script Syntax
- service: switch.turn_off
entity_id: switch.energy_temp_relay_3
I’m on it for days now and cannot get it to work.
Where am i going wrong?
The indenting is incorrect. Your scripts are not following the standard of using two spaces to indent a line. Look at the examples in the Script documentation and you’ll see everything is neatly indented by two spaces.
script_kill_ender3:
sequence:
# This is written using the Script Syntax
- service: rest_command.ender3_pi_request
- wait_template: "{{ is_state('binary_sensor.ping_ender3_pi', 'off') }}"
- delay: '00:01:00'
- service: switch.turn_off
data:
entity_id: switch.energy_temp_relay_3
script_pwr_ender_off:
sequence:
# This is written using the Script Syntax
service: switch.turn_off
data:
entity_id: switch.energy_temp_relay_3