-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
84 changed files
with
2,686 additions
and
1,126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# | ||
# Change Nanoleaf Aurora's brightness. | ||
# | ||
- id: aurora_brightness | ||
alias: Aurora BRIGHTNESS | ||
trigger: | ||
# When a brightness level is changed. | ||
- platform: state | ||
entity_id: variable.aurora_brightness | ||
|
||
action: | ||
- service: light.turn_on | ||
data_template: | ||
entity_id: light.aurora | ||
brightness: "{{ states('variable.aurora_brightness') }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# | ||
# Return the Aurora to its default scheduled effect. | ||
# | ||
- id: aurora_default | ||
alias: Aurora DEFAULT | ||
trigger: | ||
# If the default effect is selected. | ||
- platform: state | ||
entity_id: input_select.aurora_effect | ||
to: Auto | ||
|
||
action: | ||
- service: notify.group | ||
data: | ||
title: 'Hass.io' | ||
message: "aurora_select reset: {{ states('input_select.aurora_effect') }}" | ||
|
||
# Remove the Aurora effect override. | ||
- service: input_boolean.turn_off | ||
entity_id: input_boolean.aurora_effect_override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,16 @@ | ||
# | ||
# Change Nanoleaf Aurora based on its loaded-in effects. | ||
# | ||
- id: aurora_effect | ||
alias: Apply Aurora effect | ||
alias: Aurora EFFECT | ||
trigger: | ||
# When an effect is received via MQTT. | ||
# When an effect is changed. | ||
- platform: state | ||
entity_id: sensor.aurora_effect | ||
entity_id: variable.aurora_effect | ||
|
||
action: | ||
- service: notify.group | ||
data: | ||
title: 'Hass.io' | ||
message: "aurora_effect received: {{ states('sensor.aurora_effect') }}" | ||
|
||
- service: light.turn_on | ||
data_template: | ||
entity_id: | ||
- light.aurora | ||
effect: "{{ states('sensor.aurora_effect') }}" | ||
|
||
# - service: light.turn_on | ||
# data: | ||
# entity_id: light.aurora | ||
|
||
# - service: rest_command.aurora_set_effect | ||
# data_template: | ||
# name: "{{ states('sensor.aurora_effect') }}" | ||
|
||
# Change Nanoleaf Aurora's brightness. | ||
- id: aurora_brightness | ||
alias: Apply Nanoleaf Aurora brightness | ||
trigger: | ||
# When a brightness level is received via MQTT. | ||
- platform: state | ||
entity_id: sensor.aurora_brightness | ||
|
||
action: | ||
- service: notify.group | ||
data: | ||
title: 'Hass.io' | ||
message: "aurora_brightness received: {{ states('sensor.aurora_brightness') }}" | ||
|
||
- delay: | ||
seconds: 5 | ||
|
||
- service: light.turn_on | ||
data_template: | ||
entity_id: light.aurora | ||
brightness: "{{ states('sensor.aurora_brightness') }}" | ||
|
||
# - service: rest_command.aurora_set_brightness | ||
# data_template: | ||
# brightness: "{{ states('sensor.aurora_brightness') }}" | ||
|
||
effect: "{{ states('variable.aurora_effect') }}" |
Oops, something went wrong.