Skip to content

Instantly share code, notes, and snippets.

@denix0
Created March 31, 2023 19:31
Show Gist options
  • Save denix0/e95e5f203ffb61df74af538dcf4cd353 to your computer and use it in GitHub Desktop.
Save denix0/e95e5f203ffb61df74af538dcf4cd353 to your computer and use it in GitHub Desktop.
alias: Xfinity Sets House Mode
description: ""
trigger:
- platform: state
entity_id:
- sensor.xfinity_status
to: home
id: home
- platform: state
entity_id:
- sensor.xfinity_status
to: away
id: away
- platform: state
entity_id:
- sensor.xfinity_status
to: night
id: night
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: home
sequence:
- service: input_select.select_option
data:
option: Home
target:
entity_id: input_select.house_mode
- conditions:
- condition: trigger
id: away
sequence:
- service: input_select.select_option
data:
option: Away
target:
entity_id: input_select.house_mode
- conditions:
- condition: trigger
id: night
sequence:
- service: input_select.select_option
data:
option: Night
target:
entity_id: input_select.house_mode
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment