Created
January 3, 2026 15:52
-
-
Save sloped/8634de0dbc0d43c58c8b36e16132b9cd to your computer and use it in GitHub Desktop.
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
| description: "match state of dimmer switch to state of shelly dimmer" | |
| triggers: | |
| - entity_id: | |
| - light.dining_room_north_dimmer_switch | |
| trigger: state | |
| conditions: [] | |
| actions: | |
| - if: | |
| - condition: device | |
| type: is_off | |
| device_id: light.dining_room_north_dimmer_switch | |
| entity_id: light.dining_room_north_dimmer_switch | |
| domain: light | |
| then: | |
| - type: turn_off | |
| device_id: light.dining_room_north_dimmer | |
| entity_id: light.dining_room_north_dimmer | |
| domain: light | |
| else: | |
| - action: light.turn_on | |
| target: | |
| entity_id: light.dining_room_north_dimmer | |
| data: | |
| brightness: >- | |
| {{state_attr('light.dining_room_north_dimmer_switch', | |
| 'brightness')}} | |
| mode: single |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment