This file contains hidden or 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
| alias: "Alert: NWS - Benton County Severity Based Actions" | |
| description: "" | |
| triggers: | |
| - trigger: state | |
| entity_id: | |
| - sensor.nws_alerts_benton_county_alerts | |
| conditions: [] | |
| actions: | |
| - variables: | |
| first_alert: > |
This file contains hidden or 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
| alias: "Light: Living Room Lights Dimmer" | |
| description: "" | |
| mode: queued | |
| max: 10 | |
| triggers: | |
| - trigger: state | |
| entity_id: | |
| - sensor.living_room_ceiling_lights_dimmer | |
| attribute: action | |
| id: Adjustment |
This file contains hidden or 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
| let switchId = 1; | |
| let hookId = 5; | |
| let checkPeriod = 60 * 1000; // in ms | |
| let haUrl = 'http://192.168.0.248:8123'; | |
| let mode = "detached"; // Could be "detached", "flip", "follow" or "momentary". Use "detached" when HA is in control | |
| function updateConfig(oldConfig) { | |
| //Apply the new config only if the switch is not already working in the desired mode | |
| if (oldConfig.in_mode !== mode) { | |
| print("switching it up"); |
This file contains hidden or 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
| alias: "Update: Shelly Devices" | |
| description: "" | |
| trigger: | |
| - platform: template | |
| value_template: >- | |
| {{ integration_entities('shelly') | select('match', '^update.') | | |
| select('is_state', 'on') | list | count > 0 }} | |
| condition: [] | |
| action: | |
| - repeat: |
This file contains hidden or 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
| let switchId = 1; | |
| let checkPeriod = 60 * 1000; // in ms | |
| let haUrl = 'http://192.168.50.10:8123'; | |
| let mode = "detached"; // Could be "detached", "flip", "follow" or "momentary". Use "detached" when HA is in control | |
| function updateConfig(oldConfig) { | |
| //Apply the new config only if the switch is not already working in the desired mode | |
| if (oldConfig.in_mode !== mode) { | |
| print("switching it up"); | |
| Shelly.call("Switch.SetConfig", { id: switchId, config: { in_mode: mode } }); |