Skip to content

Instantly share code, notes, and snippets.

@mattiasflodin
Last active October 31, 2020 11:28
Show Gist options
  • Save mattiasflodin/84237064c827d4d3c4d7d4752129b854 to your computer and use it in GitHub Desktop.
Save mattiasflodin/84237064c827d4d3c4d7d4752129b854 to your computer and use it in GitHub Desktop.
Automatiseringar
choose:
- conditions:
- condition: or
conditions:
- condition: state
entity_id: input_select.phase
state: Sova
- condition: state
entity_id: input_select.phase
state: Borta
sequence:
- scene: scene.kallare_av
- conditions:
- condition: state
entity_id: input_boolean.projector
state: 'on'
sequence:
- scene: scene.kallare_projektor
- conditions:
- condition: state
entity_id: input_select.phase
state: Tagga ner
sequence:
- scene: scene.kallare_tagga_ner
- conditions:
- condition: state
entity_id: input_select.phase
state: Nattljus
sequence:
- scene: scene.kallare_nattljus
default:
- scene: scene.kallare_hemma
choose:
- conditions:
- condition: or
conditions:
- condition: state
entity_id: input_select.phase
state: Borta
- condition: state
entity_id: input_select.phase
state: Sova
sequence:
- scene: scene.resten_av
- conditions:
- condition: state
entity_id: input_select.phase
state: Nattljus
sequence:
- scene: scene.resten_nattljus
- conditions:
- condition: state
entity_id: input_select.phase
state: Tagga ner
sequence:
- scene: scene.resten_tagga_ner
- conditions:
- condition: state
entity_id: input_boolean.daylight_status
state: 'on'
sequence:
- scene: scene.resten_hemma_dag
default:
- scene: scene.resten_hemma_kvall
choose:
- conditions:
- condition: or
conditions:
- condition: state
entity_id: input_select.phase
state: Borta
- condition: state
entity_id: input_select.phase
state: Sova
sequence:
- scene: scene.alla_sovrum_av
- conditions:
- condition: state
entity_id: input_select.phase
state: Nattljus
sequence:
- scene: scene.sovrum_nattljus
- conditions:
- condition: state
entity_id: input_select.phase
state: Tagga ner
sequence:
- scene: scene.mitt_sovrum_tagga_ner
- choose:
- conditions:
- condition: state
entity_id: input_boolean.kids_status
state: 'on'
sequence:
- scene: scene.barnens_sovrum_tagga_ner
default:
- scene: scene.barnens_sovrum_av
- conditions:
- condition: state
entity_id: input_boolean.daylight_status
state: 'on'
sequence:
- scene: scene.alla_sovrum_av
- conditions:
- condition: state
entity_id: input_select.phase
state: Vakna
sequence: []
default:
- scene: scene.mitt_sovrum_hemma_kvall
- choose:
- conditions:
- condition: state
entity_id: input_boolean.kids_status
state: 'on'
sequence:
- scene: scene.barnens_sovrum_hemma_kvall
default:
- scene: scene.barnens_sovrum_av
choose:
- conditions:
- condition: or
conditions:
- condition: state
entity_id: input_select.phase
state: Borta
- condition: state
entity_id: input_select.phase
state: Sova
sequence:
- scene: scene.vardagsrum_av
- conditions:
- condition: state
entity_id: input_select.phase
state: Nattljus
sequence:
- scene: scene.vardagsrum_nattljus
- conditions:
- condition: state
entity_id: input_boolean.daylight_status
state: 'on'
sequence:
- scene: scene.vardagsrum_av
- conditions:
- condition: state
entity_id: input_boolean.eating
state: 'on'
sequence:
- scene: scene.vardagsrum_ata
- conditions:
- condition: state
entity_id: input_select.phase
state: Tagga ner
sequence:
- scene: scene.vardagsrum_tagga_ner
default:
- scene: scene.vardagsrum_hemma_kvall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment