1601 lines
68 KiB
JSON
1601 lines
68 KiB
JSON
[
|
||
{
|
||
"id": "'1615638107644'",
|
||
"automation": "- id: '1615638107644'\n alias: 'Alert: Low salt level'\n description: ''\n trigger:\n - type: distance\n platform: device\n device_id: f93fcb10f5467ec5d73867e8e7bfb88c\n entity_id: baeb3502f118115b51c15bb0da8962e3\n domain: sensor\n above: 43\n for:\n hours: 1\n minutes: 0\n seconds: 0\n condition: []\n action:\n - service: input_boolean.turn_on\n target:\n entity_id: input_boolean.low_salt\n data: {}\n - device_id: c63b36e2a50cd3ffd1880f0aae89cf06\n domain: mobile_app\n type: notify\n message: Check Salt Level\n title: Water Softner\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "water softener salt level sensor",
|
||
"room": "garage",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.garage_monitor_salt_level",
|
||
"device_id": "f93fcb10f5467ec5d73867e8e7bfb88c"
|
||
}
|
||
},
|
||
{
|
||
"name": "low salt input boolean",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.low_salt",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "mobile app notification",
|
||
"room": null,
|
||
"type": "mobile_app",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "c63b36e2a50cd3ffd1880f0aae89cf06"
|
||
}
|
||
},
|
||
{
|
||
"name": "water softener salt level sensor 2",
|
||
"room": "garage",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "baeb3502f118115b51c15bb0da8962e3",
|
||
"device_id": "f93fcb10f5467ec5d73867e8e7bfb88c"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1615638220241'",
|
||
"automation": "- id: '1615638220241'\n alias: 'State Change: Reset Salt Level Input Boolean'\n description: ''\n trigger:\n - type: value\n platform: device\n device_id: f93fcb10f5467ec5d73867e8e7bfb88c\n entity_id: sensor.garage_monitor_salt_level\n domain: sensor\n below: 20\n for:\n hours: 1\n minutes: 0\n seconds: 0\n milliseconds: 0\n condition: []\n action:\n - service: input_boolean.turn_off\n target:\n entity_id: input_boolean.low_salt\n data: {}\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "water softener salt level sensor",
|
||
"room": "garage",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.garage_monitor_salt_level",
|
||
"device_id": "f93fcb10f5467ec5d73867e8e7bfb88c"
|
||
}
|
||
},
|
||
{
|
||
"name": "low salt input boolean",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.low_salt",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "water softener salt level sensor 2",
|
||
"room": "garage",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "baeb3502f118115b51c15bb0da8962e3",
|
||
"device_id": "f93fcb10f5467ec5d73867e8e7bfb88c"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1615640713545'",
|
||
"automation": "- id: '1615640713545'\n alias: 'Action: Turn on Loft Fan above 30'\n description: ''\n trigger:\n - type: temperature\n platform: device\n device_id: 11f3b2cca347d360c859eb46718cc34c\n entity_id: sensor.loft_fan_temperature\n domain: sensor\n above: 30\n for:\n hours: 0\n minutes: 5\n seconds: 0\n milliseconds: 0\n condition: []\n action:\n - type: turn_on\n device_id: 11f3b2cca347d360c859eb46718cc34c\n entity_id: switch.sonoff_loft_fan\n domain: switch\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "loft fan temperature sensor",
|
||
"room": "loft",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.loft_fan_temperature",
|
||
"device_id": "11f3b2cca347d360c859eb46718cc34c"
|
||
}
|
||
},
|
||
{
|
||
"name": "loft fan switch",
|
||
"room": "loft",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.sonoff_loft_fan",
|
||
"device_id": "11f3b2cca347d360c859eb46718cc34c"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1615640737825'",
|
||
"automation": "- id: '1615640737825'\n alias: 'Action: Turn off Loft Fan below 30'\n description: ''\n trigger:\n - type: temperature\n platform: device\n device_id: 11f3b2cca347d360c859eb46718cc34c\n entity_id: sensor.loft_fan_temperature\n domain: sensor\n below: 30\n for:\n hours: 0\n minutes: 5\n seconds: 0\n milliseconds: 0\n condition: []\n action:\n - type: turn_off\n device_id: 11f3b2cca347d360c859eb46718cc34c\n entity_id: switch.sonoff_loft_fan\n domain: switch\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "loft fan temperature sensor",
|
||
"room": "loft",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.loft_fan_temperature",
|
||
"device_id": "11f3b2cca347d360c859eb46718cc34c"
|
||
}
|
||
},
|
||
{
|
||
"name": "loft fan switch",
|
||
"room": "loft",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.sonoff_loft_fan",
|
||
"device_id": "11f3b2cca347d360c859eb46718cc34c"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1615646609604'",
|
||
"automation": "- id: '1615646609604'\n alias: 'Schedule: Turn on in the morning and sunset'\n description: ''\n trigger:\n - platform: time\n at: 06:30:00\n - platform: sun\n event: sunset\n offset: -01:00:00\n condition: []\n action:\n - type: turn_on\n device_id: 0b953119e29d4d2cb3c99048226eefd9\n entity_id: switch.lwrf_hall_socket_2\n domain: switch\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "hall socket 2",
|
||
"room": "hall",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.lwrf_hall_socket_2",
|
||
"device_id": "0b953119e29d4d2cb3c99048226eefd9"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1615646860464'",
|
||
"automation": "- id: '1615646860464'\n alias: 'Action: Turn off twig lights after sunrise'\n description: ''\n trigger:\n - platform: numeric_state\n entity_id: sun.sun\n attribute: elevation\n above: '10'\n condition: []\n action:\n - type: turn_off\n device_id: 0b953119e29d4d2cb3c99048226eefd9\n entity_id: switch.lwrf_hall_socket_2\n domain: switch\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "hall socket 2",
|
||
"room": "hall",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.lwrf_hall_socket_2",
|
||
"device_id": "0b953119e29d4d2cb3c99048226eefd9"
|
||
}
|
||
},
|
||
{
|
||
"name": "sun sun",
|
||
"room": null,
|
||
"type": "sun",
|
||
"id": {
|
||
"entity_id": "sun.sun",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1615647990496'",
|
||
"automation": "- id: '1615647990496'\n alias: 'Action & Alert: Frasers TV tuned on after curfew'\n description: ''\n trigger:\n - platform: state\n entity_id: binary_sensor.frasers_tv\n to: 'on'\n for: 00:06:00\n condition:\n - condition: time\n after: '23:00'\n before: 06:59\n action:\n - service: notify.mobile_app_martin_iphone12\n data:\n message: Turning off Frasers TV Power\n data:\n actions:\n - action: PLAY_LATE_TV_MESSAGE\n title: Play Message?\n activationMode: background\n authenticationRequired: false\n destructive: false\n behavior: default\n - service: homeassistant.turn_off\n target:\n entity_id: switch.lwrf_loft_fraser_tv\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "frasers tv binary sensor",
|
||
"room": "loft",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.frasers_tv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "mobile app martin iphone12",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.mobile_app_martin_iphone12",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "loft fraser tv switch",
|
||
"room": "loft",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.lwrf_loft_fraser_tv",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1615648232369'",
|
||
"automation": "- id: '1615648232369'\n alias: 'Notify: Late TV message (TTS)'\n description: ''\n trigger:\n - platform: event\n event_data:\n action: PLAY_LATE_TV_MESSAGE\n event_type: mobile_app_notification_action\n condition: []\n action:\n - service: script.sonos_say\n data:\n sonos_entity: media_player.play_1\n volume: 0.5\n message: Turn off your TV and go to sleep\n delay: 00:00:05\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "sonos say script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.sonos_say",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "play 1 media player",
|
||
"room": null,
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.play_1",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1615648465209'",
|
||
"automation": "- id: '1615648465209'\n alias: 'Action & Alert: Turn off power to Frasers TV if on 30mins after curfew'\n description: ''\n trigger:\n - platform: time\n at: '23:30'\n condition:\n - condition: state\n entity_id: binary_sensor.frasers_tv\n state: 'on'\n action:\n - service: notify.mobile_app_martin_iphone12\n data:\n message: Cutting power to Fraser's TV\n data:\n actions:\n - action: PLAY_LATE_TV_MESSAGE\n title: Play Message?\n activationMode: background\n authenticationRequired: false\n destructive: false\n behavior: default\n - service: homeassistant.turn_off\n target:\n entity_id: switch.lwrf_loft_fraser_tv\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "frasers tv binary sensor",
|
||
"room": "loft",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.frasers_tv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "mobile app martin iphone12",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.mobile_app_martin_iphone12",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "loft fraser tv switch",
|
||
"room": "loft",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.lwrf_loft_fraser_tv",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1615648558972'",
|
||
"automation": "- id: '1615648558972'\n alias: 'Schedule: Restore power to Frasers TV'\n description: ''\n trigger:\n - platform: time\n at: 07:00:00\n condition: []\n action:\n - service: homeassistant.turn_on\n target:\n entity_id: switch.lwrf_loft_fraser_tv\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "loft fraser tv switch",
|
||
"room": "loft",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.lwrf_loft_fraser_tv",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1615649323516'",
|
||
"automation": "- id: '1615649323516'\n alias: 'Alert: HASS Low Disk Space'\n description: ''\n trigger:\n - platform: numeric_state\n entity_id: sensor.disk_use_percent\n above: '90'\n condition: []\n action:\n - service: notify.martin\n data:\n message: Low disk space > 90% used\n title: HASS Low Resource Alert\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "disk use percent sensor",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.disk_use_percent",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "notify martin",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.martin",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1615649356820'",
|
||
"automation": "- id: '1615649356820'\n alias: 'Alert: HASS Low Memory'\n description: ''\n trigger:\n - platform: numeric_state\n entity_id: sensor.memory_use_percent\n above: '90'\n condition: []\n action:\n - service: notify.martin\n data:\n message: Low memory > 90% used\n title: HASS Low Resource Alert\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "notify martin",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.martin",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "memory use percent sensor",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.memory_use_percent",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1615649413577'",
|
||
"automation": "- id: '1615649413577'\n alias: 'Alert: HASS High Load'\n description: ''\n trigger:\n - platform: numeric_state\n entity_id: sensor.load_5m\n above: '2.8'\n condition: []\n action:\n - service: notify.martin\n data:\n message: System Load 5m Load Average > 2.8\n title: HASS Low Resource Alert\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "notify martin",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.martin",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "load 5m sensor",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.load_5m",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1615651874014'",
|
||
"automation": "- id: '1615651874014'\n alias: 'State Change: Set washing machine active when power detected'\n description: ''\n trigger:\n - platform: numeric_state\n entity_id: sensor.washing_machine_current_consumption\n above: '5'\n condition:\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.washing_machine_status\n state: idle\n - condition: state\n entity_id: input_select.washing_machine_status\n state: finished\n action:\n - service: input_select.select_option\n data:\n option: running\n target:\n entity_id: input_select.washing_machine_status\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "washing machine current consumption sensor",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.washing_machine_current_consumption",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "washing machine status input select",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.washing_machine_status",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1615652115472'",
|
||
"automation": "- id: '1615652115472'\n alias: 'State Change: Set washing machine to finished when power drops'\n description: ''\n trigger:\n - platform: numeric_state\n entity_id: sensor.washing_machine_current_consumption\n below: '5'\n for: 00:02:00\n condition:\n - condition: state\n entity_id: input_select.washing_machine_status\n state: running\n action:\n - service: input_select.select_option\n data:\n option: finished\n target:\n entity_id: input_select.washing_machine_status\n - service: notify.michelle\n data:\n title: Washing Machine\n message: Finished!\n - delay:\n hours: 0\n minutes: 2\n seconds: 0\n milliseconds: 0\n - service: input_select.select_option\n data:\n option: idle\n target:\n entity_id: input_select.washing_machine_status\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "washing machine current consumption sensor",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.washing_machine_current_consumption",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "washing machine status input select",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.washing_machine_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "notify michelle",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.michelle",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1615653075229'",
|
||
"automation": "- id: '1615653075229'\n alias: 'State Change: Set dryer active when power detected'\n description: ''\n trigger:\n - platform: numeric_state\n entity_id: sensor.tumble_dryer_current_consumption\n above: '800'\n condition:\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.dryer_status\n state: idle\n - condition: state\n entity_id: input_select.dryer_status\n state: finished\n action:\n - service: input_select.select_option\n data:\n option: running\n target:\n entity_id: input_select.dryer_status\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "tumble dryer current consumption sensor",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.tumble_dryer_current_consumption",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "dryer status input select",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.dryer_status",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1615653218617'",
|
||
"automation": "- id: '1615653218617'\n alias: 'State Change: Set dryer to finished when power drops'\n description: ''\n trigger:\n - platform: numeric_state\n entity_id: sensor.tumble_dryer_current_consumption\n below: '100'\n for: 00:03:00\n condition:\n - condition: state\n entity_id: input_select.dryer_status\n state: running\n action:\n - service: input_select.select_option\n data:\n option: finished\n target:\n entity_id: input_select.dryer_status\n - service: notify.michelle\n data:\n title: Tumble Dryer\n message: Finished!\n - delay:\n hours: 0\n minutes: 2\n seconds: 0\n milliseconds: 0\n - service: input_select.select_option\n data:\n option: idle\n target:\n entity_id: input_select.dryer_status\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "notify michelle",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.michelle",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "tumble dryer current consumption sensor",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.tumble_dryer_current_consumption",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "dryer status input select",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.dryer_status",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1615653304715'",
|
||
"automation": "- id: '1615653304715'\n alias: 'State Change: Set dishwasher active when power detected'\n description: ''\n trigger:\n - platform: numeric_state\n entity_id: sensor.dishwasher_current_consumption\n above: '100'\n condition:\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.dishwasher_status\n state: idle\n - condition: state\n entity_id: input_select.dishwasher_status\n state: finished\n action:\n - service: input_select.select_option\n data:\n option: running\n target:\n entity_id: input_select.dishwasher_status\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "dishwasher current consumption sensor",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.dishwasher_current_consumption",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "dishwasher status input select",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.dishwasher_status",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1615653473188'",
|
||
"automation": "- id: '1615653473188'\n alias: 'State Change: Set dishwasher to finished when power drops'\n description: ''\n trigger:\n - platform: numeric_state\n entity_id: sensor.dishwasher_current_consumption\n below: '1'\n for: 00:02:00\n condition:\n - condition: state\n entity_id: input_select.dishwasher_status\n state: running\n action:\n - service: input_select.select_option\n data:\n option: finished\n target:\n entity_id: input_select.dishwasher_status\n - service: notify.adults\n data:\n message: Finished!\n title: Dishwasher\n - delay:\n hours: 0\n minutes: 2\n seconds: 0\n milliseconds: 0\n - service: input_select.select_option\n data:\n option: idle\n target:\n entity_id: input_select.dishwasher_status\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "dishwasher current consumption sensor",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.dishwasher_current_consumption",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "dishwasher status input select",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.dishwasher_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "notify adults",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.adults",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1615653930854'",
|
||
"automation": "- id: '1615653930854'\n alias: Ironing room motion detected\n description: ''\n trigger:\n - platform: state\n entity_id: binary_sensor.motion_sensor_ironing_room\n to: 'on'\n condition: []\n action:\n - service: input_select.select_option\n data:\n option: motion\n target:\n entity_id: input_select.ironing_room_motion_status\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "ironing room motion sensor",
|
||
"room": "ironing_room",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.motion_sensor_ironing_room",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "ironing room motion status input select",
|
||
"room": "ironing_room",
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.ironing_room_motion_status",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1615654076969'",
|
||
"automation": "- id: '1615654076969'\n alias: Set ironing room to idle after 30mins of no motion\n description: ''\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.motion_sensor_ironing_room\n to: 'off'\n for:\n hours: 0\n minutes: 30\n seconds: 0\n condition: []\n action:\n - service: input_select.select_option\n data:\n option: idle\n target:\n entity_id: input_select.ironing_room_motion_status\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "ironing room motion sensor",
|
||
"room": "ironing_room",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.motion_sensor_ironing_room",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "ironing room motion status input select",
|
||
"room": "ironing_room",
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.ironing_room_motion_status",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1615654485950'",
|
||
"automation": "- id: '1615654485950'\n alias: Turn off ironing table - no motion\n description: ''\n trigger:\n - platform: numeric_state\n entity_id:\n - sensor.ironing_room_ironing_table_current_consumption\n for:\n hours: 0\n minutes: 0\n seconds: 10\n above: 10\n condition:\n - condition: state\n entity_id: input_select.ironing_room_motion_status\n state: idle\n action:\n - service: notify.michelle\n data:\n title: Ironing Room Alert!\n message: No Motion Detected - Turning off Ironing Table\n - service: switch.turn_off\n metadata: {}\n data: {}\n target:\n device_id: 14afeceb9ed9aa8dcba55863c159ee66\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "notify michelle",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.michelle",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "ironing room motion status input select",
|
||
"room": "ironing_room",
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.ironing_room_motion_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "ironing room ironing table current consumption sensor",
|
||
"room": "ironing_room",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.ironing_room_ironing_table_current_consumption",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "ironing table switch",
|
||
"room": "ironing_room",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "14afeceb9ed9aa8dcba55863c159ee66"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1615656237892'",
|
||
"automation": "- id: '1615656237892'\n alias: 'State Change: Door Open - Turn on heating eco mode'\n description: ''\n triggers:\n - entity_id:\n - binary_sensor.lumi_lumi_sensor_backdoor\n to: 'on'\n for:\n hours: 0\n minutes: 2\n seconds: 0\n trigger: state\n conditions: []\n actions:\n - type: turn_on\n device_id: cb39ce88b9c64146eb49e0f878612b5b\n entity_id: 39a4ee7ea774d541089cca677b5327b5\n domain: switch\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "back door sensor",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.lumi_lumi_sensor_backdoor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "heating eco mode switch",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "39a4ee7ea774d541089cca677b5327b5",
|
||
"device_id": "cb39ce88b9c64146eb49e0f878612b5b"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1615656264115'",
|
||
"automation": "- id: '1615656264115'\n alias: 'State Change: Door Closed - Turn off heating eco mode'\n description: ''\n triggers:\n - entity_id:\n - binary_sensor.lumi_lumi_sensor_backdoor\n to: 'off'\n trigger: state\n conditions: []\n actions:\n - type: turn_off\n device_id: cb39ce88b9c64146eb49e0f878612b5b\n entity_id: 39a4ee7ea774d541089cca677b5327b5\n domain: switch\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "back door sensor",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.lumi_lumi_sensor_backdoor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "heating eco mode switch",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "39a4ee7ea774d541089cca677b5327b5",
|
||
"device_id": "cb39ce88b9c64146eb49e0f878612b5b"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1615662841415'",
|
||
"automation": "- id: '1615662841415'\n alias: 'State Change: House occupied'\n description: ''\n trigger:\n - platform: state\n entity_id: group.anyone_home\n to: home\n condition:\n - condition: state\n entity_id: input_boolean.guest_mode\n state: 'off'\n action:\n - service: climate.set_preset_mode\n data:\n preset_mode: none\n target:\n entity_id: climate.hallway_house\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "anyone home group",
|
||
"room": null,
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.anyone_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "guest mode input boolean",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.guest_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "hallway house climate",
|
||
"room": "hallway",
|
||
"type": "climate",
|
||
"id": {
|
||
"entity_id": "climate.hallway_house",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1615662905589'",
|
||
"automation": "- id: '1615662905589'\n alias: 'State Change: House unoccupied'\n description: ''\n trigger:\n - platform: state\n entity_id: group.anyone_home\n from: home\n condition:\n - condition: state\n entity_id: input_boolean.guest_mode\n state: 'off'\n action:\n - service: climate.set_preset_mode\n data:\n preset_mode: eco\n target:\n entity_id: climate.hallway_house\n - service: script.turn_on\n target:\n entity_id: script.everyone_away\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "anyone home group",
|
||
"room": null,
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.anyone_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "guest mode input boolean",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.guest_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "hallway house climate",
|
||
"room": "hallway",
|
||
"type": "climate",
|
||
"id": {
|
||
"entity_id": "climate.hallway_house",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "everyone away script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.everyone_away",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Turn On Script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.turn_on",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1615662965997'",
|
||
"automation": "- id: '1615662965997'\n alias: 'State Change: Morgan presence changed from home'\n description: ''\n trigger:\n - platform: state\n entity_id: person.morgan\n from: home\n condition:\n - condition: state\n entity_id: input_boolean.guest_mode\n state: 'off'\n action:\n - service: script.turn_on\n target:\n entity_id: script.morgan_away\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "guest mode input boolean",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.guest_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "morgan person",
|
||
"room": null,
|
||
"type": "person",
|
||
"id": {
|
||
"entity_id": "person.morgan",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "morgan away script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.morgan_away",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Turn On Script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.turn_on",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1615663102226'",
|
||
"automation": "- id: '1615663102226'\n alias: 'Alert: Morgan away window open'\n description: ''\n trigger:\n - platform: state\n entity_id: person.morgan\n from: home\n condition:\n - condition: and\n conditions:\n - condition: state\n entity_id: input_boolean.guest_mode\n state: 'off'\n - condition: state\n entity_id: binary_sensor.lumi_lumi_sensor_magnet_993d0303_on_off\n state: 'on'\n action:\n - service: notify.morgan\n data:\n title: 'Home Assistant: ALERT!'\n message: Bedroom Window Left Open\n - service: notify.michelle\n data:\n title: 'Home Assistant: ALERT!'\n message: Morgan's window has been left open\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "notify michelle",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.michelle",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "guest mode input boolean",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.guest_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "morgan person",
|
||
"room": null,
|
||
"type": "person",
|
||
"id": {
|
||
"entity_id": "person.morgan",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "morgan window sensor",
|
||
"room": "bedroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.lumi_lumi_sensor_magnet_993d0303_on_off",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "notify morgan",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.morgan",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1615663191504'",
|
||
"automation": "- id: '1615663191504'\n alias: 'State Change: Fraser presence changed from home'\n description: ''\n trigger:\n - platform: state\n entity_id: person.fraser\n from: home\n condition:\n - condition: state\n entity_id: input_boolean.guest_mode\n state: 'off'\n action:\n - service: script.turn_on\n target:\n entity_id: script.fraser_away\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "guest mode input boolean",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.guest_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "fraser person",
|
||
"room": null,
|
||
"type": "person",
|
||
"id": {
|
||
"entity_id": "person.fraser",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "fraser away script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.fraser_away",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Turn On Script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.turn_on",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1615663371546'",
|
||
"automation": "- id: '1615663371546'\n alias: 'Alert: House unoccupied things left open'\n description: ''\n trigger:\n - platform: state\n entity_id: group.anyone_home\n from: home\n condition:\n - condition: and\n conditions:\n - condition: state\n entity_id: input_boolean.guest_mode\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.lumi_lumi_frasers_window_right\n state: 'on'\n - condition: state\n entity_id: binary_sensor.lumi_lumi_sensor_frasers_window_left\n state: 'on'\n - condition: state\n entity_id: binary_sensor.lumi_lumi_sensor_magnet_aq2_bc705302_on_off\n state: 'on'\n - condition: state\n entity_id: binary_sensor.lumi_lumi_sensor_frontdoor\n state: 'on'\n - condition: state\n entity_id: binary_sensor.lumi_lumi_sensor_magnet_aq2_10327502_on_off\n state: 'on'\n - condition: state\n entity_id: binary_sensor.lumi_lumi_sensor_backdoor\n state: 'on'\n - condition: state\n entity_id: binary_sensor.lumi_lumi_morgans_window\n state: 'on'\n action:\n - service: notify.adults\n data:\n title: House Unoccupied - Left open\n message: '{%if is_state(''binary_sensor.lumi_lumi_frasers_window_right'', ''on'')%}{{state_attr(''binary_sensor.lumi_lumi_frasers_window_right'',''friendly_name'')}}{%endif%}\n\n {%if is_state(''binary_sensor.lumi_lumi_sensor_frasers_window_left'', ''on'')%}{{state_attr(''binary_sensor.lumi_lumi_sensor_frasers_window_left'',''friendly_name'')}}{%endif%}\n\n {%if is_state(''binary_sensor.lumi_lumi_sensor_magnet_aq2_bc705302_on_off'',\n ''on'')%}{{state_attr(''binary_sensor.lumi_lumi_sensor_magnet_aq2_bc705302_on_off'',''friendly_name'')}}{%endif%}\n\n {%if is_state(''binary_sensor.lumi_lumi_sensor_frontdoor'', ''on'')%}{{state_attr(''binary_sensor.lumi_lumi_sensor_frontdoor'',''friendly_name'')}}{%endif%}\n\n {%if is_state(''binary_sensor.lumi_lumi_sensor_magnet_aq2_10327502_on_off'',\n ''on'')%}{{state_attr(''binary_sensor.lumi_lumi_sensor_magnet_aq2_10327502_on_off'',''friendly_name'')}}{%endif%}\n\n {%if is_state(''binary_sensor.lumi_lumi_sensor_backdoor'', ''on'')%}{{state_attr(''binary_sensor.lumi_lumi_sensor_backdoor'',''friendly_name'')}}{%endif%}\n\n {%if is_state(''binary_sensor.lumi_lumi_morgans_window'', ''on'')%}{{state_attr(''binary_sensor.lumi_lumi_morgans_window'',''friendly_name'')}}{%endif%}'\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "notify adults",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.adults",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "back door sensor",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.lumi_lumi_sensor_backdoor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "anyone home group",
|
||
"room": null,
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.anyone_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "guest mode input boolean",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.guest_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "frasers window right sensor",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.lumi_lumi_frasers_window_right",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "frasers window left sensor",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.lumi_lumi_sensor_frasers_window_left",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "sensor magnet aq2 bc705302",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.lumi_lumi_sensor_magnet_aq2_bc705302_on_off",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "front door sensor",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.lumi_lumi_sensor_frontdoor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "sensor magnet aq2 10327502",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.lumi_lumi_sensor_magnet_aq2_10327502_on_off",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "morgans window sensor",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.lumi_lumi_morgans_window",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1621091408356'",
|
||
"automation": "- id: '1621091408356'\n alias: 'Action: Shutdown PC - Tera if Fraser not home for 5 mins'\n description: ''\n trigger:\n - platform: state\n entity_id: person.fraser\n from: home\n for: 0:05:00\n condition:\n - condition: state\n entity_id: sensor.tera_powered_on\n state: 'True'\n action:\n - service: notify.martin\n data:\n message: Fraser no longer at home but PC On. Turn off?\n title: PC Shutdown\n data:\n actions:\n - action: FRASER_PC_SHUTDOWN\n title: Shutdown Frasers PC?\n activationMode: background\n authenticationRequired: false\n destructive: false\n behavior: default\n - type: toggle\n device_id: 15f9831aec887ee4621e1c7124d77a47\n entity_id: e95db23038c032115f4f94295c75bbd5\n domain: switch\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "notify martin",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.martin",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "fraser person",
|
||
"room": null,
|
||
"type": "person",
|
||
"id": {
|
||
"entity_id": "person.fraser",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "tera powered on sensor",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.tera_powered_on",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "frasers pc switch",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "e95db23038c032115f4f94295c75bbd5",
|
||
"device_id": "15f9831aec887ee4621e1c7124d77a47"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1628523215496'",
|
||
"automation": "- id: '1628523215496'\n alias: 'Notify: Shutdown Frasers PC'\n description: ''\n trigger:\n - platform: event\n event_data:\n action: FRASER_PC_SHUTDOWN\n event_type: mobile_app_notification_action\n condition: []\n action:\n - service: homeassistant.turn_on\n target:\n entity_id: switch.shutdown\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "shutdown switch",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.shutdown",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1636214471227'",
|
||
"automation": "- id: '1636214471227'\n alias: 'Action: Turn off outside socket'\n description: ''\n triggers:\n - at: 00:00:00\n trigger: time\n conditions: []\n actions:\n - device_id: caa90b0edf23497cb73f5e5362b092b1\n domain: rfxtrx\n type: send_command\n subtype: 'Off'\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "outside socket rfxtrx",
|
||
"room": "outside",
|
||
"type": "rfxtrx",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "caa90b0edf23497cb73f5e5362b092b1"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1636214504954'",
|
||
"automation": "- id: '1636214504954'\n alias: 'Action: Turn on outside socket'\n description: ''\n triggers:\n - at: '16:00:00'\n trigger: time\n conditions: []\n actions:\n - device_id: caa90b0edf23497cb73f5e5362b092b1\n domain: rfxtrx\n type: send_command\n subtype: 'On'\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "outside socket rfxtrx",
|
||
"room": "outside",
|
||
"type": "rfxtrx",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "caa90b0edf23497cb73f5e5362b092b1"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1675235683724'",
|
||
"automation": "- id: '1675235683724'\n alias: Keep Hot Water above 30\n description: ''\n trigger:\n - platform: state\n entity_id:\n - sensor.garage_monitor_water_temperature\n condition:\n - condition: and\n conditions:\n - condition: numeric_state\n entity_id: sensor.garage_monitor_water_temperature\n below: 30\n - condition: state\n entity_id: switch.downstairs_thermostat_hot_water\n state: 'off'\n - condition: time\n after: 06:00:00\n before: '23:00:00'\n action:\n - service: homeassistant.turn_on\n data: {}\n target:\n entity_id: switch.downstairs_thermostat_hot_water\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "garage monitor water temperature sensor",
|
||
"room": "garage",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.garage_monitor_water_temperature",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "downstairs thermostat hot water switch",
|
||
"room": "downstairs",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.downstairs_thermostat_hot_water",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1697876540698'",
|
||
"automation": "- id: '1697876540698'\n alias: 'Action: Shutdown PC - Tera idle for over 2 hours'\n description: ''\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.tera_pc_idle\n to: 'on'\n for:\n hours: 2\n minutes: 0\n seconds: 0\n condition: []\n action:\n - type: toggle\n device_id: 15f9831aec887ee4621e1c7124d77a47\n entity_id: e95db23038c032115f4f94295c75bbd5\n domain: switch\n enabled: true\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "frasers pc switch",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "e95db23038c032115f4f94295c75bbd5",
|
||
"device_id": "15f9831aec887ee4621e1c7124d77a47"
|
||
}
|
||
},
|
||
{
|
||
"name": "tera pc idle binary sensor",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.tera_pc_idle",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1712419138586'",
|
||
"automation": "- id: '1712419138586'\n alias: Device offline watchdog\n description: ''\n triggers:\n - device_id: 86cdb8ce35fb4cbe9a07a87523b5fc18\n domain: zha\n type: device_offline\n subtype: device_offline\n trigger: device\n - entity_id:\n - switch.ironing_room_left\n - switch.ironing_room_right\n - switch.ironing_room_ironing_table\n - switch.ironing_room_magpie\n to: unavailable\n for:\n hours: 0\n minutes: 5\n seconds: 0\n trigger: state\n - entity_id:\n - button.gas_meter_sensor_identify_3\n for:\n hours: 0\n minutes: 5\n seconds: 0\n to: unavailable\n trigger: state\n conditions: []\n actions:\n - data:\n title: Watchdog\n message: Device {{ trigger.from_state.name }} is {{ trigger.to_state.state }}\n action: notify.martin\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "notify martin",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.martin",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "zha device offline watchdog",
|
||
"room": null,
|
||
"type": "zha",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "86cdb8ce35fb4cbe9a07a87523b5fc18"
|
||
}
|
||
},
|
||
{
|
||
"name": "ironing room left switch",
|
||
"room": "ironing_room",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.ironing_room_left",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "ironing room right switch",
|
||
"room": "ironing_room",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.ironing_room_right",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "ironing room ironing table switch",
|
||
"room": "ironing_room",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.ironing_room_ironing_table",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "ironing room magpie switch",
|
||
"room": "ironing_room",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.ironing_room_magpie",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "gas meter sensor identify button",
|
||
"room": null,
|
||
"type": "button",
|
||
"id": {
|
||
"entity_id": "button.gas_meter_sensor_identify_3",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1712427494133'",
|
||
"automation": "- id: '1712427494133'\n alias: Turn off magpie iron - no motion\n description: ''\n trigger:\n - platform: numeric_state\n entity_id:\n - sensor.ironing_room_magpie_current_consumption\n for:\n hours: 0\n minutes: 0\n seconds: 10\n above: 10\n condition:\n - condition: state\n entity_id: input_select.ironing_room_motion_status\n state: idle\n action:\n - service: notify.michelle\n data:\n title: Ironing Room Alert!\n message: No Motion Detected - Turning off Magpie Iron\n - service: switch.turn_off\n metadata: {}\n data: {}\n target:\n device_id: 470ad9c5b6b7072c0a5242574bd5cd9b\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "notify michelle",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.michelle",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "ironing room motion status input select",
|
||
"room": "ironing_room",
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.ironing_room_motion_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "ironing room magpie current consumption sensor",
|
||
"room": "ironing_room",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.ironing_room_magpie_current_consumption",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "magpie iron switch",
|
||
"room": "ironing_room",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "470ad9c5b6b7072c0a5242574bd5cd9b"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1712427569780'",
|
||
"automation": "- id: '1712427569780'\n alias: Turn off irons left - no motion\n description: ''\n trigger:\n - platform: numeric_state\n entity_id:\n - sensor.ironing_room_left_current_consumption\n for:\n hours: 0\n minutes: 0\n seconds: 10\n above: 10\n condition:\n - condition: state\n entity_id: input_select.ironing_room_motion_status\n state: idle\n action:\n - service: notify.michelle\n data:\n title: Ironing Room Alert!\n message: No Motion Detected - Turning off Irons (Left)\n - service: switch.turn_off\n metadata: {}\n data: {}\n target:\n device_id: 22221819a3f597cc0fb30e68142919f0\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "notify michelle",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.michelle",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "ironing room motion status input select",
|
||
"room": "ironing_room",
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.ironing_room_motion_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "ironing room left current consumption sensor",
|
||
"room": "ironing_room",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.ironing_room_left_current_consumption",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "irons left switch",
|
||
"room": "ironing_room",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "22221819a3f597cc0fb30e68142919f0"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1712427655992'",
|
||
"automation": "- id: '1712427655992'\n alias: Turn off irons right - no motion\n description: ''\n trigger:\n - platform: numeric_state\n entity_id:\n - sensor.ironing_room_right_current_consumption\n for:\n hours: 0\n minutes: 0\n seconds: 10\n above: 10\n condition:\n - condition: state\n entity_id: input_select.ironing_room_motion_status\n state: idle\n action:\n - service: notify.michelle\n data:\n title: Ironing Room Alert!\n message: No Motion Detected - Turning off Irons (Right)\n - service: switch.turn_off\n metadata: {}\n data: {}\n target:\n device_id: 42c2ee13a1fe93fe8f0122b894a1ea74\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "notify michelle",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.michelle",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "ironing room motion status input select",
|
||
"room": "ironing_room",
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.ironing_room_motion_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "ironing room right current consumption sensor",
|
||
"room": "ironing_room",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.ironing_room_right_current_consumption",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "irons right switch",
|
||
"room": "ironing_room",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "42c2ee13a1fe93fe8f0122b894a1ea74"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1714148432236'",
|
||
"automation": "- id: '1714148432236'\n alias: Turn off conservatory Heater when warm\n description: ''\n triggers:\n - type: temperature\n device_id: 1464525c67b978b454de6a6b35724dbd\n entity_id: 6b23f364cf47b36a714a15d256f70949\n domain: sensor\n trigger: device\n above: 21\n for:\n hours: 0\n minutes: 0\n seconds: 0\n conditions: []\n actions:\n - type: turn_off\n device_id: 690c237894576165879d1fb21a2aa627\n entity_id: 3333f53a468f9108927bc5e6fc9bb161\n domain: switch\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "conservatory temperature sensor",
|
||
"room": "conservatory",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "6b23f364cf47b36a714a15d256f70949",
|
||
"device_id": "1464525c67b978b454de6a6b35724dbd"
|
||
}
|
||
},
|
||
{
|
||
"name": "conservatory heater switch",
|
||
"room": "conservatory",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "3333f53a468f9108927bc5e6fc9bb161",
|
||
"device_id": "690c237894576165879d1fb21a2aa627"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1714314533892'",
|
||
"automation": "- id: '1714314533892'\n alias: Turn on 3D Printer Light\n description: Turns on 3D Printer light when 3D printer is turned on\n trigger:\n - platform: numeric_state\n entity_id:\n - sensor.3d_printer_current_consumption\n for:\n hours: 0\n minutes: 0\n seconds: 5\n above: 2\n condition: []\n action:\n - service: switch.turn_on\n metadata: {}\n data: {}\n target:\n device_id: 92e4838c6495a1d38dcfd55c46d31afe\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "3d printer current consumption sensor",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.3d_printer_current_consumption",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "3d printer light switch",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "92e4838c6495a1d38dcfd55c46d31afe"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1714314593069'",
|
||
"automation": "- id: '1714314593069'\n alias: Turn off 3D Printer light\n description: Turns off 3D Printer light when 3D printer is turned off\n trigger:\n - platform: numeric_state\n entity_id:\n - sensor.3d_printer_current_consumption\n for:\n hours: 0\n minutes: 0\n seconds: 5\n below: 2\n condition: []\n action:\n - service: switch.turn_off\n target:\n device_id:\n - 92e4838c6495a1d38dcfd55c46d31afe\n data: {}\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "3d printer current consumption sensor",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.3d_printer_current_consumption",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "3d printer light switch",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "92e4838c6495a1d38dcfd55c46d31afe"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1714340821923'",
|
||
"automation": "- id: '1714340821923'\n alias: Turn off conservatory heater during the night\n description: ''\n triggers:\n - type: temperature\n device_id: 1464525c67b978b454de6a6b35724dbd\n entity_id: 6b23f364cf47b36a714a15d256f70949\n domain: sensor\n trigger: device\n above: 18\n for:\n hours: 0\n minutes: 0\n seconds: 0\n - at: '23:00:00'\n trigger: time\n conditions:\n - condition: time\n after: '23:00:00'\n before: 06:30:00\n actions:\n - type: turn_off\n device_id: 690c237894576165879d1fb21a2aa627\n entity_id: 3333f53a468f9108927bc5e6fc9bb161\n domain: switch\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "conservatory temperature sensor",
|
||
"room": "conservatory",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "6b23f364cf47b36a714a15d256f70949",
|
||
"device_id": "1464525c67b978b454de6a6b35724dbd"
|
||
}
|
||
},
|
||
{
|
||
"name": "conservatory heater switch",
|
||
"room": "conservatory",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "3333f53a468f9108927bc5e6fc9bb161",
|
||
"device_id": "690c237894576165879d1fb21a2aa627"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1714370785072'",
|
||
"automation": "- id: '1714370785072'\n alias: Turn on conservatory heater when cold\n description: ''\n triggers:\n - trigger: time_pattern\n minutes: '15'\n conditions:\n - type: is_not_open\n condition: device\n device_id: 49bce74c821c42fd980c192606b57418\n entity_id: 319f694734396d89e5a6f6fa6ee17a56\n domain: binary_sensor\n - condition: time\n after: 06:00:00\n before: '23:00:00'\n - condition: numeric_state\n entity_id: sensor.conservatory_th_sensor_lcd_temperature\n below: 18\n actions:\n - type: turn_on\n device_id: 690c237894576165879d1fb21a2aa627\n entity_id: 3333f53a468f9108927bc5e6fc9bb161\n domain: switch\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "conservatory heater switch",
|
||
"room": "conservatory",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "3333f53a468f9108927bc5e6fc9bb161",
|
||
"device_id": "690c237894576165879d1fb21a2aa627"
|
||
}
|
||
},
|
||
{
|
||
"name": "conservatory window sensor",
|
||
"room": "conservatory",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "319f694734396d89e5a6f6fa6ee17a56",
|
||
"device_id": "49bce74c821c42fd980c192606b57418"
|
||
}
|
||
},
|
||
{
|
||
"name": "conservatory th sensor lcd temperature",
|
||
"room": "conservatory",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.conservatory_th_sensor_lcd_temperature",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1748977016554'",
|
||
"automation": "- id: '1748977016554'\n alias: Kitchen Sink Water Leak Notification\n description: ''\n triggers:\n - type: moist\n device_id: d126aca79aab093013c364369011e804\n entity_id: 2d6664ac9e985b9adea50e7a520e1d3b\n domain: binary_sensor\n trigger: device\n for:\n hours: 0\n minutes: 0\n seconds: 10\n conditions: []\n actions:\n - action: notify.adults\n metadata: {}\n data:\n message: Water detected under Kitchen sink\n title: Water Leak\n enabled: true\n - action: notify.martin\n metadata: {}\n data:\n message: Water detected under Kitcken Sink\n title: Water Leak\n enabled: false\n - action: tts.voicerss_say\n metadata: {}\n data:\n cache: false\n entity_id: media_player.kitchen\n message: Water leak detected under kitchen sink\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "notify martin",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.martin",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "notify adults",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.adults",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "kitchen sink water leak sensor",
|
||
"room": "kitchen",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "2d6664ac9e985b9adea50e7a520e1d3b",
|
||
"device_id": "d126aca79aab093013c364369011e804"
|
||
}
|
||
},
|
||
{
|
||
"name": "kitchen media player",
|
||
"room": "kitchen",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.kitchen",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1754253696584'",
|
||
"automation": "- id: '1754253696584'\n alias: Tesla Charging - Charging\n description: ''\n triggers:\n - entity_id:\n - sensor.tesla_charger_current_consumption\n above: '100'\n trigger: numeric_state\n for:\n hours: 0\n minutes: 0\n seconds: 10\n conditions: []\n actions:\n - data:\n option: charging\n action: input_select.select_option\n target:\n entity_id: input_select.tesla_charging_status\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "tesla charger current consumption sensor",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.tesla_charger_current_consumption",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "tesla charging status input select",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.tesla_charging_status",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1754254191874'",
|
||
"automation": "- id: '1754254191874'\n alias: Tesla Charging - Finished\n description: ''\n triggers:\n - entity_id:\n - sensor.tesla_charger_current_consumption\n trigger: numeric_state\n for:\n hours: 0\n minutes: 5\n seconds: 0\n below: 100\n conditions:\n - condition: state\n entity_id: input_select.tesla_charging_status\n state: charging\n actions:\n - data:\n option: finished\n action: input_select.select_option\n target:\n entity_id: input_select.tesla_charging_status\n - delay:\n hours: 0\n minutes: 1\n seconds: 0\n milliseconds: 0\n - data:\n option: idle\n action: input_select.select_option\n target:\n entity_id: input_select.tesla_charging_status\n - action: notify.martin\n metadata: {}\n data:\n message: Charging completed\n title: Tesla\n enabled: false\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "notify martin",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.martin",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "tesla charger current consumption sensor",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.tesla_charger_current_consumption",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "tesla charging status input select",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.tesla_charging_status",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1756499601267'",
|
||
"automation": "- id: '1756499601267'\n alias: Dynamic Tesla Solar Charging\n description: Adjust Tesla charging current based on solar excess with 200W grid\n import tolerance\n triggers:\n - entity_id:\n - sensor.owl_solar_generating\n - sensor.owl_electricity_power\n - sensor.tesla_ble_charge_level\n - sensor.tesla_ble_charge_limit\n trigger: state\n conditions:\n - condition: state\n entity_id: binary_sensor.tesla_ble_charge_flap\n state: 'on'\n actions:\n - data:\n name: Tesla Solar Charging\n message: 'Solar={{ solar }}W, House={{ house }}W, CarPower={{ car_power }}W,\n Excess={{ excess_power }}W, Available={{ available_power }}W, SOC={{ soc }}%,\n Limit={{ soc_limit }}%, CurrentSetting={{ current_setting }}A, ChargerOn={{\n charger_on }} → Target={{ target_amps }}A\n\n '\n action: logbook.log\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ target_amps == 0 }}'\n sequence:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ current_setting != 10 }}'\n sequence:\n - target:\n entity_id: number.tesla_ble_charging_amps\n data:\n value: 10\n action: number.set_value\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ charger_on }}'\n sequence:\n - target:\n entity_id: switch.tesla_ble_charger\n action: switch.turn_off\n data: {}\n - data:\n name: Tesla Solar Charging\n message: Stopping charging – Import too high or SOC limit reached.\n action: logbook.log\n - conditions:\n - condition: template\n value_template: '{{ target_amps > 0 and target_amps < 5 }}'\n sequence:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ current_setting != target_amps }}'\n sequence:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ current_setting != 5 }}'\n sequence:\n - target:\n entity_id: number.tesla_ble_charging_amps\n data:\n value: 5\n action: number.set_value\n - delay: 00:00:20\n - target:\n entity_id: number.tesla_ble_charging_amps\n data:\n value: '{{ target_amps }}'\n action: number.set_value\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ not charger_on }}'\n sequence:\n - target:\n entity_id: switch.tesla_ble_charger\n action: switch.turn_on\n data: {}\n - conditions:\n - condition: template\n value_template: '{{ target_amps >= 5 }}'\n sequence:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ current_setting != target_amps }}'\n sequence:\n - target:\n entity_id: number.tesla_ble_charging_amps\n data:\n value: '{{ target_amps }}'\n action: number.set_value\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ not charger_on }}'\n sequence:\n - target:\n entity_id: switch.tesla_ble_charger\n action: switch.turn_on\n data: {}\n - delay: 00:01:00\n mode: single\n variables:\n solar: '{{ states(''sensor.owl_solar_generating'') | float(0) }}'\n house: '{{ states(''sensor.owl_electricity_power'') | float(0) }}'\n voltage: '{{ states(''sensor.tesla_charger_voltage'') | float(230) }}'\n soc: '{{ states(''sensor.tesla_ble_charge_level'') | float(0) }}'\n soc_limit: '{{ states(''sensor.tesla_ble_charge_limit'') | float(100) }}'\n current_setting: '{{ states(''number.tesla_ble_charging_amps'') | float(0) }}'\n charger_on: '{{ is_state(''switch.tesla_ble_charger'',''on'') }}'\n car_power: '{{ (voltage * current_setting) if charger_on else 0 }}'\n excess_power: '{{ solar - (house - car_power) }}'\n allowed_import: 200\n available_power: '{{ excess_power + allowed_import }}'\n target_amps: \"{% if soc >= soc_limit %}\\n 0\\n{% else %}\\n {% set amps = (available_power\\\n \\ / voltage) | int %}\\n {% if amps < 2 %} 0\\n {% elif amps > 10 %} 10\\n {%\\\n \\ else %} {{ amps }}\\n {% endif %}\\n{% endif %}\\n\"",
|
||
"config": [
|
||
{
|
||
"name": "owl solar generating sensor",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.owl_solar_generating",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "owl electricity power sensor",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.owl_electricity_power",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "tesla ble charge level sensor",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.tesla_ble_charge_level",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "tesla ble charge limit sensor",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.tesla_ble_charge_limit",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "tesla ble charge flap binary sensor",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.tesla_ble_charge_flap",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "tesla ble charging amps number",
|
||
"room": null,
|
||
"type": "number",
|
||
"id": {
|
||
"entity_id": "number.tesla_ble_charging_amps",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "tesla ble charger switch",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.tesla_ble_charger",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "tesla charger voltage sensor",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.tesla_charger_voltage",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
}
|
||
] |