I am trying to turn on power save mode on my tablet when I lock the screen. The trigger works, but the action does not. This is my code. Any help would be appreciated.
alias: Turn ON Power Save when screen is locked
description: Turns on power save mode when the screen is locked.
triggers:
- trigger: state
entity_id:- binary_sensor.sm_p610_keyguard_locked
to: “on”
conditions:
actions:
- binary_sensor.sm_p610_keyguard_locked
- target:
entity_id: binary_sensor.sm_p610_power_save
action: binary_sensor.turn_on
mode: single