2857 lines
113 KiB
JSON
2857 lines
113 KiB
JSON
[
|
|
{
|
|
"id": "allrum_belysning_fonster",
|
|
"automation": "- alias: Allrum belysning fönster\n id: allrum_belysning_fonster\n triggers:\n - trigger: state\n entity_id: binary_sensor.allrum_belysning_filament_automation_control\n - trigger: homeassistant\n event: start\n actions:\n - action: light.turn_{{ iif(states('binary_sensor.allrum_belysning_filament_automation_control')\n == 'on', 'on', 'off') }}\n target:\n entity_id:\n - light.allrum_klotlampa",
|
|
"config": [
|
|
{
|
|
"name": "allrum klotlampa",
|
|
"room": "allrum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.allrum_klotlampa",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor allrum belysning filament automation control",
|
|
"room": "allrum",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.allrum_belysning_filament_automation_control",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "allrum_huslampa",
|
|
"automation": "- alias: Allrum huslampa\n id: allrum_huslampa\n triggers:\n - trigger: state\n entity_id: binary_sensor.allrum_huslampa_automation_control\n - trigger: homeassistant\n event: start\n actions:\n - action: light.turn_{{ iif(states('binary_sensor.allrum_huslampa_automation_control')\n == 'on', 'on', 'off') }}\n target:\n entity_id:\n - light.allrum_huslampa",
|
|
"config": [
|
|
{
|
|
"name": "allrum huslampa",
|
|
"room": "allrum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.allrum_huslampa",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor allrum huslampa automation control",
|
|
"room": "allrum",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.allrum_huslampa_automation_control",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "filmlage_hantering",
|
|
"automation": "- alias: Filmläge hantering\n id: filmlage_hantering\n triggers:\n - trigger: state\n entity_id: media_player.allrum\n to: playing\n for:\n seconds: 10\n id: film_startar\n - trigger: state\n entity_id: media_player.allrum\n from: playing\n for:\n seconds: 5\n id: film_stoppar\n - trigger: state\n entity_id: input_boolean.film\n to: 'off'\n id: filmlage_av\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: film_startar\n - condition: state\n entity_id: input_boolean.film\n state: 'on'\n sequence:\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.film_spelar\n - conditions:\n - condition: trigger\n id:\n - film_stoppar\n - filmlage_av\n sequence:\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.film_spelar",
|
|
"config": [
|
|
{
|
|
"name": "allrum media player",
|
|
"room": "allrum",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.allrum",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean film",
|
|
"room": "allrum",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.film",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean film spelar",
|
|
"room": "allrum",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.film_spelar",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "allrum_knapp_vid_tv",
|
|
"automation": "- alias: Allrum knapp vid tv\n id: allrum_knapp_vid_tv\n triggers:\n - platform: device\n domain: mqtt\n device_id: 399f935166a8dc9987ba52ae975e5b2c\n type: action\n subtype: single\n id: single_press\n - platform: device\n domain: mqtt\n device_id: 399f935166a8dc9987ba52ae975e5b2c\n type: action\n subtype: double\n id: double_press\n - platform: device\n domain: mqtt\n device_id: 399f935166a8dc9987ba52ae975e5b2c\n type: action\n subtype: hold\n id: hold_press\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: double_press\n - condition: state\n entity_id: input_boolean.film\n state: 'off'\n sequence:\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.film\n - conditions:\n - condition: trigger\n id: single_press\n sequence:\n - action: media_player.media_{{ 'pause' if is_state('media_player.allrum', 'playing')\n else 'play' }}\n target:\n entity_id: media_player.allrum\n - conditions:\n - condition: trigger\n id: hold_press\n sequence:\n - action: input_boolean.toggle\n target:\n entity_id: input_boolean.film_spelar",
|
|
"config": [
|
|
{
|
|
"name": "allrum media player",
|
|
"room": "allrum",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.allrum",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean film",
|
|
"room": "allrum",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.film",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean film spelar",
|
|
"room": "allrum",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.film_spelar",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "allrum knapp vid tv device",
|
|
"room": "allrum",
|
|
"type": "device",
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "399f935166a8dc9987ba52ae975e5b2c"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Allrum belysning tak",
|
|
"automation": "- alias: Allrum belysning tak\n id: Allrum belysning tak\n triggers:\n - trigger: state\n entity_id: binary_sensor.allrum_presence_light_automation_control\n - trigger: homeassistant\n event: start\n actions:\n - action: light.turn_{{ iif(states('binary_sensor.allrum_presence_light_automation_control')\n == 'on', 'on', 'off') }}\n target:\n entity_id:\n - light.allrum_tak_1\n - light.allrum_tak_2",
|
|
"config": [
|
|
{
|
|
"name": "allrum tak 1",
|
|
"room": "allrum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.allrum_tak_1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "allrum tak 2",
|
|
"room": "allrum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.allrum_tak_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor allrum presence light automation control",
|
|
"room": "allrum",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.allrum_presence_light_automation_control",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Allrum belysning hall",
|
|
"automation": "- alias: Allrum belysning hall\n id: Allrum belysning hall\n triggers:\n - trigger: state\n entity_id: binary_sensor.allrum_belysning_hall_automation_control\n - trigger: homeassistant\n event: start\n actions:\n - action: light.turn_{{ iif(states('binary_sensor.allrum_belysning_hall_automation_control')\n == 'on', 'on', 'off') }}\n target:\n entity_id:\n - light.allrum_tak_3",
|
|
"config": [
|
|
{
|
|
"name": "allrum tak 3",
|
|
"room": "allrum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.allrum_tak_3",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor allrum belysning hall automation control",
|
|
"room": "allrum",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.allrum_belysning_hall_automation_control",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Allrum belysning läslampa",
|
|
"automation": "- alias: Allrum belysning läslampa\n id: Allrum belysning läslampa\n triggers:\n - trigger: state\n entity_id: binary_sensor.allrum_belysning_laslampa_automation_control\n - trigger: homeassistant\n event: start\n actions:\n - action: light.turn_{{ iif(states('binary_sensor.allrum_belysning_laslampa_automation_control')\n == 'on', 'on', 'off') }}\n target:\n entity_id:\n - light.allrum_laslampa",
|
|
"config": [
|
|
{
|
|
"name": "allrum läslampa",
|
|
"room": "allrum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.allrum_laslampa",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor allrum belysning läslampa automation control",
|
|
"room": "allrum",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.allrum_belysning_laslampa_automation_control",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "badrum_belysning",
|
|
"automation": "- alias: Badrum belysning\n id: badrum_belysning\n triggers:\n - trigger: state\n entity_id: binary_sensor.badrum_presence_light_automation_control\n - trigger: homeassistant\n event: start\n actions:\n - action: light.turn_{{ iif(states('binary_sensor.badrum_presence_light_automation_control')\n == 'on', 'on', 'off') }}\n target:\n entity_id:\n - light.badrum",
|
|
"config": [
|
|
{
|
|
"name": "badrum light",
|
|
"room": "badrum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.badrum",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor badrum presence light automation control",
|
|
"room": "badrum",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.badrum_presence_light_automation_control",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "barnrum_belysning",
|
|
"automation": "- alias: Barnrum belysning\n id: barnrum_belysning\n triggers:\n - trigger: state\n entity_id: binary_sensor.barnrum_belysning_automation_control\n - trigger: homeassistant\n event: start\n actions:\n - action: light.turn_{{ iif(states('binary_sensor.barnrum_belysning_automation_control')\n == 'on', 'on', 'off') }}\n target:\n entity_id:\n - light.barnrum_skank",
|
|
"config": [
|
|
{
|
|
"name": "barnrum skank light",
|
|
"room": "barnrum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.barnrum_skank",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor barnrum belysning automation control",
|
|
"room": "barnrum",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.barnrum_belysning_automation_control",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "barnrum_belysning_fonster",
|
|
"automation": "- alias: Barnrum belysning fönster\n id: barnrum_belysning_fonster\n triggers:\n - trigger: state\n entity_id: binary_sensor.barnrum_belysning_fonster_automation_control\n - trigger: homeassistant\n event: start\n actions:\n - action: light.turn_{{ iif(states('binary_sensor.barnrum_belysning_fonster_automation_control')\n == 'on', 'on', 'off') }}\n target:\n entity_id:\n - light.barnrum_fonster_1\n - light.barnrum_fonster_2",
|
|
"config": [
|
|
{
|
|
"name": "barnrum fönster 1",
|
|
"room": "barnrum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.barnrum_fonster_1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "barnrum fönster 2",
|
|
"room": "barnrum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.barnrum_fonster_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor barnrum belysning fönster automation control",
|
|
"room": "barnrum",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.barnrum_belysning_fonster_automation_control",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "barnrum_varme",
|
|
"automation": "- alias: Barnrum värme\n id: barnrum_varme\n triggers:\n - trigger: time_pattern\n minutes: /30\n actions:\n - action: climate.set_hvac_mode\n target:\n entity_id: climate.barnrum_varmegolv\n data:\n hvac_mode: '{{ iif(states(''binary_sensor.varmegolv_block'') == ''on'', ''off'',\n ''heat'') }}'",
|
|
"config": [
|
|
{
|
|
"name": "binary sensor varmegolv block",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.varmegolv_block",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "climate barnrum varmegolv",
|
|
"room": "barnrum",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.barnrum_varmegolv",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "barnrum_brandvarnare",
|
|
"automation": "- alias: Barnrum brandvarnare\n id: barnrum_brandvarnare\n triggers:\n - trigger: state\n entity_id: binary_sensor.barnrum_brandvarnare_smoke\n to: 'on'\n for:\n seconds: 5\n - trigger: state\n entity_id: binary_sensor.barnrum_brandvarnare_smoke\n to: 'off'\n actions:\n - action: siren.turn_{{ trigger.to_state.state }}\n target:\n entity_id:\n - siren.allrum_brandvarnare_alarm\n - siren.allrum_hall_brandvarnare_alarm\n - siren.snickarboa_brandvarnare_alarm\n - siren.tvattstuga_brandvarnare_alarm",
|
|
"config": [
|
|
{
|
|
"name": "binary sensor barnrum brandvarnare smoke",
|
|
"room": "barnrum",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.barnrum_brandvarnare_smoke",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "siren allrum brandvarnare alarm",
|
|
"room": "allrum",
|
|
"type": "siren",
|
|
"id": {
|
|
"entity_id": "siren.allrum_brandvarnare_alarm",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "siren allrum hall brandvarnare alarm",
|
|
"room": "allrum",
|
|
"type": "siren",
|
|
"id": {
|
|
"entity_id": "siren.allrum_hall_brandvarnare_alarm",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "siren snickarboa brandvarnare alarm",
|
|
"room": "snickarboa",
|
|
"type": "siren",
|
|
"id": {
|
|
"entity_id": "siren.snickarboa_brandvarnare_alarm",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "siren tvättstuga brandvarnare alarm",
|
|
"room": "tvattstuga",
|
|
"type": "siren",
|
|
"id": {
|
|
"entity_id": "siren.tvattstuga_brandvarnare_alarm",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "allrum_brandvarnare",
|
|
"automation": "- alias: Allrum brandvarnare\n id: allrum_brandvarnare\n triggers:\n - trigger: state\n entity_id: binary_sensor.allrum_brandvarnare_smoke\n to: 'on'\n for:\n seconds: 5\n - trigger: state\n entity_id: binary_sensor.allrum_brandvarnare_smoke\n to: 'off'\n actions:\n - action: siren.turn_{{ trigger.to_state.state }}\n target:\n entity_id:\n - siren.allrum_hall_brandvarnare_alarm\n - siren.snickarboa_brandvarnare_alarm\n - siren.tvattstuga_brandvarnare_alarm",
|
|
"config": [
|
|
{
|
|
"name": "binary sensor allrum brandvarnare smoke",
|
|
"room": "allrum",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.allrum_brandvarnare_smoke",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "siren allrum hall brandvarnare alarm",
|
|
"room": "allrum",
|
|
"type": "siren",
|
|
"id": {
|
|
"entity_id": "siren.allrum_hall_brandvarnare_alarm",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "siren snickarboa brandvarnare alarm",
|
|
"room": "snickarboa",
|
|
"type": "siren",
|
|
"id": {
|
|
"entity_id": "siren.snickarboa_brandvarnare_alarm",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "siren tvättstuga brandvarnare alarm",
|
|
"room": "tvattstuga",
|
|
"type": "siren",
|
|
"id": {
|
|
"entity_id": "siren.tvattstuga_brandvarnare_alarm",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "allrum_hall_brandvarnare",
|
|
"automation": "- alias: Allrum hall brandvarnare\n id: allrum_hall_brandvarnare\n triggers:\n - trigger: state\n entity_id: binary_sensor.allrum_hall_brandvarnare_smoke\n to: 'on'\n for:\n seconds: 5\n - trigger: state\n entity_id: binary_sensor.allrum_hall_brandvarnare_smoke\n to: 'off'\n actions:\n - action: siren.turn_{{ trigger.to_state.state }}\n target:\n entity_id:\n - siren.allrum_brandvarnare_alarm\n - siren.snickarboa_brandvarnare_alarm\n - siren.tvattstuga_brandvarnare_alarm",
|
|
"config": [
|
|
{
|
|
"name": "binary sensor allrum hall brandvarnare smoke",
|
|
"room": "allrum",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.allrum_hall_brandvarnare_smoke",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "siren allrum brandvarnare alarm",
|
|
"room": "allrum",
|
|
"type": "siren",
|
|
"id": {
|
|
"entity_id": "siren.allrum_brandvarnare_alarm",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "siren snickarboa brandvarnare alarm",
|
|
"room": "snickarboa",
|
|
"type": "siren",
|
|
"id": {
|
|
"entity_id": "siren.snickarboa_brandvarnare_alarm",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "siren tvättstuga brandvarnare alarm",
|
|
"room": "tvattstuga",
|
|
"type": "siren",
|
|
"id": {
|
|
"entity_id": "siren.tvattstuga_brandvarnare_alarm",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "snickarboa_brandvarnare",
|
|
"automation": "- alias: Snickarboa brandvarnare\n id: snickarboa_brandvarnare\n triggers:\n - trigger: state\n entity_id: binary_sensor.snickarboa_brandvarnare_smoke\n to: 'on'\n for:\n seconds: 5\n - trigger: state\n entity_id: binary_sensor.snickarboa_brandvarnare_smoke\n to: 'off'\n actions:\n - action: siren.turn_{{ trigger.to_state.state }}\n target:\n entity_id:\n - siren.allrum_brandvarnare_alarm\n - siren.allrum_hall_brandvarnare_alarm\n - siren.tvattstuga_brandvarnare_alarm",
|
|
"config": [
|
|
{
|
|
"name": "binary sensor snickarboa brandvarnare smoke",
|
|
"room": "snickarboa",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.snickarboa_brandvarnare_smoke",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "siren allrum brandvarnare alarm",
|
|
"room": "allrum",
|
|
"type": "siren",
|
|
"id": {
|
|
"entity_id": "siren.allrum_brandvarnare_alarm",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "siren allrum hall brandvarnare alarm",
|
|
"room": "allrum",
|
|
"type": "siren",
|
|
"id": {
|
|
"entity_id": "siren.allrum_hall_brandvarnare_alarm",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "siren tvättstuga brandvarnare alarm",
|
|
"room": "tvattstuga",
|
|
"type": "siren",
|
|
"id": {
|
|
"entity_id": "siren.tvattstuga_brandvarnare_alarm",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "tvattstuga_brandvarnare",
|
|
"automation": "- alias: Tvättstuga brandvarnare\n id: tvattstuga_brandvarnare\n triggers:\n - trigger: state\n entity_id: binary_sensor.tvattstuga_brandvarnare_smoke\n to: 'on'\n for:\n seconds: 5\n - trigger: state\n entity_id: binary_sensor.tvattstuga_brandvarnare_smoke\n to: 'off'\n actions:\n - action: siren.turn_{{ trigger.to_state.state }}\n target:\n entity_id:\n - siren.allrum_brandvarnare_alarm\n - siren.allrum_hall_brandvarnare_alarm\n - siren.snickarboa_brandvarnare_alarm",
|
|
"config": [
|
|
{
|
|
"name": "binary sensor tvättstuga brandvarnare smoke",
|
|
"room": "tvattstuga",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.tvattstuga_brandvarnare_smoke",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "siren allrum brandvarnare alarm",
|
|
"room": "allrum",
|
|
"type": "siren",
|
|
"id": {
|
|
"entity_id": "siren.allrum_brandvarnare_alarm",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "siren allrum hall brandvarnare alarm",
|
|
"room": "allrum",
|
|
"type": "siren",
|
|
"id": {
|
|
"entity_id": "siren.allrum_hall_brandvarnare_alarm",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "siren snickarboa brandvarnare alarm",
|
|
"room": "snickarboa",
|
|
"type": "siren",
|
|
"id": {
|
|
"entity_id": "siren.snickarboa_brandvarnare_alarm",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "candle",
|
|
"automation": "- alias: Candle\n id: candle\n triggers:\n - trigger: state\n entity_id: input_boolean.candle\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.candle\n state: 'on'\n sequence:\n - action: switch.turn_off\n target:\n entity_id:\n - switch.adaptive_lighting_kok\n - switch.adaptive_lighting_kok_fonster\n - switch.adaptive_lighting_hall\n - switch.adaptive_lighting_badrum\n - switch.adaptive_lighting_vardagsrum_belysning_filament\n - delay:\n seconds: 5\n - action: light.turn_on\n target:\n entity_id:\n - light.kok_fonsterbelysning\n - light.vardagsrum_fonster_hangande\n - light.vardagsrum_fonster_fotogen\n - light.vardagsrum_fonster_piano\n - light.vardagsrum_fonster_trappa\n data:\n brightness_pct: 2\n - action: light.turn_on\n target:\n entity_id:\n - light.kok_koksbord\n - light.kok_tak\n - light.kok_kokso\n - light.hall\n - light.badrum\n - light.vardagsrum_tak\n - light.vardagsrum_bord\n - light.hall_byra\n data:\n profile: candle\n - action: light.turn_off\n target:\n entity_id:\n - light.kok_bankbelysning\n - conditions:\n - condition: state\n entity_id: input_boolean.candle\n state: 'off'\n sequence:\n - action: automation.trigger\n target:\n entity_id:\n - automation.vardagsrum_belysning\n - automation.kok_belysning_litet_fonster\n - automation.kok_belysning_stora_fonster\n - action: switch.turn_on\n target:\n entity_id:\n - switch.adaptive_lighting_kok\n - switch.adaptive_lighting_kok_fonster\n - switch.adaptive_lighting_hall\n - switch.adaptive_lighting_badrum\n - switch.adaptive_lighting_vardagsrum_belysning_filament",
|
|
"config": [
|
|
{
|
|
"name": "badrum light",
|
|
"room": "badrum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.badrum",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "hall light",
|
|
"room": "hall",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.hall",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "hall byrå light",
|
|
"room": "hall",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.hall_byra",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kok fönsterbelysning",
|
|
"room": "kok",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kok_fonsterbelysning",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kok koksbord light",
|
|
"room": "kok",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kok_koksbord",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kok tak light",
|
|
"room": "kok",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kok_tak",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kok kokso light",
|
|
"room": "kok",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kok_kokso",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kok bänkbelysning",
|
|
"room": "kok",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kok_bankbelysning",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "vardagsrum fönster fotogen light",
|
|
"room": "vardagsrum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.vardagsrum_fonster_fotogen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "vardagsrum fönster hängande light",
|
|
"room": "vardagsrum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.vardagsrum_fonster_hangande",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "vardagsrum fönster piano light",
|
|
"room": "vardagsrum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.vardagsrum_fonster_piano",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "vardagsrum fönster trappa light",
|
|
"room": "vardagsrum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.vardagsrum_fonster_trappa",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "vardagsrum tak light",
|
|
"room": "vardagsrum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.vardagsrum_tak",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "vardagsrum bord light",
|
|
"room": "vardagsrum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.vardagsrum_bord",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean candle",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.candle",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch adaptive lighting kök",
|
|
"room": "kok",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_kok",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch adaptive lighting kök fönster",
|
|
"room": "kok",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_kok_fonster",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch adaptive lighting hall",
|
|
"room": "hall",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_hall",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch adaptive lighting badrum",
|
|
"room": "badrum",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_badrum",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch adaptive lighting vardagsrum belysning filament",
|
|
"room": "vardagsrum",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_vardagsrum_belysning_filament",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "automation vardagsrum belysning",
|
|
"room": "vardagsrum",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.vardagsrum_belysning",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "automation kök belysning litet fönster",
|
|
"room": "kok",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.kok_belysning_litet_fonster",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "automation kök belysning stora fönster",
|
|
"room": "kok",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.kok_belysning_stora_fonster",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "badrum_candle",
|
|
"automation": "- alias: Badrum Candle\n id: badrum_candle\n triggers:\n - trigger: state\n entity_id: input_boolean.badrum_candle\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.badrum_candle\n state: 'on'\n sequence:\n - action: switch.turn_off\n target:\n entity_id: switch.adaptive_lighting_badrum\n - delay:\n seconds: 5\n - action: light.turn_on\n target:\n entity_id: light.badrum\n data:\n profile: candle\n - conditions:\n - condition: state\n entity_id: input_boolean.badrum_candle\n state: 'off'\n sequence:\n - action: switch.turn_on\n target:\n entity_id: switch.adaptive_lighting_badrum",
|
|
"config": [
|
|
{
|
|
"name": "badrum light",
|
|
"room": "badrum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.badrum",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean badrum candle",
|
|
"room": "badrum",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.badrum_candle",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch adaptive lighting badrum",
|
|
"room": "badrum",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_badrum",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Ljusstakar",
|
|
"automation": "- alias: Ljusstakar\n id: Ljusstakar\n trigger:\n - platform: state\n entity_id: binary_sensor.ljusstakar_belysning_automation_control\n - platform: homeassistant\n event: start\n action:\n - service: '{% if is_state(''binary_sensor.ljusstakar_belysning_automation_control'',\n ''on'') %} light.turn_on {% elif is_state(''binary_sensor.ljusstakar_belysning_automation_control'',\n ''off'') %} light.turn_off {% endif %}\n\n '\n entity_id:\n - light.ac_0000002_4\n - light.ac0000001_4\n - light.ac_0000002_3\n - light.ac_0ccc4aa_6\n - light.ac_000000a_1\n - light.ac_0000001_3",
|
|
"config": [
|
|
{
|
|
"name": "ac 0000002 4",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.ac_0000002_4",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ac0000001 4",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.ac0000001_4",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ac 0000002 3",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.ac_0000002_3",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ac 0ccc4aa 6",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.ac_0ccc4aa_6",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ac 000000a 1",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.ac_000000a_1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ac 0000001 3",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.ac_0000001_3",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor ljusstakar belysning automation control",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.ljusstakar_belysning_automation_control",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Gästrum Ljusstakar",
|
|
"automation": "- alias: Gästrum Ljusstakar\n id: Gästrum Ljusstakar\n trigger:\n - platform: state\n entity_id: binary_sensor.gastrum_ljusstakar_belysning_automation_control\n - platform: homeassistant\n event: start\n action:\n - service: '{% if is_state(''binary_sensor.gastrum_ljusstakar_belysning_automation_control'',\n ''on'') %} light.turn_on {% elif is_state(''binary_sensor.gastrum_ljusstakar_belysning_automation_control'',\n ''off'') %} light.turn_off {% endif %}\n\n '\n entity_id:\n - light.gastrum_ljusstake",
|
|
"config": [
|
|
{
|
|
"name": "gastrum ljusstake",
|
|
"room": "gastrum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.gastrum_ljusstake",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor gastrum ljusstakar belysning automation control",
|
|
"room": "gastrum",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.gastrum_ljusstakar_belysning_automation_control",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "diskmaskin_klar",
|
|
"automation": "- alias: Diskmaskin klar\n id: diskmaskin_klar\n triggers:\n - trigger: state\n entity_id: binary_sensor.diskmaskin\n from: 'on'\n to: 'off'\n actions:\n - action: notify.persistent_notification\n data:\n message: Diskmaskin\n title: Diskmaskinen är klar\n - action: notify.mobile_app_mikael_iphone\n data:\n message: Diskmaskin klar\n title: Diskmaskinen är klar\n - action: notify.mobile_app_lina_iphone\n data:\n message: Diskmaskin klar\n title: Diskmaskinen är klar",
|
|
"config": [
|
|
{
|
|
"name": "binary sensor diskmaskin",
|
|
"room": "kok",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.diskmaskin",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Heatpump blockera",
|
|
"automation": "- alias: Heatpump blockera\n id: Heatpump blockera\n trigger:\n - trigger: time_pattern\n minutes: 2\n - trigger: time_pattern\n minutes: 32\n action:\n - service: '{% if is_state(''binary_sensor.heatpump_block'', ''on'') %} switch.turn_on\n {% elif is_state(''binary_sensor.heatpump_block'', ''off'') %} switch.turn_off\n {% endif %}\n\n '\n entity_id:\n - switch.heatpump",
|
|
"config": [
|
|
{
|
|
"name": "binary sensor heatpump block",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.heatpump_block",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch heatpump",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.heatpump",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Heatpump energikalla",
|
|
"automation": "- alias: Heatpump energikalla\n id: Heatpump energikalla\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.power_from_grid\n - platform: homeassistant\n event: start\n action:\n - choose:\n - conditions:\n - condition: state\n state: 'on'\n entity_id: binary_sensor.power_from_grid\n sequence:\n - service: select.select_option\n target:\n entity_id:\n - select.heatpump_timme_from\n - select.heatpump_dag_from\n - select.heatpump_manad_from\n - select.heatpump_ar_from\n - select.heatpump_hotwater_timme_from\n - select.heatpump_hotwater_dag_from\n - select.heatpump_hotwater_manad_from\n - select.heatpump_hotwater_ar_from\n - select.heatpump_heat_timme_from\n - select.heatpump_heat_dag_from\n - select.heatpump_heat_manad_from\n - select.heatpump_heat_ar_from\n data:\n option: grid\n - conditions:\n - condition: state\n state: 'off'\n entity_id: binary_sensor.power_from_grid\n sequence:\n - service: select.select_option\n target:\n entity_id:\n - select.heatpump_timme_from\n - select.heatpump_dag_from\n - select.heatpump_manad_from\n - select.heatpump_ar_from\n - select.heatpump_hotwater_timme_from\n - select.heatpump_hotwater_dag_from\n - select.heatpump_hotwater_manad_from\n - select.heatpump_hotwater_ar_from\n - select.heatpump_heat_timme_from\n - select.heatpump_heat_dag_from\n - select.heatpump_heat_manad_from\n - select.heatpump_heat_ar_from\n data:\n option: solar",
|
|
"config": [
|
|
{
|
|
"name": "binary sensor power from grid",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.power_from_grid",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "select heatpump timme from",
|
|
"room": null,
|
|
"type": "select",
|
|
"id": {
|
|
"entity_id": "select.heatpump_timme_from",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "select heatpump dag from",
|
|
"room": null,
|
|
"type": "select",
|
|
"id": {
|
|
"entity_id": "select.heatpump_dag_from",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "select heatpump månad from",
|
|
"room": null,
|
|
"type": "select",
|
|
"id": {
|
|
"entity_id": "select.heatpump_manad_from",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "select heatpump år from",
|
|
"room": null,
|
|
"type": "select",
|
|
"id": {
|
|
"entity_id": "select.heatpump_ar_from",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "select heatpump hotwater timme from",
|
|
"room": null,
|
|
"type": "select",
|
|
"id": {
|
|
"entity_id": "select.heatpump_hotwater_timme_from",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "select heatpump hotwater dag from",
|
|
"room": null,
|
|
"type": "select",
|
|
"id": {
|
|
"entity_id": "select.heatpump_hotwater_dag_from",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "select heatpump hotwater månad from",
|
|
"room": null,
|
|
"type": "select",
|
|
"id": {
|
|
"entity_id": "select.heatpump_hotwater_manad_from",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "select heatpump hotwater år from",
|
|
"room": null,
|
|
"type": "select",
|
|
"id": {
|
|
"entity_id": "select.heatpump_hotwater_ar_from",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "select heatpump heat timme from",
|
|
"room": null,
|
|
"type": "select",
|
|
"id": {
|
|
"entity_id": "select.heatpump_heat_timme_from",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "select heatpump heat dag from",
|
|
"room": null,
|
|
"type": "select",
|
|
"id": {
|
|
"entity_id": "select.heatpump_heat_dag_from",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "select heatpump heat månad from",
|
|
"room": null,
|
|
"type": "select",
|
|
"id": {
|
|
"entity_id": "select.heatpump_heat_manad_from",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "select heatpump heat år from",
|
|
"room": null,
|
|
"type": "select",
|
|
"id": {
|
|
"entity_id": "select.heatpump_heat_ar_from",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "EMHASS publicera data",
|
|
"automation": "- alias: EMHASS publicera data\n id: EMHASS publicera data\n trigger:\n - platform: homeassistant\n event: start\n - minutes: /1\n platform: time_pattern\n action:\n - service: shell_command.publish_data_def2",
|
|
"config": [
|
|
{
|
|
"name": "shell command publish data def2",
|
|
"room": null,
|
|
"type": "shell_command",
|
|
"id": {
|
|
"entity_id": "shell_command.publish_data_def2",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "EMHASS_forecast_mpc",
|
|
"automation": "- alias: EMHASS_forecast_mpc\n id: EMHASS_forecast_mpc\n trigger:\n - platform: time_pattern\n minutes: /1\n action:\n - delay:\n seconds: 30\n - service: shell_command.trigger_nordpool_solcast_mpc",
|
|
"config": [
|
|
{
|
|
"name": "shell command trigger nordpool solcast mpc",
|
|
"room": null,
|
|
"type": "shell_command",
|
|
"id": {
|
|
"entity_id": "shell_command.trigger_nordpool_solcast_mpc",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "EMHASS_forecast_mpc_bil",
|
|
"automation": "- alias: EMHASS_forecast_mpc_bil\n id: EMHASS_forecast_mpc_bil\n trigger:\n - platform: time_pattern\n minutes: /1\n action:\n - delay:\n seconds: 30\n - service: shell_command.trigger_nordpool_solcast_mpc_bil",
|
|
"config": [
|
|
{
|
|
"name": "shell command trigger nordpool solcast mpc",
|
|
"room": null,
|
|
"type": "shell_command",
|
|
"id": {
|
|
"entity_id": "shell_command.trigger_nordpool_solcast_mpc",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "shell command trigger nordpool solcast mpc bil",
|
|
"room": null,
|
|
"type": "shell_command",
|
|
"id": {
|
|
"entity_id": "shell_command.trigger_nordpool_solcast_mpc_bil",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "EMHASS_machine_learn",
|
|
"automation": "- alias: EMHASS_machine_learn\n id: EMHASS_machine_learn\n triggers:\n - trigger: time\n at: '12:00:10'\n actions:\n - action: shell_command.emhass_machine_learn\n - delay:\n seconds: 1\n - action: shell_command.emhass_machine_tune",
|
|
"config": [
|
|
{
|
|
"name": "shell command emhass machine learn",
|
|
"room": null,
|
|
"type": "shell_command",
|
|
"id": {
|
|
"entity_id": "shell_command.emhass_machine_learn",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "shell command emhass machine tune",
|
|
"room": null,
|
|
"type": "shell_command",
|
|
"id": {
|
|
"entity_id": "shell_command.emhass_machine_tune",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "solcast_update",
|
|
"automation": "- alias: solcast_update\n id: solcast_update\n trigger:\n - platform: time_pattern\n hours: /3\n minutes: 14\n action:\n - service: solcast_solar.update_forecasts",
|
|
"config": []
|
|
},
|
|
{
|
|
"id": "Gästrum belysning",
|
|
"automation": "- alias: Gästrum belysning\n id: Gästrum belysning\n triggers:\n - trigger: state\n entity_id: binary_sensor.gastrum_belysning_automation_control\n - trigger: state\n entity_id: input_boolean.sovdags_gastrum\n - trigger: homeassistant\n event: start\n actions:\n - action: light.turn_{{ iif(states('binary_sensor.gastrum_belysning_automation_control')\n == 'on', 'on', 'off') }}\n target:\n entity_id:\n - light.gastrum_fonster_2\n - light.gastrum_byra\n - delay:\n seconds: 5\n - action: switch.turn_{{ iif(is_state('input_boolean.sovdags_gastrum', 'on'), 'off',\n 'on') }}\n target:\n entity_id: switch.adaptive_lighting_gastrum\n - condition: state\n entity_id: input_boolean.sovdags_gastrum\n state: 'off'\n - action: light.turn_off\n target:\n entity_id: light.linas_skrivbord",
|
|
"config": [
|
|
{
|
|
"name": "gastrum fönster 2",
|
|
"room": "gastrum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.gastrum_fonster_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gastrum byrå light",
|
|
"room": "gastrum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.gastrum_byra",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "linas skrivbord light",
|
|
"room": "linas_rum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.linas_skrivbord",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor gastrum belysning automation control",
|
|
"room": "gastrum",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.gastrum_belysning_automation_control",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean sovdags gastrum",
|
|
"room": "gastrum",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.sovdags_gastrum",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean sovdags",
|
|
"room": "sovrum",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.sovdags",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch adaptive lighting gastrum",
|
|
"room": "gastrum",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_gastrum",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "gastrum_belysning_filament",
|
|
"automation": "- alias: Gästrum belysning filament\n id: gastrum_belysning_filament\n triggers:\n - trigger: state\n entity_id: binary_sensor.gastrum_belysning_filament_automation_control\n - trigger: homeassistant\n event: start\n actions:\n - action: light.turn_{{ iif(states('binary_sensor.gastrum_belysning_filament_automation_control')\n == 'on', 'on', 'off') }}\n target:\n entity_id:\n - light.gastrum_hylla",
|
|
"config": [
|
|
{
|
|
"name": "gastrum hylla light",
|
|
"room": "gastrum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.gastrum_hylla",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor gastrum belysning filament automation control",
|
|
"room": "gastrum",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.gastrum_belysning_filament_automation_control",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Gästrum knapp vid säng",
|
|
"automation": "- alias: Gästrum knapp vid säng\n id: Gästrum knapp vid säng\n trigger:\n - trigger: event\n event_type: deconz_event\n event_data:\n id: sovrum_knapp\n event: 1002\n actions:\n - action: input_boolean.toggle\n target:\n entity_id: input_boolean.sovdags_gastrum",
|
|
"config": [
|
|
{
|
|
"name": "input boolean sovdags gastrum",
|
|
"room": "gastrum",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.sovdags_gastrum",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean sovdags",
|
|
"room": "sovrum",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.sovdags",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "gastrum_varme",
|
|
"automation": "- alias: Gästrum värme\n id: gastrum_varme\n triggers:\n - trigger: state\n entity_id: binary_sensor.varmegolv_block\n - trigger: homeassistant\n event: start\n actions:\n - action: climate.set_hvac_mode\n target:\n entity_id: climate.gastrum_varmegolv\n data:\n hvac_mode: '{{ iif(states(''binary_sensor.varmegolv_block'') == ''on'', ''off'',\n ''heat'') }}'",
|
|
"config": [
|
|
{
|
|
"name": "binary sensor varmegolv block",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.varmegolv_block",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "climate gastrum varmegolv",
|
|
"room": "gastrum",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.gastrum_varmegolv",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Hall takbelysning",
|
|
"automation": "- alias: Hall takbelysning\n id: Hall takbelysning\n triggers:\n - trigger: state\n entity_id: binary_sensor.hall_presence_light_automation_control\n - trigger: homeassistant\n event: start\n actions:\n - action: light.turn_{{ iif(states('binary_sensor.hall_presence_light_automation_control')\n == 'on', 'on', 'off') }}\n target:\n entity_id:\n - light.hall",
|
|
"config": [
|
|
{
|
|
"name": "hall light",
|
|
"room": "hall",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.hall",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor hall presence light automation control",
|
|
"room": "hall",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.hall_presence_light_automation_control",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "carport_snapshot",
|
|
"automation": "- alias: Carport snapshot\n id: carport_snapshot\n triggers:\n - trigger: state\n entity_id: binary_sensor.carport_vehicle\n to: 'on'\n - trigger: state\n entity_id: binary_sensor.carport_person\n to: 'on'\n actions:\n - action: camera.snapshot\n target:\n entity_id: camera.carport_main\n data:\n filename: /media/disk_f/snapshots/{{ trigger.to_state.name }}/{{ now().strftime(\"%Y-%m-%d\")\n }}/{{ now().strftime(\"%Y-%m-%d_%H:%M\") }}.jpg",
|
|
"config": [
|
|
{
|
|
"name": "binary sensor carport vehicle",
|
|
"room": "carport",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.carport_vehicle",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor carport person",
|
|
"room": "carport",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.carport_person",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "camera carport main",
|
|
"room": "carport",
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.carport_main",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "entre_snapshot",
|
|
"automation": "- alias: Entré snapshot\n id: entre_snapshot\n triggers:\n - trigger: state\n entity_id: binary_sensor.entre_reolink_person\n to: 'on'\n actions:\n - action: camera.snapshot\n target:\n entity_id: camera.entre_reolink_clear\n data:\n filename: /media/disk_f/snapshots/{{ trigger.to_state.name }}/{{ now().strftime(\"%Y-%m-%d\")\n }}/{{ now().strftime(\"%Y-%m-%d_%H:%M\") }}.jpg",
|
|
"config": [
|
|
{
|
|
"name": "binary sensor entre reolink person",
|
|
"room": "entre",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.entre_reolink_person",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "camera entre reolink clear",
|
|
"room": "entre",
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.entre_reolink_clear",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "carport_inspelning",
|
|
"automation": "- alias: Carport inspelning\n id: carport_inspelning\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: state\n entity_id: binary_sensor.carport_vehicle\n to: 'on'\n - trigger: state\n entity_id: binary_sensor.carport_person\n to: 'on'\n actions:\n - action: camera.record\n data:\n filename: /media/disk_f/recordings/{{ trigger.to_state.name }}/{{ now().strftime(\"%Y-%m-%d\")\n }}/{{ now().strftime(\"%Y-%m-%d_%H:%M\") }}.mp4\n duration: 180\n target:\n entity_id: camera.carport_main\n - delay: 180",
|
|
"config": [
|
|
{
|
|
"name": "binary sensor carport vehicle",
|
|
"room": "carport",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.carport_vehicle",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor carport person",
|
|
"room": "carport",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.carport_person",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "camera carport main",
|
|
"room": "carport",
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.carport_main",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "kattkamera_inspelning",
|
|
"automation": "- alias: Kattkamera inspelning\n id: kattkamera_inspelning\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: state\n entity_id: binary_sensor.tvattstuga_djur\n to: 'on'\n actions:\n - action: camera.record\n data:\n filename: /media/disk_f/recordings/{{ trigger.to_state.name }}/{{ now().strftime(\"%Y-%m-%d\")\n }}/{{ now().strftime(\"%Y-%m-%d_%H:%M\") }}.mp4\n duration: 60\n target:\n entity_id: camera.tvattstuga_hog_klarhet\n - delay: 60",
|
|
"config": [
|
|
{
|
|
"name": "binary sensor tvättstuga djur",
|
|
"room": "tvattstuga",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.tvattstuga_djur",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "camera tvättstuga hög klarhet",
|
|
"room": "tvattstuga",
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.tvattstuga_hog_klarhet",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "carport_rorelse",
|
|
"automation": "- alias: Carport rörelse\n id: carport_rorelse\n triggers:\n - trigger: state\n entity_id: binary_sensor.carport_motion\n to: 'on'\n actions:\n - action: camera.snapshot\n target:\n entity_id: camera.carport_main\n data:\n filename: /media/disk_f/snapshots/Carport_rörelse_{{ now().strftime(\"%Y-%m-%d_%H:%M\")\n }}.jpg\n - action: notify.mobile_app_mikael_iphone\n data:\n message: Något rör sig\n title: Rörelse\n data:\n image: /api/camera_proxy/camera.carport_main",
|
|
"config": [
|
|
{
|
|
"name": "binary sensor carport motion",
|
|
"room": "carport",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.carport_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "camera carport main",
|
|
"room": "carport",
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.carport_main",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "carport_rorelse_person_notifiering",
|
|
"automation": "- alias: Carport rörelse person notifiering\n id: carport_rorelse_person_notifiering\n triggers:\n - trigger: state\n entity_id: binary_sensor.carport_presence\n to: 'on'\n actions:\n - action: camera.snapshot\n target:\n entity_id: camera.carport_main\n data:\n filename: /media/notify.jpg\n - delay: 1\n - action: notify.mobile_app_mikael_iphone\n data:\n message: Någon rör sig\n title: Rörelse person\n data:\n image: /media/local/notify.jpg\n url: /lovelace/cam\n - action: notify.mobile_app_lina_iphone\n data:\n message: Någon rör sig\n title: Rörelse person\n data:\n image: /media/local/notify.jpg",
|
|
"config": [
|
|
{
|
|
"name": "binary sensor carport presence",
|
|
"room": "carport",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.carport_presence",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "camera carport main",
|
|
"room": "carport",
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.carport_main",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "entre_rorelse_person_notifiering",
|
|
"automation": "- alias: Entré rörelse person notifiering\n id: entre_rorelse_person_notifiering\n triggers:\n - trigger: state\n entity_id: binary_sensor.entre_presence_person\n to: 'on'\n actions:\n - action: camera.snapshot\n target:\n entity_id: camera.entre_reolink_clear\n data:\n filename: /media/entre_notify.jpg\n - delay: 1\n - action: notify.mobile_app_mikael_iphone\n data:\n message: Någon rör sig vid entrén\n title: Rörelse person\n data:\n image: /media/local/entre_notify.jpg\n url: /lovelace/cam\n - action: notify.mobile_app_lina_iphone\n data:\n message: Någon rör sig vid entrén\n title: Rörelse person\n data:\n image: /media/local/entre_notify.jpg",
|
|
"config": [
|
|
{
|
|
"name": "binary sensor entre presence person",
|
|
"room": "entre",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.entre_presence_person",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "camera entre reolink clear",
|
|
"room": "entre",
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.entre_reolink_clear",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "entre_rorelse_djur_notifiering",
|
|
"automation": "- alias: Entré rörelse djur notifiering\n id: entre_rorelse_djur_notifiering\n triggers:\n - trigger: state\n entity_id: binary_sensor.entre_presence_animal\n to: 'on'\n actions:\n - action: camera.snapshot\n target:\n entity_id: camera.entre_reolink_clear\n data:\n filename: /media/entre_notify_animal.jpg\n - delay: 1\n - action: notify.mobile_app_mikael_iphone\n data:\n message: Djur rör sig vid entrén\n title: Rörelse djur\n data:\n image: /media/local/entre_notify_animal.jpg\n url: /lovelace/cam\n - action: notify.mobile_app_lina_iphone\n data:\n message: Djur rör sig vid entrén\n title: Rörelse djur\n data:\n image: /media/local/entre_notify_animal.jpg\n url: /lovelace/cam",
|
|
"config": [
|
|
{
|
|
"name": "binary sensor entre presence animal",
|
|
"room": "entre",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.entre_presence_animal",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "camera entre reolink clear",
|
|
"room": "entre",
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.entre_reolink_clear",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "carport_rorelse_bil_notifiering",
|
|
"automation": "- alias: Carport rörelse bil notifiering\n id: carport_rorelse_bil_notifiering\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: state\n entity_id: binary_sensor.carport_vehicle\n to: 'on'\n actions:\n - action: camera.snapshot\n target:\n entity_id: camera.carport_main\n data:\n filename: /media/notify_car.jpg\n - delay: 1\n - action: notify.mobile_app_mikael_iphone\n data:\n message: Bil upptäckt\n title: Rörelse bil\n data:\n image: /media/local/notify_car.jpg\n url: /lovelace/cam\n - delay: 5\n - action: notify.mobile_app_lina_iphone\n data:\n message: Bil upptäckt\n title: Rörelse bil\n data:\n image: /media/local/notify_car.jpg\n - delay:\n minutes: 5",
|
|
"config": [
|
|
{
|
|
"name": "binary sensor carport vehicle",
|
|
"room": "carport",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.carport_vehicle",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "camera carport main",
|
|
"room": "carport",
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.carport_main",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "kattkamera_rorelse_notifiering",
|
|
"automation": "- alias: Kattkamera rörelse notifiering\n id: kattkamera_rorelse_notifiering\n triggers:\n - trigger: state\n entity_id: binary_sensor.tvattstuga_djur\n to: 'on'\n actions:\n - action: camera.snapshot\n target:\n entity_id: camera.tvattstuga_hog_klarhet\n data:\n filename: /media/kattkamera_notify.jpg\n - delay: 1\n - action: notify.mobile_app_mikael_iphone\n data:\n message: Rörelse i tvättstugan\n title: Katt?\n data:\n image: /media/local/kattkamera_notify.jpg\n url: /lovelace/foder\n - action: notify.mobile_app_lina_iphone\n data:\n message: Rörelse i tvättstugan\n title: Katt?\n data:\n image: /media/local/kattkamera_notify.jpg\n url: /lovelace/foder",
|
|
"config": [
|
|
{
|
|
"name": "binary sensor tvättstuga djur",
|
|
"room": "tvattstuga",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.tvattstuga_djur",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "camera tvättstuga hög klarhet",
|
|
"room": "tvattstuga",
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.tvattstuga_hog_klarhet",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "kok_bankbelysning",
|
|
"automation": "- alias: Kök bänkbelysning\n id: kok_bankbelysning\n triggers:\n - trigger: state\n entity_id: binary_sensor.kok_bank_presence_light_automation_control\n - trigger: homeassistant\n event: start\n actions:\n - action: light.turn_{{ iif(states('binary_sensor.kok_bank_presence_light_automation_control')\n == 'on', 'on', 'off') }}\n target:\n entity_id:\n - light.kok_bankbelysning",
|
|
"config": [
|
|
{
|
|
"name": "kok bänkbelysning",
|
|
"room": "kok",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kok_bankbelysning",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor kok bänk presence light automation control",
|
|
"room": "kok",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kok_bank_presence_light_automation_control",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "kok_belysning_stora_fonster",
|
|
"automation": "- alias: Kök belysning stora fönster\n id: kok_belysning_stora_fonster\n triggers:\n - trigger: state\n entity_id: binary_sensor.kok_belysning_filament_automation_control\n - trigger: homeassistant\n event: start\n actions:\n - action: light.turn_{{ iif(states('binary_sensor.kok_belysning_filament_automation_control')\n == 'on', 'on', 'off') }}\n target:\n entity_id:\n - light.kok_fonster_1\n - light.kok_fonster_2",
|
|
"config": [
|
|
{
|
|
"name": "kok fönster 1",
|
|
"room": "kok",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kok_fonster_1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kok fönster 2",
|
|
"room": "kok",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kok_fonster_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor kok belysning filament automation control",
|
|
"room": "kok",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kok_belysning_filament_automation_control",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "kok_belysning_litet_fonster",
|
|
"automation": "- alias: Kök belysning litet fönster\n id: kok_belysning_litet_fonster\n triggers:\n - trigger: state\n entity_id: binary_sensor.kok_belysning_litet_fonster_automation_control\n - trigger: homeassistant\n event: start\n actions:\n - action: light.turn_{{ iif(states('binary_sensor.kok_belysning_litet_fonster_automation_control')\n == 'on', 'on', 'off') }}\n target:\n entity_id:\n - light.kok_fonster_3",
|
|
"config": [
|
|
{
|
|
"name": "kok fönster 3",
|
|
"room": "kok",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kok_fonster_3",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor kok belysning litet fönster automation control",
|
|
"room": "kok",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kok_belysning_litet_fonster_automation_control",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "kok_kaffe_vattenkokare_auto_avstangning",
|
|
"automation": "- alias: Kaffebryggare/Espresso/Vattenkokare auto-avstängning\n id: kok_kaffe_vattenkokare_auto_avstangning\n mode: restart\n triggers:\n - trigger: state\n entity_id: switch.kok_kaffe_vattenkokare\n to: 'on'\n - trigger: state\n entity_id: binary_sensor.kok_kaffe_vattenkokare_aktiv_anvandning\n to: 'on'\n actions:\n - action: number.set_value\n target:\n entity_id: number.kok_kaffe_vattenkokare_countdown\n data:\n value: 3600",
|
|
"config": [
|
|
{
|
|
"name": "binary sensor kok kaffe vattenkokare aktiv användning",
|
|
"room": "kok",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kok_kaffe_vattenkokare_aktiv_anvandning",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch kok kaffe vattenkokare",
|
|
"room": "kok",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.kok_kaffe_vattenkokare",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "number kok kaffe vattenkokare countdown",
|
|
"room": "kok",
|
|
"type": "number",
|
|
"id": {
|
|
"entity_id": "number.kok_kaffe_vattenkokare_countdown",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "kok_skafferibelysning",
|
|
"automation": "- alias: Kök skafferibelysning\n id: kok_skafferibelysning\n triggers:\n - trigger: state\n entity_id: binary_sensor.kok_skafferi_presence_light_automation_control\n - trigger: homeassistant\n event: start\n actions:\n - action: light.turn_{{ iif(states('binary_sensor.kok_skafferi_presence_light_automation_control')\n == 'on', 'on', 'off') }}\n target:\n entity_id:\n - light.kok_skafferi",
|
|
"config": [
|
|
{
|
|
"name": "kok skafferi light",
|
|
"room": "kok",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kok_skafferi",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor kok skafferi presence light automation control",
|
|
"room": "kok",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kok_skafferi_presence_light_automation_control",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "kok_takbelysning",
|
|
"automation": "- alias: Kök takbelysning\n id: kok_takbelysning\n triggers:\n - trigger: state\n entity_id: binary_sensor.kok_presence_light_automation_control\n - trigger: homeassistant\n event: start\n actions:\n - action: light.turn_{{ iif(states('binary_sensor.kok_presence_light_automation_control')\n == 'on', 'on', 'off') }}\n target:\n entity_id:\n - light.kok_tak\n - light.kok_koksbord_1\n - light.kok_koksbord_2\n - light.kok_kokso\n - light.hall_byra\n - light.kok_vedspis",
|
|
"config": [
|
|
{
|
|
"name": "hall light",
|
|
"room": "hall",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.hall",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "hall byrå light",
|
|
"room": "hall",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.hall_byra",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kok koksbord light",
|
|
"room": "kok",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kok_koksbord",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kok tak light",
|
|
"room": "kok",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kok_tak",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kok kokso light",
|
|
"room": "kok",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kok_kokso",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kok vedspis light",
|
|
"room": "kok",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kok_vedspis",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kok koksbord 1",
|
|
"room": "kok",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kok_koksbord_1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kok koksbord 2",
|
|
"room": "kok",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kok_koksbord_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor kok presence light automation control",
|
|
"room": "kok",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kok_presence_light_automation_control",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "kok_varme",
|
|
"automation": "- alias: Kök värme\n id: kok_varme\n triggers:\n - trigger: time_pattern\n minutes: /30\n actions:\n - action: climate.set_hvac_mode\n target:\n entity_id: climate.kok_varmegolv\n data:\n hvac_mode: '{{ iif(states(''binary_sensor.varmegolv_block'') == ''on'', ''off'',\n ''heat'') }}'",
|
|
"config": [
|
|
{
|
|
"name": "binary sensor varmegolv block",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.varmegolv_block",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "climate kok varmegolv",
|
|
"room": "kok",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.kok_varmegolv",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "mikaels_rum_belysning_fonster",
|
|
"automation": "- alias: Mikaels rum belysning fönster\n id: mikaels_rum_belysning_fonster\n triggers:\n - trigger: state\n entity_id: binary_sensor.mikaels_rum_belysning_automation_control\n - trigger: homeassistant\n event: start\n actions:\n - action: light.turn_{{ iif(states('binary_sensor.mikaels_rum_belysning_automation_control')\n == 'on', 'on', 'off') }}\n target:\n entity_id:\n - light.mikaels_rum_fonster",
|
|
"config": [
|
|
{
|
|
"name": "mikaels rum fönster light",
|
|
"room": "mikaels_rum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.mikaels_rum_fonster",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor mikaels rum belysning automation control",
|
|
"room": "mikaels_rum",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.mikaels_rum_belysning_automation_control",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "mikaels_rum_belysning_av",
|
|
"automation": "- alias: Mikaels rum belysning av\n id: mikaels_rum_belysning_av\n triggers:\n - trigger: state\n entity_id: binary_sensor.mikaels_rum_belysning_av\n to: 'off'\n actions:\n - action: light.turn_off\n target:\n entity_id:\n - light.mikaels_rum_hue_play_1\n - light.mikaels_rum_hue_play_2\n - light.mikaels_rum_hue_play_3\n - light.mikaels_rum_skrivbord\n - light.mikaels_rum_ljusslinga\n - light.mikaels_rum_tak",
|
|
"config": [
|
|
{
|
|
"name": "mikaels rum hue play 1",
|
|
"room": "mikaels_rum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.mikaels_rum_hue_play_1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mikaels rum hue play 2",
|
|
"room": "mikaels_rum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.mikaels_rum_hue_play_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mikaels rum hue play 3",
|
|
"room": "mikaels_rum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.mikaels_rum_hue_play_3",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mikaels rum skrivbord light",
|
|
"room": "mikaels_rum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.mikaels_rum_skrivbord",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mikaels rum ljusslinga",
|
|
"room": "mikaels_rum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.mikaels_rum_ljusslinga",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mikaels rum tak light",
|
|
"room": "mikaels_rum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.mikaels_rum_tak",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mikaels rum hue play",
|
|
"room": "mikaels_rum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.mikaels_rum_hue_play",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor mikaels rum belysning av",
|
|
"room": "mikaels_rum",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.mikaels_rum_belysning_av",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "semester_sovdags",
|
|
"automation": "- alias: Semester sovdags\n id: semester_sovdags\n triggers:\n - trigger: time\n at: '21:00:00'\n id: sovdags_tid\n - trigger: time\n at: 07:30:00\n id: vakna_tid\n conditions:\n - condition: state\n entity_id: input_boolean.semester\n state: 'on'\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: sovdags_tid\n sequence:\n - delay: '{{ (range(0, 1)|random|int) }}:{{ (range(1, 59)|random|int) }}:00'\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.sovdags\n - conditions:\n - condition: trigger\n id: vakna_tid\n sequence:\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.sovdags",
|
|
"config": [
|
|
{
|
|
"name": "input boolean semester",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.semester",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean sovdags",
|
|
"room": "sovrum",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.sovdags",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "snickarboa_avfuktare",
|
|
"automation": "- alias: Snickarboa avfuktare\n id: snickarboa_avfuktare\n triggers:\n - trigger: state\n entity_id: binary_sensor.heatpump_emhass\n - trigger: homeassistant\n event: start\n actions:\n - action: humidifier.turn_{{ iif(states('binary_sensor.heatpump_emhass') == 'on',\n 'on', 'off') }}\n target:\n entity_id: humidifier.snickarboa_avfuktare",
|
|
"config": [
|
|
{
|
|
"name": "binary sensor heatpump emhass",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.heatpump_emhass",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "humidifier snickarboa avfuktare",
|
|
"room": "snickarboa",
|
|
"type": "humidifier",
|
|
"id": {
|
|
"entity_id": "humidifier.snickarboa_avfuktare",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "snickarboa_belysning",
|
|
"automation": "- alias: Snickarboa belysning\n id: snickarboa_belysning\n triggers:\n - trigger: state\n entity_id: binary_sensor.snickarboa_presence_light_automation_control\n - trigger: homeassistant\n event: start\n actions:\n - action: light.turn_{{ iif(states('binary_sensor.snickarboa_presence_light_automation_control')\n == 'on', 'on', 'off') }}\n target:\n entity_id:\n - light.snickarboa_arbetsbank\n - light.snickarboa_spotlights",
|
|
"config": [
|
|
{
|
|
"name": "snickarboa arbetsbank light",
|
|
"room": "snickarboa",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.snickarboa_arbetsbank",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "snickarboa spotlights",
|
|
"room": "snickarboa",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.snickarboa_spotlights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor snickarboa presence light automation control",
|
|
"room": "snickarboa",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.snickarboa_presence_light_automation_control",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "snickarboa_varmare",
|
|
"automation": "- alias: Snickarboa värmare\n id: snickarboa_varmare\n triggers:\n - trigger: state\n entity_id: binary_sensor.snickarboa_heater\n - trigger: homeassistant\n event: start\n actions:\n - action: climate.set_hvac_mode\n target:\n entity_id: climate.snickarboa\n data:\n hvac_mode: '{{ iif(states(''binary_sensor.snickarboa_heater'') == ''on'', ''heat'',\n ''off'') }}'",
|
|
"config": [
|
|
{
|
|
"name": "binary sensor snickarboa heater",
|
|
"room": "snickarboa",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.snickarboa_heater",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "climate snickarboa",
|
|
"room": "snickarboa",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.snickarboa",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "solar_battery_mode",
|
|
"automation": "- alias: solar_battery_mode\n id: solar_battery_mode\n trigger:\n - platform: state\n entity_id: sensor.solar_battery_mode\n - platform: state\n entity_id: sensor.p_batt_forecast\n action:\n - delay:\n seconds: 30\n - choose:\n - conditions:\n - condition: state\n entity_id: sensor.solar_battery_mode\n state: charge\n sequence:\n - service: script.solar_battery_mode\n data:\n StorCTLMod: 3\n MinRsvPct: 1000\n OutWRte: '{{ 65536 - (0 - states(''sensor.p_batt_forecast'') | int(0) /\n 10240 * 10000) | int(0) }}'\n InWRte: '{{ (0 - states(''sensor.p_batt_forecast'') | int(0) / 10240 * 10000)\n | int(0) }}'\n - conditions:\n - condition: state\n entity_id: sensor.solar_battery_mode\n state: charge_max\n sequence:\n - service: script.solar_battery_mode\n data:\n StorCTLMod: 3\n MinRsvPct: 1000\n OutWRte: '{{ 65536 - (0 - -5000 | int(0) / 10240 * 10000) | int(0) }}'\n InWRte: '{{ (0 - -5000 | int(0) / 10240 * 10000) | int(0) }}'\n - conditions:\n - condition: state\n entity_id: sensor.solar_battery_mode\n state: charge_from_solar\n sequence:\n - service: script.solar_battery_mode\n data:\n StorCTLMod: 2\n MinRsvPct: 1000\n OutWRte: 0\n InWRte: 10000\n - conditions:\n - condition: state\n entity_id: sensor.solar_battery_mode\n state: discharge\n sequence:\n - service: script.solar_battery_mode\n data:\n StorCTLMod: 1\n MinRsvPct: 1000\n OutWRte: 10000\n InWRte: 0\n - conditions:\n - condition: state\n entity_id: sensor.solar_battery_mode\n state: discharge_fixed\n sequence:\n - service: script.solar_battery_mode\n data:\n StorCTLMod: 3\n MinRsvPct: 1000\n OutWRte: '{{ (states(''sensor.p_batt_forecast'') | int(0) / 10240 * 10000)\n | int(0) }}'\n InWRte: '{{ 65536 - (states(''sensor.p_batt_forecast'') | int(0) / 10240\n * 10000) | int(0) }}'\n - conditions:\n - condition: state\n entity_id: sensor.solar_battery_mode\n state: discharge_min_limit\n sequence:\n - service: script.solar_battery_mode\n data:\n StorCTLMod: 1\n MinRsvPct: 1000\n OutWRte: 10000\n InWRte: '{{ 65536 - (states(''sensor.p_batt_forecast'') | int(0) / 10240\n * 10000) | int(0) }}'\n - conditions:\n - condition: state\n entity_id: sensor.solar_battery_mode\n state: blocked\n sequence:\n - service: script.solar_battery_mode\n data:\n StorCTLMod: 3\n MinRsvPct: 1000\n OutWRte: 0\n InWRte: 0\n - conditions:\n - condition: state\n entity_id: sensor.solar_battery_mode\n state: idle\n sequence:\n - service: script.solar_battery_mode\n data:\n StorCTLMod: 3\n MinRsvPct: 1000\n OutWRte: 0\n InWRte: 0",
|
|
"config": [
|
|
{
|
|
"name": "sensor solar battery mode",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.solar_battery_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sensor p batt forecast",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.p_batt_forecast",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script solar battery mode",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.solar_battery_mode",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ssam_sophatmning_fni1",
|
|
"automation": "- alias: ssam_sophatmning_fni1\n id: ssam_sophatmning_fni1\n trigger:\n platform: state\n entity_id: sensor.ssam_sophatmning_fni1\n attribute: days_from_today\n to: 1\n action:\n - service: persistent_notification.create\n data_template:\n message: Sophämtning\n title: Imorgon tömts kärl 1\n - service: notify.mobile_app_mikael_iphone\n data_template:\n message: Sophämtning\n title: Imorgon tömts kärl 1\n - service: notify.mobile_app_lina_iphone\n data_template:\n message: Sophämtning\n title: Imorgon tömts kärl 1",
|
|
"config": [
|
|
{
|
|
"name": "sensor ssam sophatmning fni1",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.ssam_sophatmning_fni1",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ssam_sophatmning_fni2",
|
|
"automation": "- alias: ssam_sophatmning_fni2\n id: ssam_sophatmning_fni2\n trigger:\n platform: state\n entity_id: sensor.ssam_sophatmning_fni2\n attribute: days_from_today\n to: 1\n action:\n - service: persistent_notification.create\n data_template:\n message: Sophämtning\n title: Imorgon tömts kärl 2\n - service: notify.mobile_app_mikael_iphone\n data_template:\n message: Sophämtning\n title: Imorgon tömts kärl 2\n - service: notify.mobile_app_lina_iphone\n data_template:\n message: Sophämtning\n title: Imorgon tömts kärl 2",
|
|
"config": [
|
|
{
|
|
"name": "sensor ssam sophatmning fni2",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.ssam_sophatmning_fni2",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "sovdags",
|
|
"automation": "- alias: Sovdags\n id: sovdags\n triggers:\n - trigger: state\n entity_id: input_boolean.sovdags\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.sovdags\n state: 'on'\n sequence:\n - delay:\n seconds: 10\n - action: light.turn_off\n target:\n entity_id:\n - light.mikaels_rum_tak\n - light.mikaels_rum_hue_play\n - light.mikaels_rum_ljusslinga\n - light.mikaels_rum_skrivbord\n - light.linas_skrivbord\n - light.barnrum_tak_1\n - delay:\n seconds: 5\n - action: switch.turn_on\n target:\n entity_id:\n - switch.adaptive_lighting_sleep_mode_allrum\n - switch.adaptive_lighting_sleep_mode_allrum_belysning_filament\n - switch.adaptive_lighting_sleep_mode_badrum\n - switch.adaptive_lighting_sleep_mode_kok\n - switch.adaptive_lighting_sleep_mode_kok_fonster\n - switch.adaptive_lighting_sleep_mode_sovrum\n - switch.adaptive_lighting_sleep_mode_tvattstuga\n - switch.adaptive_lighting_sleep_mode_vardagsrum_belysning_filament\n - switch.adaptive_lighting_sleep_mode_vardagsrum_tak\n - switch.adaptive_lighting_sleep_mode_hall\n - switch.adaptive_lighting_sleep_mode_barnrum\n - delay:\n seconds: 5\n - action: switch.turn_off\n target:\n entity_id:\n - switch.adaptive_lighting_mikaels_rum\n - action: light.turn_on\n target:\n entity_id:\n - light.barnrum_fonster_1\n - action: automation.turn_off\n target:\n entity_id:\n - automation.barnrum_belysning\n - automation.barnrum_belysning_fonster\n - conditions:\n - condition: state\n entity_id: input_boolean.sovdags\n state: 'off'\n sequence:\n - action: switch.turn_off\n target:\n entity_id:\n - switch.adaptive_lighting_sleep_mode_allrum\n - switch.adaptive_lighting_sleep_mode_allrum_belysning_filament\n - switch.adaptive_lighting_sleep_mode_badrum\n - switch.adaptive_lighting_sleep_mode_kok\n - switch.adaptive_lighting_sleep_mode_kok_fonster\n - switch.adaptive_lighting_sleep_mode_sovrum\n - switch.adaptive_lighting_sleep_mode_tvattstuga\n - switch.adaptive_lighting_sleep_mode_vardagsrum_belysning_filament\n - switch.adaptive_lighting_sleep_mode_hall\n - action: switch.turn_on\n target:\n entity_id:\n - switch.adaptive_lighting_sovrum\n - switch.adaptive_lighting_mikaels_rum",
|
|
"config": [
|
|
{
|
|
"name": "barnrum fönster 1",
|
|
"room": "barnrum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.barnrum_fonster_1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "barnrum tak 1",
|
|
"room": "barnrum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.barnrum_tak_1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mikaels rum skrivbord light",
|
|
"room": "mikaels_rum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.mikaels_rum_skrivbord",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mikaels rum ljusslinga",
|
|
"room": "mikaels_rum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.mikaels_rum_ljusslinga",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mikaels rum tak light",
|
|
"room": "mikaels_rum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.mikaels_rum_tak",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mikaels rum hue play",
|
|
"room": "mikaels_rum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.mikaels_rum_hue_play",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "linas skrivbord light",
|
|
"room": "linas_rum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.linas_skrivbord",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean sovdags",
|
|
"room": "sovrum",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.sovdags",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch adaptive lighting sleep mode allrum",
|
|
"room": "allrum",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sleep_mode_allrum",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch adaptive lighting sleep mode allrum belysning filament",
|
|
"room": "allrum",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sleep_mode_allrum_belysning_filament",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch adaptive lighting sleep mode badrum",
|
|
"room": "badrum",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sleep_mode_badrum",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch adaptive lighting sleep mode kök",
|
|
"room": "kok",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sleep_mode_kok",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch adaptive lighting sleep mode kök fönster",
|
|
"room": "kok",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sleep_mode_kok_fonster",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch adaptive lighting sleep mode sovrum",
|
|
"room": "sovrum",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sleep_mode_sovrum",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch adaptive lighting sleep mode tvättstuga",
|
|
"room": "tvattstuga",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sleep_mode_tvattstuga",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch adaptive lighting sleep mode vardagsrum belysning filament",
|
|
"room": "vardagsrum",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sleep_mode_vardagsrum_belysning_filament",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch adaptive lighting sleep mode vardagsrum tak",
|
|
"room": "vardagsrum",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sleep_mode_vardagsrum_tak",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch adaptive lighting sleep mode hall",
|
|
"room": "hall",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sleep_mode_hall",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch adaptive lighting sleep mode barnrum",
|
|
"room": "barnrum",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sleep_mode_barnrum",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch adaptive lighting mikaels rum",
|
|
"room": "mikaels_rum",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_mikaels_rum",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch adaptive lighting sovrum",
|
|
"room": "sovrum",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sovrum",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "automation barnrum belysning",
|
|
"room": "barnrum",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.barnrum_belysning",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "automation barnrum belysning fönster",
|
|
"room": "barnrum",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.barnrum_belysning_fonster",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "sovrum_belysning",
|
|
"automation": "- alias: Sovrum belysning\n id: sovrum_belysning\n triggers:\n - trigger: state\n entity_id: binary_sensor.sovrum_belysning_automation_control\n - trigger: homeassistant\n event: start\n actions:\n - action: light.turn_{{ iif(states('binary_sensor.sovrum_belysning_automation_control')\n == 'on', 'on', 'off') }}\n target:\n entity_id:\n - light.sovrum_byra\n - light.sovrum_sang_lina\n - light.sovrum_sang_mikael",
|
|
"config": [
|
|
{
|
|
"name": "sovrum byrå light",
|
|
"room": "sovrum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.sovrum_byra",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sovrum säng lina",
|
|
"room": "sovrum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.sovrum_sang_lina",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sovrum säng mikael",
|
|
"room": "sovrum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.sovrum_sang_mikael",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sovrum light",
|
|
"room": "sovrum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.sovrum",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sovrum belysning automation control",
|
|
"room": "Sovrum",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.sovrum_belysning_automation_control",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "sovrum_sang_mikael_knapp",
|
|
"automation": "- alias: Sovrum Säng Mikael Knapp\n id: sovrum_sang_mikael_knapp\n triggers:\n - platform: device\n domain: mqtt\n device_id: d804ff674d445d8a0704fc6dc3634837\n type: action\n subtype: single\n - platform: device\n domain: mqtt\n device_id: d804ff674d445d8a0704fc6dc3634837\n type: action\n subtype: double\n - platform: device\n domain: mqtt\n device_id: d804ff674d445d8a0704fc6dc3634837\n type: action\n subtype: hold\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ trigger.payload == \"single\" }}'\n sequence:\n - action: input_boolean.toggle\n target:\n entity_id: input_boolean.sovdags\n - conditions:\n - condition: template\n value_template: '{{ trigger.payload == \"double\" }}'\n sequence:\n - action: light.toggle\n target:\n entity_id: light.sovrum_sang_mikael\n - conditions:\n - condition: template\n value_template: '{{ trigger.payload == \"hold\" }}'\n sequence:\n - action: light.turn_off\n target:\n entity_id: light.sovrum\n - action: switch.turn_off\n target:\n entity_id: switch.adaptive_lighting_sovrum",
|
|
"config": [
|
|
{
|
|
"name": "sovrum säng mikael",
|
|
"room": "sovrum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.sovrum_sang_mikael",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sovrum light",
|
|
"room": "sovrum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.sovrum",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean sovdags",
|
|
"room": "sovrum",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.sovdags",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch adaptive lighting sovrum",
|
|
"room": "sovrum",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sovrum",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sovrum säng mikael knapp device",
|
|
"room": "sovrum",
|
|
"type": "device",
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "d804ff674d445d8a0704fc6dc3634837"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "teknikrum_knapp",
|
|
"automation": "- alias: Teknikrum knapp\n id: teknikrum_knapp\n triggers:\n - platform: device\n domain: mqtt\n device_id: 8f98424ec0a69a4e044ea99d3117134b\n type: action\n subtype: single\n actions:\n - action: light.toggle\n target:\n entity_id: light.teknikrum_tak",
|
|
"config": [
|
|
{
|
|
"name": "teknikrum tak light",
|
|
"room": "teknikrum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.teknikrum_tak",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "teknikrum knapp device",
|
|
"room": "teknikrum",
|
|
"type": "device",
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "8f98424ec0a69a4e044ea99d3117134b"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "tibber_reload",
|
|
"automation": "- alias: tibber_reload\n id: tibber_reload\n trigger:\n - platform: time_pattern\n minutes: /10\n condition:\n - condition: template\n value_template: '{{ has_value(''sensor.electricity_price_sannesholma_2181'') ==\n False }}\n\n '\n action:\n - service: homeassistant.reload_config_entry\n data: {}\n target:\n device_id: 03fdcc07bb636a9631c65c2dd1673eb5\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "sensor electricity price sannesholma 2181",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.electricity_price_sannesholma_2181",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "tibber reload device",
|
|
"room": null,
|
|
"type": "device",
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "03fdcc07bb636a9631c65c2dd1673eb5"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "torktumlare_klar",
|
|
"automation": "- alias: Torktumlare klar\n id: torktumlare_klar\n triggers:\n - trigger: state\n entity_id: binary_sensor.torktumlare\n from: 'on'\n to: 'off'\n actions:\n - action: notify.persistent_notification\n data:\n message: Torktumlare\n title: Torktumlaren är klar\n - action: notify.mobile_app_mikael_iphone\n data:\n message: Torktumlare klar\n title: Torktumlaren är klar\n - action: notify.mobile_app_lina_iphone\n data:\n message: Torktumlare\n title: Torktumlaren är klar",
|
|
"config": [
|
|
{
|
|
"name": "binary sensor torktumlare",
|
|
"room": "tvattstuga",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.torktumlare",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "tvattmaskin_klar",
|
|
"automation": "- alias: Tvättmaskin klar\n id: tvattmaskin_klar\n triggers:\n - trigger: state\n entity_id: binary_sensor.tvattmaskin\n from: 'on'\n to: 'off'\n actions:\n - action: notify.persistent_notification\n data:\n message: Tvättmaskin\n title: Tvätten är klar\n - action: notify.mobile_app_mikael_iphone\n data:\n message: Tvättmaskin klar\n title: Tvätten är klar\n - action: notify.mobile_app_lina_iphone\n data:\n message: Tvättmaskin klar\n title: Tvätten är klar",
|
|
"config": [
|
|
{
|
|
"name": "binary sensor tvättmaskin",
|
|
"room": "tvattstuga",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.tvattmaskin",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "tvattstuga_belysning",
|
|
"automation": "- alias: Tvättstuga belysning\n id: tvattstuga_belysning\n triggers:\n - trigger: state\n entity_id: binary_sensor.tvattstuga_belysning_automation_control\n - trigger: homeassistant\n event: start\n actions:\n - action: light.turn_{{ iif(states('binary_sensor.tvattstuga_belysning_automation_control')\n == 'on', 'on', 'off') }}\n target:\n entity_id:\n - light.tvattstuga_fonster",
|
|
"config": [
|
|
{
|
|
"name": "tvättstuga fönster light",
|
|
"room": "tvattstuga",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.tvattstuga_fonster",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor tvättstuga belysning automation control",
|
|
"room": "tvattstuga",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.tvattstuga_belysning_automation_control",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Utomhusbelysning",
|
|
"automation": "- alias: Utomhusbelysning\n id: Utomhusbelysning\n trigger:\n - platform: state\n entity_id: binary_sensor.utomhusbelysning_automation_control\n - platform: homeassistant\n event: start\n action:\n - service: '{% if is_state(''binary_sensor.utomhusbelysning_automation_control'',\n ''on'') %} light.turn_on {% elif is_state(''binary_sensor.utomhusbelysning_automation_control'',\n ''off'') %} light.turn_off {% endif %}\n\n '\n entity_id:\n - light.groventre_dorr\n - light.carport_entre\n - light.stolpe_gang\n - light.stolpe_grind",
|
|
"config": [
|
|
{
|
|
"name": "grov entre dörr light",
|
|
"room": "utomhus",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.groventre_dorr",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "carport entre light",
|
|
"room": "carport",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.carport_entre",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "stolpe gång light",
|
|
"room": "utomhus",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.stolpe_gang",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "stolpe grind light",
|
|
"room": "utomhus",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.stolpe_grind",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor utomhusbelysning automation control",
|
|
"room": "utomhus",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.utomhusbelysning_automation_control",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Entré belysning",
|
|
"automation": "- alias: Entré belysning\n id: Entré belysning\n trigger:\n - platform: state\n entity_id: binary_sensor.utomhusbelysning_automation_control\n - platform: homeassistant\n event: start\n action:\n - service: '{% if is_state(''binary_sensor.utomhusbelysning_automation_control'',\n ''on'') %} light.turn_on {% elif is_state(''binary_sensor.utomhusbelysning_automation_control'',\n ''off'') %} light.turn_off {% endif %}\n\n '\n entity_id:\n - light.entre_dorr",
|
|
"config": [
|
|
{
|
|
"name": "entre dörr light",
|
|
"room": "entre",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.entre_dorr",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor utomhusbelysning automation control",
|
|
"room": "utomhus",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.utomhusbelysning_automation_control",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Entré närvarobelysning",
|
|
"automation": "- alias: Entré närvarobelysning\n id: Entré närvarobelysning\n trigger:\n - platform: state\n entity_id: binary_sensor.entre_presence_automation_control\n - platform: homeassistant\n event: start\n action:\n - choose:\n - conditions:\n - condition: state\n state: 'on'\n entity_id: binary_sensor.entre_presence_automation_control\n sequence:\n - service: switch.turn_off\n entity_id: switch.adaptive_lighting_adapt_brightness_utomhusbelysning_hue\n - service: light.turn_on\n entity_id:\n - light.entre_dorr\n data:\n brightness_pct: 100\n - conditions:\n - condition: state\n state: 'off'\n entity_id: binary_sensor.entre_presence_automation_control\n sequence:\n - service: switch.turn_on\n entity_id: switch.adaptive_lighting_adapt_brightness_utomhusbelysning_hue",
|
|
"config": [
|
|
{
|
|
"name": "entre dörr light",
|
|
"room": "entre",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.entre_dorr",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor entre presence automation control",
|
|
"room": "entre",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.entre_presence_automation_control",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch adaptive lighting adapt brightness utomhusbelysning hue",
|
|
"room": "utomhus",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_adapt_brightness_utomhusbelysning_hue",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Utomhusbelysning film",
|
|
"automation": "- alias: Utomhusbelysning film\n id: Utomhusbelysning film\n trigger:\n - platform: state\n entity_id: binary_sensor.utomhusbelysning_film_automation_control\n - platform: homeassistant\n event: start\n action:\n - service: '{% if is_state(''binary_sensor.utomhusbelysning_film_automation_control'',\n ''on'') %} light.turn_on {% elif is_state(''binary_sensor.utomhusbelysning_film_automation_control'',\n ''off'') %} light.turn_off {% endif %}\n\n '\n entity_id:\n - light.koksentre_dorr\n - light.snickarboa_entre\n - light.stall_entre\n - light.kackorna_entre",
|
|
"config": [
|
|
{
|
|
"name": "koks entre dörr light",
|
|
"room": "utomhus",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.koksentre_dorr",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "snickarboa entre light",
|
|
"room": "snickarboa",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.snickarboa_entre",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "stall entre light",
|
|
"room": "stall",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.stall_entre",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kackorna entre light",
|
|
"room": "utomhus",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kackorna_entre",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor utomhusbelysning film automation control",
|
|
"room": "utomhus",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.utomhusbelysning_film_automation_control",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Ljusslingor",
|
|
"automation": "- alias: Ljusslingor\n id: Ljusslingor\n trigger:\n - platform: state\n entity_id: binary_sensor.utomhusbelysning_ljusslingor_automation_control\n - platform: homeassistant\n event: start\n action:\n - service: '{% if is_state(''binary_sensor.utomhusbelysning_ljusslingor_automation_control'',\n ''on'') %} light.turn_on {% elif is_state(''binary_sensor.utomhusbelysning_ljusslingor_automation_control'',\n ''off'') %} light.turn_off {% endif %}\n\n '\n entity_id:\n - light.entre_ljusslinga\n - light.koksentre_ljusslinga\n - light.vaxthus_ljusslinga\n - light.lekstuga_ljusslinga",
|
|
"config": [
|
|
{
|
|
"name": "entre ljusslinga",
|
|
"room": "entre",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.entre_ljusslinga",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "koks entre ljusslinga",
|
|
"room": "utomhus",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.koksentre_ljusslinga",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "växthus ljusslinga",
|
|
"room": "vaxthus",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.vaxthus_ljusslinga",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lekstuga ljusslinga",
|
|
"room": "lekstuga",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.lekstuga_ljusslinga",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor utomhusbelysning ljusslingor automation control",
|
|
"room": "utomhus",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.utomhusbelysning_ljusslingor_automation_control",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Vardagsrum belysning filament",
|
|
"automation": "- alias: Vardagsrum belysning filament\n id: Vardagsrum belysning filament\n triggers:\n - trigger: state\n entity_id: binary_sensor.vardagsrum_belysning_filament_automation_control\n - trigger: homeassistant\n event: start\n actions:\n - action: light.turn_{{ iif(states('binary_sensor.vardagsrum_belysning_filament_automation_control')\n == 'on', 'on', 'off') }}\n target:\n entity_id:\n - light.vardagsrum_fonster_fotogen\n - light.vardagsrum_fonster_hangande",
|
|
"config": [
|
|
{
|
|
"name": "vardagsrum fönster fotogen light",
|
|
"room": "vardagsrum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.vardagsrum_fonster_fotogen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "vardagsrum fönster hängande light",
|
|
"room": "vardagsrum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.vardagsrum_fonster_hangande",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor vardagsrum belysning filament automation control",
|
|
"room": "vardagsrum",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.vardagsrum_belysning_filament_automation_control",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Vardagsrum belysning fönster",
|
|
"automation": "- alias: Vardagsrum belysning fönster\n id: Vardagsrum belysning fönster\n triggers:\n - trigger: state\n entity_id: binary_sensor.vardagsrum_belysning_fonster_automation_control\n - trigger: homeassistant\n event: start\n actions:\n - action: light.turn_{{ iif(states('binary_sensor.vardagsrum_belysning_fonster_automation_control')\n == 'on', 'on', 'off') }}\n target:\n entity_id:\n - light.vardagsrum_fonster_piano\n - light.vardagsrum_fonster_trappa\n - light.vardagsrum_fonster_ytterdorr\n - light.vardagsrum_fonster_vitrinskap\n - light.trappa",
|
|
"config": [
|
|
{
|
|
"name": "vardagsrum fönster piano light",
|
|
"room": "vardagsrum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.vardagsrum_fonster_piano",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "vardagsrum fönster trappa light",
|
|
"room": "vardagsrum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.vardagsrum_fonster_trappa",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "vardagsrum fönster ytterdörr light",
|
|
"room": "vardagsrum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.vardagsrum_fonster_ytterdorr",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "vardagsrum fönster vitrinskåp light",
|
|
"room": "vardagsrum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.vardagsrum_fonster_vitrinskap",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "trappa light",
|
|
"room": "trappa",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.trappa",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor vardagsrum belysning fönster automation control",
|
|
"room": "vardagsrum",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.vardagsrum_belysning_fonster_automation_control",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Vardagsrum belysning tak",
|
|
"automation": "- alias: Vardagsrum belysning tak\n id: Vardagsrum belysning tak\n triggers:\n - trigger: state\n entity_id: binary_sensor.vardagsrum_presence_light_automation_control\n - trigger: homeassistant\n event: start\n actions:\n - action: light.turn_{{ iif(states('binary_sensor.vardagsrum_presence_light_automation_control')\n == 'on', 'on', 'off') }}\n target:\n entity_id:\n - light.vardagsrum_tak\n - light.vardagsrum_bord",
|
|
"config": [
|
|
{
|
|
"name": "vardagsrum tak light",
|
|
"room": "vardagsrum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.vardagsrum_tak",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "vardagsrum bord light",
|
|
"room": "vardagsrum",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.vardagsrum_bord",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor vardagsrum presence light automation control",
|
|
"room": "vardagsrum",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.vardagsrum_presence_light_automation_control",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Vardagsrum värme",
|
|
"automation": "- alias: Vardagsrum värme\n id: Vardagsrum värme\n triggers:\n - trigger: time_pattern\n minutes: 2\n - trigger: time_pattern\n minutes: 32\n actions:\n - action: climate.set_hvac_mode\n target:\n entity_id: climate.vardagsrum_varmegolv\n data:\n hvac_mode: '{{ iif(states(''binary_sensor.varmegolv_block'') == ''on'', ''off'',\n ''heat'') }}'",
|
|
"config": [
|
|
{
|
|
"name": "binary sensor varmegolv block",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.varmegolv_block",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "climate vardagsrum varmegolv",
|
|
"room": "vardagsrum",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.vardagsrum_varmegolv",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "walk_in_closet_belysning",
|
|
"automation": "- alias: Walk in closet belysning\n id: walk_in_closet_belysning\n triggers:\n - trigger: state\n entity_id: binary_sensor.walk_in_closet_presence_light_automation_control\n - trigger: homeassistant\n event: start\n actions:\n - action: light.turn_{{ iif(states('binary_sensor.walk_in_closet_presence_light_automation_control')\n == 'on', 'on', 'off') }}\n target:\n entity_id:\n - light.walk_in_closet",
|
|
"config": [
|
|
{
|
|
"name": "walk in closet light",
|
|
"room": "walk_in_closet",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.walk_in_closet",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor walk in closet presence light automation control",
|
|
"room": "walk_in_closet",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.walk_in_closet_presence_light_automation_control",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
}
|
|
] |