Skip to content

Instantly share code, notes, and snippets.

@SnoFox
Created July 5, 2023 21:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SnoFox/67c3880f65a32e5858ebc527b66ab7e7 to your computer and use it in GitHub Desktop.
Save SnoFox/67c3880f65a32e5858ebc527b66ab7e7 to your computer and use it in GitHub Desktop.
alias: Inhibit auto-updates
description: ""
trigger:
- platform: state
entity_id:
- media_player.shield
- media_player.shield_cast
to: playing
id: inhibit
- platform: state
entity_id:
- person.josh
to: not_home
id: inhibit
- platform: state
entity_id:
- person.josh
to: home
- platform: state
entity_id:
- media_player.shield
- media_player.shield_cast
to: "off"
condition: []
action:
- if:
- condition: trigger
id: inhibit
then:
- service: input_boolean.turn_on
data: {}
target:
entity_id: input_boolean.update_inhibitor
else:
- service: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.update_inhibitor
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment