Basically making sure the entity is off, but not longer then 2 hours off. Does that work?
- condition: device
type: is_off
device_id: 39532d4e686f8fa98d291b8b9caf2732
entity_id: 47c75d1edbd4edd219d6fe26840a7c4f
domain: switch
- condition: not
conditions:
- condition: device
type: is_off
device_id: 39532d4e686f8fa98d291b8b9caf2732
entity_id: 47c75d1edbd4edd219d6fe26840a7c4f
domain: switch
for:
hours: 2
minutes: 0
seconds: 0```