Skip to content

Instantly share code, notes, and snippets.

@PurelyNicole
PurelyNicole / discogs_flow.json
Created August 12, 2020 14:34
Get a random item from my music collection
[
{
"id":"2a0c2fa5.4fe3f",
"type":"tab",
"label":"Flow 1",
"disabled":false,
"info":""
},
{
"id":"d8a0d482.d52128",
@PurelyNicole
PurelyNicole / switches.yaml
Last active December 10, 2023 20:01
Template switches to use Logitech Harmony with Home Assistant, Items in capitals should be replaced with the appropriate values on your system.
- 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: