Last active
December 10, 2023 20:01
-
-
Save PurelyNicole/09706613f71d96e79e7a901e70a9085d to your computer and use it in GitHub Desktop.
Template switches to use Logitech Harmony with Home Assistant, Items in capitals should be replaced with the appropriate values on your system.
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
- platform: template | |
switches: | |
VIRTUAL_SWITCH_NAME: | |
value_template: "{{ is_state_attr('remote.REMOTE_NAME', 'current_activity', 'ACTIVITY NAME') }}" | |
turn_on: | |
service: remote.turn_on | |
entity_id: remote.REMOTE_NAME | |
data: | |
activity: "ACTIVITY_ID" | |
turn_off: | |
service: remote.turn_off | |
entity_id: remote.REMOTE_NAME | |
data: | |
activity: "-1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment