254 lines
14 KiB
JSON
254 lines
14 KiB
JSON
[
|
|
{
|
|
"id": "'Server Rack: Overheating'",
|
|
"automation": "- alias: 'Server Rack: Overheating'\n description: Actions that should be taken when temperature inside the server rack\n exceeds the threshold\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.server_rack_overheating\n from: null\n to: 'on'\n conditions: []\n actions:\n - action: light.turn_on\n data:\n brightness_pct: 100\n rgb_color:\n - 255\n - 0\n - 0\n flash: long\n effect: Slow Pulse\n target:\n entity_id: light.apollo_temp_1b_42_0e5ec8_rgb_light\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "server rack overheating sensor",
|
|
"room": "server_rack",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.server_rack_overheating",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "apollo temp rgb light",
|
|
"room": "server_rack",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.apollo_temp_1b_42_0e5ec8_rgb_light",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Device Health: Z2M Offline Devices'",
|
|
"automation": "- alias: 'Device Health: Z2M Offline Devices'\n description: Notify about Zigbee devices that are offline for more than 24 hours\n trigger:\n - platform: state\n entity_id:\n - sensor.device_health_z2m_offline_devices\n action:\n - choose: []\n default:\n - service: notify.mobile_app_dev_phone\n data:\n title: Device Health\n message: \"The following Z2M devices are unavailable: \\n{{sensors}}\"\n - service: notify.persistent_notification\n data:\n title: Device Health\n message: 'The following Z2M devices are unavailable: {{sensors}}'\n variables:\n sensors: '{{ states(''sensor.device_health_z2m_offline_devices'') }}'\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "device health z2m offline devices sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.device_health_z2m_offline_devices",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Citroen C5X: Position'",
|
|
"automation": "- alias: 'Citroen C5X: Position'\n description: Create or update Citroen C5X device tracker\n trigger:\n - platform: state\n entity_id: sensor.c5x_latitude, sensor.c5x_longitude\n - platform: time_pattern\n hours: /8\n action:\n service: device_tracker.see\n data_template:\n dev_id: c5x_position\n gps:\n - '{{ states(''sensor.c5x_latitude'') }}'\n - '{{ states(''sensor.c5x_longitude'') }}'",
|
|
"config": [
|
|
{
|
|
"name": "c5x latitude sensor",
|
|
"room": "car",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.c5x_latitude",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "c5x longitude sensor",
|
|
"room": "car",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.c5x_longitude",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "c5x position tracker",
|
|
"room": "car",
|
|
"type": "device_tracker",
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "c5x_position"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Multimedia: Living Room Amplifier - Turn On for TV'",
|
|
"automation": "- alias: 'Multimedia: Living Room Amplifier - Turn On for TV'\n description: If TV in the living room turns on, then turn on the amplifier and switch\n input to optical\n triggers:\n - trigger: state\n entity_id:\n - media_player.tv_living_room\n to: 'on'\n conditions: []\n actions:\n - if:\n - condition: state\n entity_id: switch.yamaha_amplifer_switch\n state: 'off'\n then:\n - action: switch.turn_on\n metadata: {}\n data: {}\n target:\n entity_id: switch.yamaha_amplifer_switch\n - wait_for_trigger:\n - trigger: state\n entity_id:\n - switch.yamaha_amplifer_switch\n to: 'on'\n from: null\n for:\n hours: 0\n minutes: 0\n seconds: 2\n timeout:\n hours: 0\n minutes: 0\n seconds: 5\n milliseconds: 0\n - action: script.yamaha_amplifier_optical_in\n data: {}\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "tv living room",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.tv_living_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "yamaha amplifier switch",
|
|
"room": "living_room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.yamaha_amplifer_switch",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Multimedia: Living Room Amplifier - Turn On for WiiM'",
|
|
"automation": "- alias: 'Multimedia: Living Room Amplifier - Turn On for WiiM'\n description: If WiiM in the living room starts playing, then turn on the amplifier\n and switch input to coaxial\n triggers:\n - trigger: state\n entity_id:\n - media_player.mass_living_room\n - media_player.wiim_living_room\n to: playing\n conditions: []\n actions:\n - if:\n - condition: state\n entity_id: switch.yamaha_amplifer_switch\n state: 'off'\n then:\n - action: switch.turn_on\n metadata: {}\n data: {}\n target:\n entity_id: switch.yamaha_amplifer_switch\n - wait_for_trigger:\n - trigger: state\n entity_id:\n - switch.yamaha_amplifer_switch\n to: 'on'\n from: null\n for:\n hours: 0\n minutes: 0\n seconds: 2\n timeout:\n hours: 0\n minutes: 0\n seconds: 5\n milliseconds: 0\n - action: script.yamaha_amplifier_coaxial_in\n data: {}\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "yamaha amplifier switch",
|
|
"room": "living_room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.yamaha_amplifer_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mass living room",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.mass_living_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "wiim living room",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.wiim_living_room",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Multimedia: Living Room Amplifier - Turn On for Turntable'",
|
|
"automation": "- alias: 'Multimedia: Living Room Amplifier - Turn On for Turntable'\n description: If turntable in the living room turns on, then turn on the amplifier\n and switch input to phono\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.power_state_turntable\n from: null\n to: 'on'\n conditions: []\n actions:\n - if:\n - condition: state\n entity_id: switch.yamaha_amplifer_switch\n state: 'off'\n then:\n - action: switch.turn_on\n metadata: {}\n data: {}\n target:\n entity_id: switch.yamaha_amplifer_switch\n - wait_for_trigger:\n - trigger: state\n entity_id:\n - switch.yamaha_amplifer_switch\n to: 'on'\n from: null\n for:\n hours: 0\n minutes: 0\n seconds: 2\n timeout:\n hours: 0\n minutes: 0\n seconds: 5\n milliseconds: 0\n - action: script.yamaha_amplifier_phono_in\n data: {}\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "yamaha amplifier switch",
|
|
"room": "living_room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.yamaha_amplifer_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "turntable power state sensor",
|
|
"room": "living_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.power_state_turntable",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Multimedia: Living Room Amplifier - Turn Off'",
|
|
"automation": "- alias: 'Multimedia: Living Room Amplifier - Turn Off'\n description: Turn off amplifier in the living room if all multimedia devices are\n inactive or turned off\n triggers:\n - trigger: state\n entity_id:\n - media_player.mass_living_room\n - media_player.wiim_living_room\n to: idle\n for:\n hours: 0\n minutes: 5\n seconds: 0\n - trigger: state\n entity_id:\n - media_player.mass_living_room\n - media_player.wiim_living_room\n to: paused\n for:\n hours: 0\n minutes: 5\n seconds: 0\n - trigger: state\n entity_id:\n - media_player.tv_living_room\n to: 'off'\n for:\n hours: 0\n minutes: 5\n seconds: 0\n - trigger: state\n entity_id:\n - binary_sensor.power_state_turntable\n to: 'off'\n for:\n hours: 0\n minutes: 5\n seconds: 0\n conditions:\n - condition: not\n conditions:\n - condition: state\n entity_id: media_player.mass_living_room\n state: playing\n enabled: true\n - condition: state\n entity_id: media_player.wiim_living_room\n state: playing\n - condition: state\n entity_id: media_player.tv_living_room\n state: 'on'\n - condition: state\n entity_id: binary_sensor.power_state_turntable\n state: 'on'\n actions:\n - if:\n - condition: state\n entity_id: switch.yamaha_amplifer_switch\n state: 'on'\n then:\n - action: switch.turn_off\n metadata: {}\n data: {}\n target:\n entity_id: switch.yamaha_amplifer_switch\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "tv living room",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.tv_living_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "yamaha amplifier switch",
|
|
"room": "living_room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.yamaha_amplifer_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mass living room",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.mass_living_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "wiim living room",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.wiim_living_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "turntable power state sensor",
|
|
"room": "living_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.power_state_turntable",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Theo: Music'",
|
|
"automation": "- alias: 'Theo: Music'\n description: Turn on amplifier in the living room and start streaming Theo's playlist\n triggers: []\n conditions: []\n actions:\n - if:\n - condition: state\n entity_id: switch.yamaha_amplifer_switch\n state: 'off'\n then:\n - action: switch.turn_on\n metadata: {}\n data: {}\n target:\n entity_id: switch.yamaha_amplifer_switch\n - wait_for_trigger:\n - trigger: state\n entity_id:\n - switch.yamaha_amplifer_switch\n to: 'on'\n from: null\n for:\n hours: 0\n minutes: 0\n seconds: 2\n timeout:\n hours: 0\n minutes: 0\n seconds: 5\n milliseconds: 0\n - action: script.yamaha_amplifier_coaxial_in\n data: {}\n - action: media_player.shuffle_set\n metadata: {}\n data:\n shuffle: true\n target:\n entity_id: media_player.mass_living_room\n - action: music_assistant.play_media\n metadata: {}\n data:\n media_type: playlist\n enqueue: replace\n media_id: Theo's List\n target:\n entity_id: media_player.mass_living_room\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "yamaha amplifier switch",
|
|
"room": "living_room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.yamaha_amplifer_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mass living room",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.mass_living_room",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Theo: Music (Nijntje)'",
|
|
"automation": "- alias: 'Theo: Music (Nijntje)'\n description: Turn on amplifier in the living room and start streaming Theo's playlist\n triggers: []\n conditions: []\n actions:\n - if:\n - condition: state\n entity_id: switch.yamaha_amplifer_switch\n state: 'off'\n then:\n - action: switch.turn_on\n metadata: {}\n data: {}\n target:\n entity_id: switch.yamaha_amplifer_switch\n - wait_for_trigger:\n - trigger: state\n entity_id:\n - switch.yamaha_amplifer_switch\n to: 'on'\n from: null\n for:\n hours: 0\n minutes: 0\n seconds: 2\n timeout:\n hours: 0\n minutes: 0\n seconds: 5\n milliseconds: 0\n - action: script.yamaha_amplifier_coaxial_in\n data: {}\n - action: media_player.shuffle_set\n metadata: {}\n data:\n shuffle: false\n target:\n entity_id: media_player.mass_living_room\n - action: music_assistant.play_media\n metadata: {}\n data:\n media_type: playlist\n enqueue: replace\n media_id: Nijntje\n target:\n entity_id: media_player.mass_living_room\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "yamaha amplifier switch",
|
|
"room": "living_room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.yamaha_amplifer_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mass living room",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.mass_living_room",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
}
|
|
] |