Spook -Your homie

Frenk…

Holy crap man, I owe you many frosty beverages…

Spook's own state trigger. This is a big one. It is a scary good and extremely flexible trigger: Home Assistant's old school state trigger, but on steroids. Point it at anything a target covers (entities, devices, areas, floors, labels), or leave the target empty and pick from everything by domain, integration or device class. Exclude things again just as easily. Follow an attribute instead of the state, use from, to, not from and not to, and decide whether it fires per entity, for the first one to get there, or only once all of them are. Add a for, with a blip tolerance so a sensor dropping off the network for a few seconds does not start the wait over, and restarts and router reboots no longer set off everything at once. Any outside door left open for five minutes, except the garage, is one trigger:

trigger: spook.state_changed
target:
  label_id: outside_door
options:
  device_class: door
  exclude_target:
    area_id: garage
  to: "on"
  for: "00:05:00"

^^^ If anyone’s paying attention. GAME CHANGER!

(Read: You can trigger on a label, then clamp on state - he just eliminated the need for a template blueprint in Room Manager in ZenOS.)

(now give me a way to test is_admin)

3 Likes