[ { "id": "alarm_triggered", "automation": "- alias: alarm_triggered\n id: alarm_triggered\n triggers:\n - trigger: state\n entity_id: alarm_control_panel.intrusion_detection_system\n to: triggered\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - action: script.notify\n data:\n domain: alarm\n message: Alarm ausgelöst.", "config": [ { "name": "intrusion detection system", "room": null, "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.intrusion_detection_system", "device_id": null } }, { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } } ] }, { "id": "alarm_arm", "automation": "- alias: alarm_arm\n id: alarm_arm\n triggers:\n - trigger: state\n entity_id: group.family\n to: not_home\n for:\n minutes: '{{ states ( ''input_number.alarm_arming_after'' ) }}'\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: state\n entity_id: binary_sensor.alarm_activated\n state: 'on'\n actions:\n - action: alarm_control_panel.alarm_arm_away\n target:\n entity_id: alarm_control_panel.intrusion_detection_system\n - action: script.notify\n data:\n domain: alarm\n message: Alarmsystem aktiviert.", "config": [ { "name": "intrusion detection system", "room": null, "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.intrusion_detection_system", "device_id": null } }, { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "alarm activated", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.alarm_activated", "device_id": null } }, { "name": "family group", "room": null, "type": "group", "id": { "entity_id": "group.family", "device_id": null } } ] }, { "id": "alarm_disarm", "automation": "- alias: alarm_disarm\n id: alarm_disarm\n triggers:\n - trigger: state\n entity_id: lock.eingangstur\n from: locked\n to: unlocked\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: state\n entity_id: alarm_control_panel.intrusion_detection_system\n state: armed_away\n actions:\n - action: alarm_control_panel.alarm_disarm\n target:\n entity_id: alarm_control_panel.intrusion_detection_system\n - action: script.notify\n data:\n domain: alarm\n message: Alarmsystem deaktiviert.", "config": [ { "name": "intrusion detection system", "room": null, "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.intrusion_detection_system", "device_id": null } }, { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "entry door lock", "room": null, "type": "lock", "id": { "entity_id": "lock.eingangstur", "device_id": null } } ] }, { "id": "alarm_state_changed", "automation": "- alias: alarm_state_changed\n id: alarm_state_changed\n triggers:\n - trigger: state\n entity_id: alarm_control_panel.intrusion_detection_system\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - action: script.notify\n data:\n domain: alarm\n message: 'Neuer Status Alarmanlage: {{ states ( ''alarm_control_panel.intrusion_detection_system''\n ) }}.'", "config": [ { "name": "intrusion detection system", "room": null, "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.intrusion_detection_system", "device_id": null } }, { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } } ] }, { "id": "bambulab_light", "automation": "- alias: bambulab_light\n id: bambulab_light\n mode: restart\n variables:\n led_brightness: 255\n ok_duration: 2\n triggers:\n - trigger: state\n alias: When printer stage,status or chamber light state changes\n entity_id:\n - light.x1c_00m09a410500788_druckraumbeleuchtung\n - sensor.x1c_00m09a410500788_druckstatus\n - sensor.x1c_00m09a410500788_aktueller_arbeitsschritt\n conditions:\n - condition: state\n alias: process only on production server\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - if:\n - condition: state\n alias: chamber light is on\n entity_id: light.x1c_00m09a410500788_druckraumbeleuchtung\n state: 'on'\n - not:\n - condition: state\n entity_id: sensor.x1c_00m09a410500788_druckstatus\n state: offline\n then:\n - choose:\n - conditions:\n - or:\n - condition: state\n entity_id: sensor.x1c_00m09a410500788_aktueller_arbeitsschritt\n state:\n - paused_filament_runout\n - paused_front_cover_falling\n - paused_nozzle_temperature_malfunction\n - paused_heat_bed_temperature_malfunction\n - paused_ams_lost\n - paused_chamber_temperature_control_error\n - paused_nozzle_filament_covered_detected\n - paused_first_layer_error\n - paused_low_fan_speed_heat_break\n - paused_skipped_step\n - paused_cutter_error\n - paused_nozzle_clog\n - unknown\n - offline\n sequence:\n - action: light.turn_on\n data:\n rgb_color:\n - 255\n - 0\n - 0\n effect: blink\n target:\n entity_id: light.ws2812_x1c\n - conditions:\n - or:\n - condition: state\n entity_id: sensor.x1c_00m09a410500788_druckstatus\n state:\n - finish\n sequence:\n - action: light.turn_on\n data:\n rgb_color:\n - 0\n - 255\n - 0\n effect: static\n target:\n entity_id: light.ws2812_x1c\n - delay:\n minutes: '{{ ok_duration }}'\n - action: light.turn_on\n data:\n rgb_color:\n - 255\n - 255\n - 255\n effect: static\n target:\n entity_id: light.ws2812_x1c\n - conditions:\n - or:\n - condition: state\n entity_id: sensor.x1c_00m09a410500788_aktueller_arbeitsschritt\n state:\n - auto_bed_leveling\n - scanning_bed_surface\n - cleaning_nozzle_tip\n - calibrating_extrusion\n - calibrating_extrusion_flow\n - calibrating_motor_noise\n - inspecting_first_layer\n - sweeping_xy_mech_mode\n - calibrating_micro_lidar\n - homing_toolhead\n - identifying_build_plate_type\n sequence:\n - action: light.turn_on\n data:\n rgb_color:\n - 0\n - 0\n - 255\n effect: static\n target:\n entity_id: light.ws2812_x1c\n - conditions:\n - or:\n - condition: state\n entity_id: sensor.x1c_00m09a410500788_aktueller_arbeitsschritt\n state:\n - heatbed_preheating\n - heating_hotend\n sequence:\n - action: light.turn_on\n data:\n rgb_color:\n - 255\n - 169\n - 0\n effect: static\n target:\n entity_id: light.ws2812_x1c\n - conditions:\n - or:\n - condition: state\n entity_id: sensor.x1c_00m09a410500788_aktueller_arbeitsschritt\n state:\n - filament_loading\n - filament_unloading\n sequence:\n - action: light.turn_on\n data:\n rgb_color:\n - 255\n - 0\n - 255\n effect: blink\n target:\n entity_id: light.ws2812_x1c\n - conditions:\n - or:\n - condition: state\n entity_id: sensor.x1c_00m09a410500788_aktueller_arbeitsschritt\n state:\n - cooling_chamber\n sequence:\n - action: light.turn_on\n data:\n rgb_color:\n - 0\n - 0\n - 255\n effect: static\n target:\n entity_id: light.ws2812_x1c\n default:\n - action: light.turn_on\n alias: torn on with white light (default)\n data:\n rgb_color:\n - 255\n - 255\n - 255\n effect: static\n target:\n entity_id: light.ws2812_x1c\n else:\n - action: light.turn_off\n alias: turn off\n target:\n entity_id: light.ws2812_x1c", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "druckraumbeleuchtung", "room": "druckraum", "type": "light", "id": { "entity_id": "light.x1c_00m09a410500788_druckraumbeleuchtung", "device_id": null } }, { "name": "druckstatus", "room": "druckraum", "type": "sensor", "id": { "entity_id": "sensor.x1c_00m09a410500788_druckstatus", "device_id": null } }, { "name": "aktueller arbeitsschritt", "room": "druckraum", "type": "sensor", "id": { "entity_id": "sensor.x1c_00m09a410500788_aktueller_arbeitsschritt", "device_id": null } }, { "name": "ws2812 x1c", "room": "druckraum", "type": "light", "id": { "entity_id": "light.ws2812_x1c", "device_id": null } } ] }, { "id": "climate_schedule", "automation": "- alias: climate_schedule\n id: climate_schedule\n triggers:\n - trigger: time_pattern\n minutes: /5\n - trigger: state\n entity_id: group.family\n to: home\n - trigger: state\n entity_id:\n - input_number.climate_target_temperature\n - input_number.climate_min_forecast_temperature\n - input_number.climate_min_forecast_temperature_sunny\n - input_number.climate_min_outdoor_temperature\n - sensor.boiler_outside_temperature\n - trigger: state\n entity_id:\n - binary_sensor.fenster_schlafzimmer\n - binary_sensor.dachfenster_schlafzimmer\n - binary_sensor.fenster_kinderzimmer\n - binary_sensor.dachfenster_kinderzimmer\n - binary_sensor.fenster_arbeitszimmer\n - binary_sensor.dachfenster_arbeitszimmer\n to: 'off'\n for: 00:00:10\n conditions:\n - condition: state\n entity_id: input_boolean.climate_activated\n state: 'on'\n - condition: time\n after: input_datetime.climate_startperiode_begin\n before: input_datetime.climate_startperiode_end\n - condition: state\n entity_id: group.family\n state: home\n - condition: numeric_state\n entity_id: sensor.sh10rt_master_battery_level\n above: input_number.climate_min_battery_level\n - condition: numeric_state\n entity_id: sensor.total_dc_power\n above: input_number.climate_min_pv_generation\n - or:\n - and:\n - not:\n - condition: state\n entity_id: sensor.openweathermap_forecast_condition\n state: sunny\n - condition: numeric_state\n entity_id: sensor.openweathermap_forecast_temperature\n above: input_number.climate_min_forecast_temperature\n - and:\n - condition: state\n entity_id: sensor.openweathermap_forecast_condition\n state: sunny\n - condition: numeric_state\n entity_id: sensor.openweathermap_forecast_temperature\n above: input_number.climate_min_forecast_temperature_sunny\n - condition: numeric_state\n entity_id: sensor.boiler_outside_temperature\n above: input_number.climate_min_outdoor_temperature\n actions:\n - repeat:\n for_each:\n - climate: office\n room: arbeitszimmer\n - climate: bedroom\n room: schlafzimmer\n - climate: nursery\n room: kinderzimmer\n sequence:\n - if:\n - condition: template\n value_template: \"{# start only climates which are scheduled, not running\\\n \\ and with closed windows #} {{\\n states ( 'input_boolean.climate_start_'\\\n \\ + repeat.item.climate ) == 'on'\\n and states ( 'input_boolean.climate_'\\\n \\ + repeat.item.climate + '_scheduled' ) == 'off'\\n and (\\n states\\\n \\ ( 'climate.' + repeat.item.climate ) == 'off'\\n or states ( 'switch.klimaanlage_'\\\n \\ + repeat.item.room ) == 'off'\\n )\\n and states ( 'binary_sensor.fenster_'\\\n \\ + repeat.item.room ) == 'off'\\n and states ( 'binary_sensor.dachfenster_'\\\n \\ + repeat.item.room ) == 'off'\\n}}\\n\"\n then:\n - if:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n then:\n - if:\n - condition: template\n value_template: '{{ states ( ''switch.klimaanlage_'' + repeat.item.room\n ) == ''off'' }}'\n then:\n - action: switch.turn_on\n data: {}\n target:\n entity_id: switch.klimaanlage_{{ repeat.item.room }}\n - wait_template: '{{ states ( ''switch.klimaanlage_'' + repeat.item.room\n ) == ''on'' }}'\n - delay:\n seconds: 10\n - condition: template\n value_template: '{{ states ( ''switch.klimaanlage_'' + repeat.item.room\n ) == ''on'' }}'\n - action: input_boolean.turn_on\n data:\n entity_id: '{{ ''input_boolean.climate_'' + repeat.item.climate + ''_scheduled''\n }}'", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "family group", "room": null, "type": "group", "id": { "entity_id": "group.family", "device_id": null } }, { "name": "climate target temperature", "room": null, "type": "input_number", "id": { "entity_id": "input_number.climate_target_temperature", "device_id": null } }, { "name": "climate min forecast temperature", "room": null, "type": "input_number", "id": { "entity_id": "input_number.climate_min_forecast_temperature", "device_id": null } }, { "name": "climate min forecast temperature sunny", "room": null, "type": "input_number", "id": { "entity_id": "input_number.climate_min_forecast_temperature_sunny", "device_id": null } }, { "name": "climate min outdoor temperature", "room": null, "type": "input_number", "id": { "entity_id": "input_number.climate_min_outdoor_temperature", "device_id": null } }, { "name": "boiler outside temperature", "room": null, "type": "sensor", "id": { "entity_id": "sensor.boiler_outside_temperature", "device_id": null } }, { "name": "fenster schlafzimmer", "room": "schlafzimmer", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.fenster_schlafzimmer", "device_id": null } }, { "name": "dachfenster schlafzimmer", "room": "schlafzimmer", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.dachfenster_schlafzimmer", "device_id": null } }, { "name": "fenster kinderzimmer", "room": "kinderzimmer", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.fenster_kinderzimmer", "device_id": null } }, { "name": "dachfenster kinderzimmer", "room": "kinderzimmer", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.dachfenster_kinderzimmer", "device_id": null } }, { "name": "fenster arbeitszimmer", "room": "arbeitszimmer", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.fenster_arbeitszimmer", "device_id": null } }, { "name": "dachfenster arbeitszimmer", "room": "arbeitszimmer", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.dachfenster_arbeitszimmer", "device_id": null } }, { "name": "climate activated", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.climate_activated", "device_id": null } }, { "name": "climate startperiode begin", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.climate_startperiode_begin", "device_id": null } }, { "name": "climate startperiode end", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.climate_startperiode_end", "device_id": null } }, { "name": "sh10rt master battery level", "room": null, "type": "sensor", "id": { "entity_id": "sensor.sh10rt_master_battery_level", "device_id": null } }, { "name": "climate min battery level", "room": null, "type": "input_number", "id": { "entity_id": "input_number.climate_min_battery_level", "device_id": null } }, { "name": "total dc power", "room": null, "type": "sensor", "id": { "entity_id": "sensor.total_dc_power", "device_id": null } }, { "name": "climate min pv generation", "room": null, "type": "input_number", "id": { "entity_id": "input_number.climate_min_pv_generation", "device_id": null } }, { "name": "openweathermap forecast condition", "room": null, "type": "sensor", "id": { "entity_id": "sensor.openweathermap_forecast_condition", "device_id": null } }, { "name": "openweathermap forecast temperature", "room": null, "type": "sensor", "id": { "entity_id": "sensor.openweathermap_forecast_temperature", "device_id": null } } ] }, { "id": "climate_start", "automation": "- alias: climate_start\n id: climate_start\n triggers:\n - trigger: time_pattern\n minutes: /1\n - trigger: state\n entity_id:\n - input_boolean.climate_office_scheduled\n - input_boolean.climate_bedroom_scheduled\n - input_boolean.climate_nursery_scheduled\n to: 'on'\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: state\n entity_id: input_boolean.climate_activated\n state: 'on'\n actions:\n - repeat:\n for_each:\n - climate: office\n window: arbeitszimmer\n - climate: bedroom\n window: schlafzimmer\n - climate: nursery\n window: kinderzimmer\n sequence:\n - if:\n - condition: template\n value_template: \"{# start climates which are not running and scheduled #}\\\n \\ {{\\n states ( 'input_boolean.climate_' + repeat.item.climate + '_scheduled'\\\n \\ ) == 'on'\\n and states ( 'climate.' + repeat.item.climate ) == 'off'\\n\\\n }}\\n\"\n then:\n - action: climate.set_hvac_mode\n target:\n entity_id: climate.{{ repeat.item.climate }}\n data:\n hvac_mode: '{{ states ( ''input_select.climate_hvac_mode'' ) }}'\n - delay: 10\n - action: script.climate_set_temperature\n data:\n device: '{{ repeat.item.climate }}'\n - delay: 10\n - action: climate.set_fan_mode\n target:\n entity_id: climate.{{ repeat.item.climate }}\n data:\n fan_mode: '{{ states ( ''input_select.climate_fan_mode'' ) }}'\n - delay: 10\n - action: climate.set_swing_mode\n target:\n entity_id: climate.{{ repeat.item.climate }}\n data:\n swing_mode: '{{ ''on'' if is_state ( ''input_select.climate_swing_mode'',\n ''True'' ) else ''off'' }}'\n - delay: 10\n - action: climate.set_preset_mode\n target:\n entity_id: climate.{{ repeat.item.climate }}\n data:\n preset_mode: '{{ states ( ''input_select.climate_preset_mode'' ) }}'", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "climate activated", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.climate_activated", "device_id": null } }, { "name": "climate hvac mode", "room": null, "type": "input_select", "id": { "entity_id": "input_select.climate_hvac_mode", "device_id": null } }, { "name": "climate fan mode", "room": null, "type": "input_select", "id": { "entity_id": "input_select.climate_fan_mode", "device_id": null } }, { "name": "climate swing mode", "room": null, "type": "input_select", "id": { "entity_id": "input_select.climate_swing_mode", "device_id": null } }, { "name": "climate preset mode", "room": null, "type": "input_select", "id": { "entity_id": "input_select.climate_preset_mode", "device_id": null } }, { "name": "Climate Bedroom Scheduled", "room": "Bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.climate_bedroom_scheduled", "device_id": null } }, { "name": "Climate Nursery Scheduled", "room": "Nursery", "type": "input_boolean", "id": { "entity_id": "input_boolean.climate_nursery_scheduled", "device_id": null } }, { "name": "Climate Office Scheduled", "room": "Office", "type": "input_boolean", "id": { "entity_id": "input_boolean.climate_office_scheduled", "device_id": null } } ] }, { "id": "climate_supervise_temperature", "automation": "- alias: climate_supervise_temperature\n id: climate_supervise_temperature\n triggers:\n - trigger: state\n entity_id:\n - climate.office\n - climate.bedroom\n - climate.nursery\n attribute: current_temperature\n variables:\n device: '{{ trigger.entity_id [8:] }}'\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: template\n value_template: '{{ states ( ''input_boolean.climate_'' + device + ''_scheduled''\n ) == ''on'' }}'\n - condition: state\n entity_id: input_boolean.climate_activated\n state: 'on'\n actions:\n - if:\n - condition: template\n value_template: '{{ states ( ''climate.'' + device ) != ''off'' }}'\n then:\n - action: script.climate_set_temperature\n data:\n device: '{{ device }}'", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "climate activated", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.climate_activated", "device_id": null } }, { "name": "office climate", "room": "arbeitszimmer", "type": "climate", "id": { "entity_id": "climate.office", "device_id": null } }, { "name": "bedroom climate", "room": "schlafzimmer", "type": "climate", "id": { "entity_id": "climate.bedroom", "device_id": null } }, { "name": "nursery climate", "room": "kinderzimmer", "type": "climate", "id": { "entity_id": "climate.nursery", "device_id": null } } ] }, { "id": "climate_target_temperature", "automation": "- alias: climate_target_temperature\n id: climate_target_temperature\n triggers:\n - trigger: state\n entity_id:\n - input_number.climate_target_temperature\n - input_number.climate_target_temperature_step\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: state\n entity_id: input_boolean.climate_activated\n state: 'on'\n actions:\n - repeat:\n for_each:\n - office\n - bedroom\n - nursery\n sequence:\n - if:\n - condition: template\n value_template: '{{ states ( ''climate.'' + repeat.item ) != ''off'' }}'\n then:\n - action: script.climate_set_temperature\n data:\n device: '{{ repeat.item }}'", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "climate target temperature", "room": null, "type": "input_number", "id": { "entity_id": "input_number.climate_target_temperature", "device_id": null } }, { "name": "climate activated", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.climate_activated", "device_id": null } }, { "name": "climate target temperature step", "room": null, "type": "input_number", "id": { "entity_id": "input_number.climate_target_temperature_step", "device_id": null } } ] }, { "id": "climate_stop", "automation": "- alias: climate_stop\n id: climate_stop\n triggers:\n - trigger: numeric_state\n entity_id: sensor.total_dc_power\n below: input_number.climate_min_pv_generation\n for:\n minutes: '{{ states ( ''input_number.climate_min_pv_generation_duration'' )\n }}'\n variables:\n immediate_turn_off: false\n window_turn_off: false\n - trigger: state\n entity_id: group.family\n to: not_home\n variables:\n immediate_turn_off: '{{ states ( ''input_boolean.climate_absence_goon'' ) !=\n ''on'' }}'\n window_turn_off: false\n - trigger: numeric_state\n entity_id: sensor.boiler_outside_temperature\n below: input_number.climate_min_outdoor_temperature\n variables:\n immediate_turn_off: false\n window_turn_off: false\n - trigger: state\n entity_id:\n - binary_sensor.fenster_schlafzimmer\n - binary_sensor.dachfenster_schlafzimmer\n - binary_sensor.fenster_kinderzimmer\n - binary_sensor.dachfenster_kinderzimmer\n - binary_sensor.fenster_arbeitszimmer\n - binary_sensor.dachfenster_arbeitszimmer\n to: 'on'\n for: 00:00:10\n variables:\n immediate_turn_off: false\n window_turn_off: true\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: state\n entity_id: input_boolean.climate_activated\n state: 'on'\n actions:\n - repeat:\n for_each:\n - climate: office\n window: arbeitszimmer\n - climate: bedroom\n window: schlafzimmer\n - climate: nursery\n window: kinderzimmer\n sequence:\n - if:\n - condition: template\n value_template: \"{{\\n states ( 'climate.' + repeat.item.climate ) !=\\\n \\ 'off'\\n and (\\n immediate_turn_off\\n or (\\n \\\n \\ not window_turn_off and\\n states ( 'input_boolean.climate_'\\\n \\ + repeat.item.climate + '_scheduled' ) == 'on'\\n and states\\\n \\ ( 'input_boolean.climate_stop_' + repeat.item.climate ) == 'on'\\n \\\n \\ ) \\n or (\\n window_turn_off and\\n \\\n \\ (\\n states ( 'binary_sensor.fenster_' + repeat.item.window\\\n \\ ) == 'on'\\n or states ( 'binary_sensor.dachfenster_'\\\n \\ + repeat.item.window ) == 'on'\\n )\\n )\\n )\\n}}\\n\"\n then:\n - action: climate.turn_off\n target:\n entity_id: climate.{{ repeat.item.climate }}", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "family group", "room": null, "type": "group", "id": { "entity_id": "group.family", "device_id": null } }, { "name": "climate min outdoor temperature", "room": null, "type": "input_number", "id": { "entity_id": "input_number.climate_min_outdoor_temperature", "device_id": null } }, { "name": "boiler outside temperature", "room": null, "type": "sensor", "id": { "entity_id": "sensor.boiler_outside_temperature", "device_id": null } }, { "name": "fenster schlafzimmer", "room": "schlafzimmer", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.fenster_schlafzimmer", "device_id": null } }, { "name": "dachfenster schlafzimmer", "room": "schlafzimmer", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.dachfenster_schlafzimmer", "device_id": null } }, { "name": "fenster kinderzimmer", "room": "kinderzimmer", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.fenster_kinderzimmer", "device_id": null } }, { "name": "dachfenster kinderzimmer", "room": "kinderzimmer", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.dachfenster_kinderzimmer", "device_id": null } }, { "name": "fenster arbeitszimmer", "room": "arbeitszimmer", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.fenster_arbeitszimmer", "device_id": null } }, { "name": "dachfenster arbeitszimmer", "room": "arbeitszimmer", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.dachfenster_arbeitszimmer", "device_id": null } }, { "name": "climate activated", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.climate_activated", "device_id": null } }, { "name": "total dc power", "room": null, "type": "sensor", "id": { "entity_id": "sensor.total_dc_power", "device_id": null } }, { "name": "climate min pv generation", "room": null, "type": "input_number", "id": { "entity_id": "input_number.climate_min_pv_generation", "device_id": null } }, { "name": "climate min pv generation duration", "room": null, "type": "input_number", "id": { "entity_id": "input_number.climate_min_pv_generation_duration", "device_id": null } }, { "name": "climate absence goon", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.climate_absence_goon", "device_id": null } } ] }, { "id": "climate_turned_off", "automation": "- alias: climate_turned_off\n id: climate_turned_off\n triggers:\n - trigger: state\n entity_id:\n - climate.office\n - climate.bedroom\n - climate.nursery\n to: 'off'\n variables:\n device: '{{ trigger.entity_id [8:] }}'\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: state\n entity_id: input_boolean.climate_activated\n state: 'on'\n actions:\n - action: input_boolean.turn_off\n data:\n entity_id: '{{ ''input_boolean.climate_'' + device + ''_scheduled'' }}'", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "climate activated", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.climate_activated", "device_id": null } }, { "name": "office climate", "room": "arbeitszimmer", "type": "climate", "id": { "entity_id": "climate.office", "device_id": null } }, { "name": "bedroom climate", "room": "schlafzimmer", "type": "climate", "id": { "entity_id": "climate.bedroom", "device_id": null } }, { "name": "nursery climate", "room": "kinderzimmer", "type": "climate", "id": { "entity_id": "climate.nursery", "device_id": null } } ] }, { "id": "climate_switch_off", "automation": "- alias: climate_switch_off\n id: climate_switch_off\n triggers:\n - trigger: state\n entity_id:\n - climate.office\n - climate.bedroom\n - climate.nursery\n to: 'off'\n for:\n minutes: '{{ states ( ''input_number.climate_switch_off_delay'' ) | int }}'\n variables:\n device: '{{ trigger.entity_id [8:] }}'\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: state\n entity_id: input_boolean.climate_activated\n state: 'on'\n actions:\n - action: switch.turn_off\n data:\n entity_id: '{% set room = { \"office\": \"arbeitszimmer\", \"nursery\": \"kinderzimmer\",\n \"bedroom\": \"schlafzimmer\" } %} {{ ''switch.klimaanlage_'' + room [device]\n }}'", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "climate activated", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.climate_activated", "device_id": null } }, { "name": "office climate", "room": "arbeitszimmer", "type": "climate", "id": { "entity_id": "climate.office", "device_id": null } }, { "name": "bedroom climate", "room": "schlafzimmer", "type": "climate", "id": { "entity_id": "climate.bedroom", "device_id": null } }, { "name": "nursery climate", "room": "kinderzimmer", "type": "climate", "id": { "entity_id": "climate.nursery", "device_id": null } }, { "name": "climate switch off delay", "room": null, "type": "input_number", "id": { "entity_id": "input_number.climate_switch_off_delay", "device_id": null } } ] }, { "id": "climate_night_mode", "automation": "- alias: climate_night_mode\n id: climate_night_mode\n triggers:\n platform: state\n entity_id: remote.sony_kd_55ag9\n from: 'on'\n to: 'off'\n for:\n minutes: 1\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: state\n entity_id: input_boolean.climate_activated\n state: 'on'\n actions:\n - repeat:\n for_each:\n - office\n - bedroom\n - nursery\n sequence:\n - if:\n - condition: template\n value_template: \"{{\\n states ( 'input_boolean.climate_' + repeat.item\\\n \\ + '_scheduled' ) == 'on'\\n and states ( 'climate.' + repeat.item\\\n \\ ) != 'off'\\n}}\\n\"\n then:\n - action: climate.set_preset_mode\n target:\n entity_id: climate.{{ repeat.item }}\n data:\n preset_mode: sleep", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "climate activated", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.climate_activated", "device_id": null } }, { "name": "sony kd 55ag9 remote", "room": null, "type": "remote", "id": { "entity_id": "remote.sony_kd_55ag9", "device_id": null } } ] }, { "id": "climate_absence_goon", "automation": "- alias: climate_absence_goon\n id: climate_absence_goon\n triggers:\n - trigger: event\n event_type: bosch_shc.event\n event_data:\n event_type: SCENARIO\n event_subtype: Klimaanlage anlassen\n actions:\n - action: input_boolean.turn_on\n data:\n entity_id: input_boolean.climate_absence_goon", "config": [ { "name": "climate absence goon", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.climate_absence_goon", "device_id": null } } ] }, { "id": "climate_absence_goon_reset", "automation": "- alias: climate_absence_goon_reset\n id: climate_absence_goon_reset\n triggers:\n - trigger: time\n at: '23:59:00'\n actions:\n - action: input_boolean.turn_off\n data:\n entity_id: input_boolean.climate_absence_goon", "config": [ { "name": "climate absence goon", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.climate_absence_goon", "device_id": null } } ] }, { "id": "close_cover_bedroom", "automation": "- alias: close_cover_bedroom\n id: close_cover_bedroom\n triggers:\n - trigger: sun\n event: sunset\n offset: 00:30:00\n conditions:\n condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: state\n entity_id: input_boolean.cover_closing_at_cold_activated\n state: 'on'\n - condition: numeric_state\n entity_id: sensor.dht22_terrace_temperature\n below: input_number.rooflight_close_below_temp\n - condition: state\n entity_id: input_boolean.cover_bedroom\n state: 'on'\n - condition: state\n entity_id: binary_sensor.dachfenster_schlafzimmer\n state: 'off'\n actions:\n - action: cover.close_cover\n target:\n entity_id: cover.bedroom\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.cover_closed_at_low_temp", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "dachfenster schlafzimmer", "room": "schlafzimmer", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.dachfenster_schlafzimmer", "device_id": null } }, { "name": "dht22 terrace temperature", "room": "terrace", "type": "sensor", "id": { "entity_id": "sensor.dht22_terrace_temperature", "device_id": null } }, { "name": "rooflight close below temp", "room": null, "type": "input_number", "id": { "entity_id": "input_number.rooflight_close_below_temp", "device_id": null } }, { "name": "cover closing at cold activated", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.cover_closing_at_cold_activated", "device_id": null } }, { "name": "cover bedroom", "room": "schlafzimmer", "type": "input_boolean", "id": { "entity_id": "input_boolean.cover_bedroom", "device_id": null } }, { "name": "cover closed at low temp", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.cover_closed_at_low_temp", "device_id": null } }, { "name": "bedroom cover", "room": "schlafzimmer", "type": "cover", "id": { "entity_id": "cover.bedroom", "device_id": null } } ] }, { "id": "open_cover_bedroom", "automation": "- alias: open_cover_bedroom\n id: open_cover_bedroom\n triggers:\n - trigger: sun\n event: sunrise\n offset: -00:30:00\n condition:\n condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: state\n entity_id: input_boolean.cover_closing_at_cold_activated\n state: 'on'\n - condition: state\n entity_id: input_boolean.cover_bedroom\n state: 'on'\n - condition: state\n entity_id: binary_sensor.dachfenster_schlafzimmer\n state: 'off'\n - condition: state\n entity_id: input_boolean.cover_closed_at_low_temp\n state: 'on'\n actions:\n - action: cover.open_cover\n target:\n entity_id: cover.bedroom", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "dachfenster schlafzimmer", "room": "schlafzimmer", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.dachfenster_schlafzimmer", "device_id": null } }, { "name": "cover closing at cold activated", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.cover_closing_at_cold_activated", "device_id": null } }, { "name": "cover bedroom", "room": "schlafzimmer", "type": "input_boolean", "id": { "entity_id": "input_boolean.cover_bedroom", "device_id": null } }, { "name": "cover closed at low temp", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.cover_closed_at_low_temp", "device_id": null } }, { "name": "bedroom cover", "room": "schlafzimmer", "type": "cover", "id": { "entity_id": "cover.bedroom", "device_id": null } } ] }, { "id": "close_cover_bath", "automation": "- alias: close_cover_bath\n id: close_cover_bath\n triggers:\n - trigger: sun\n event: sunset\n offset: 00:30:00\n conditions:\n condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: state\n entity_id: input_boolean.cover_closing_at_cold_activated\n state: 'on'\n - condition: numeric_state\n entity_id: sensor.dht22_terrace_temperature\n below: input_number.rooflight_close_below_temp\n - condition: state\n entity_id: input_boolean.cover_bath\n state: 'on'\n - condition: state\n entity_id: binary_sensor.dachfenster_bad\n state: 'off'\n actions:\n - action: cover.close_cover\n target:\n entity_id: cover.bath\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.cover_closed_at_low_temp", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "dht22 terrace temperature", "room": "terrace", "type": "sensor", "id": { "entity_id": "sensor.dht22_terrace_temperature", "device_id": null } }, { "name": "rooflight close below temp", "room": null, "type": "input_number", "id": { "entity_id": "input_number.rooflight_close_below_temp", "device_id": null } }, { "name": "cover closing at cold activated", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.cover_closing_at_cold_activated", "device_id": null } }, { "name": "cover bath", "room": "bad", "type": "input_boolean", "id": { "entity_id": "input_boolean.cover_bath", "device_id": null } }, { "name": "cover closed at low temp", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.cover_closed_at_low_temp", "device_id": null } }, { "name": "bath cover", "room": "bad", "type": "cover", "id": { "entity_id": "cover.bath", "device_id": null } }, { "name": "dachfenster bad", "room": "bad", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.dachfenster_bad", "device_id": null } } ] }, { "id": "open_cover_bath", "automation": "- alias: open_cover_bath\n id: open_cover_bath\n triggers:\n - trigger: sun\n event: sunrise\n offset: -00:30:00\n conditions:\n condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: state\n entity_id: input_boolean.cover_closing_at_cold_activated\n state: 'on'\n - condition: state\n entity_id: input_boolean.cover_bath\n state: 'on'\n - condition: state\n entity_id: binary_sensor.dachfenster_bad\n state: 'off'\n - condition: state\n entity_id: input_boolean.cover_closed_at_low_temp\n state: 'on'\n actions:\n - action: cover.open_cover\n target:\n entity_id: cover.bath", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "cover closing at cold activated", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.cover_closing_at_cold_activated", "device_id": null } }, { "name": "cover bath", "room": "bad", "type": "input_boolean", "id": { "entity_id": "input_boolean.cover_bath", "device_id": null } }, { "name": "cover closed at low temp", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.cover_closed_at_low_temp", "device_id": null } }, { "name": "bath cover", "room": "bad", "type": "cover", "id": { "entity_id": "cover.bath", "device_id": null } }, { "name": "dachfenster bad", "room": "bad", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.dachfenster_bad", "device_id": null } } ] }, { "id": "close_cover_office", "automation": "- alias: close_cover_office\n id: close_cover_office\n triggers:\n - trigger: sun\n event: sunset\n offset: 00:30:00\n conditions:\n condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: state\n entity_id: input_boolean.cover_closing_at_cold_activated\n state: 'on'\n - condition: numeric_state\n entity_id: sensor.dht22_terrace_temperature\n below: input_number.rooflight_close_below_temp\n - condition: state\n entity_id: input_boolean.cover_office\n state: 'on'\n - condition: state\n entity_id: binary_sensor.dachfenster_arbeitszimmer\n state: 'off'\n actions:\n - action: cover.close_cover\n target:\n entity_id: cover.office\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.cover_closed_at_low_temp", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "dachfenster arbeitszimmer", "room": "arbeitszimmer", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.dachfenster_arbeitszimmer", "device_id": null } }, { "name": "dht22 terrace temperature", "room": "terrace", "type": "sensor", "id": { "entity_id": "sensor.dht22_terrace_temperature", "device_id": null } }, { "name": "rooflight close below temp", "room": null, "type": "input_number", "id": { "entity_id": "input_number.rooflight_close_below_temp", "device_id": null } }, { "name": "cover closing at cold activated", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.cover_closing_at_cold_activated", "device_id": null } }, { "name": "cover office", "room": "arbeitszimmer", "type": "input_boolean", "id": { "entity_id": "input_boolean.cover_office", "device_id": null } }, { "name": "cover closed at low temp", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.cover_closed_at_low_temp", "device_id": null } }, { "name": "office cover", "room": "arbeitszimmer", "type": "cover", "id": { "entity_id": "cover.office", "device_id": null } } ] }, { "id": "open_cover_office", "automation": "- alias: open_cover_office\n id: open_cover_office\n triggers:\n - trigger: sun\n event: sunrise\n offset: -00:30:00\n conditions:\n condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: state\n entity_id: input_boolean.cover_closing_at_cold_activated\n state: 'on'\n - condition: state\n entity_id: input_boolean.cover_office\n state: 'on'\n - condition: state\n entity_id: binary_sensor.dachfenster_arbeitszimmer\n state: 'off'\n - condition: state\n entity_id: input_boolean.cover_closed_at_low_temp\n state: 'on'\n actions:\n - action: cover.open_cover\n target:\n entity_id: cover.office", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "dachfenster arbeitszimmer", "room": "arbeitszimmer", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.dachfenster_arbeitszimmer", "device_id": null } }, { "name": "cover closing at cold activated", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.cover_closing_at_cold_activated", "device_id": null } }, { "name": "cover office", "room": "arbeitszimmer", "type": "input_boolean", "id": { "entity_id": "input_boolean.cover_office", "device_id": null } }, { "name": "cover closed at low temp", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.cover_closed_at_low_temp", "device_id": null } }, { "name": "office cover", "room": "arbeitszimmer", "type": "cover", "id": { "entity_id": "cover.office", "device_id": null } } ] }, { "id": "close_cover_nursery", "automation": "- alias: close_cover_nursery\n id: close_cover_nursery\n triggers:\n - trigger: sun\n event: sunset\n offset: 00:30:00\n conditions:\n condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: state\n entity_id: input_boolean.cover_closing_at_cold_activated\n state: 'on'\n - condition: numeric_state\n entity_id: sensor.dht22_terrace_temperature\n below: input_number.rooflight_close_below_temp\n - condition: state\n entity_id: input_boolean.cover_nursery\n state: 'on'\n - condition: state\n entity_id: binary_sensor.dachfenster_kinderzimmer\n state: 'off'\n actions:\n - action: cover.close_cover\n target:\n entity_id: cover.nursery\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.cover_closed_at_low_temp", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "dachfenster kinderzimmer", "room": "kinderzimmer", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.dachfenster_kinderzimmer", "device_id": null } }, { "name": "dht22 terrace temperature", "room": "terrace", "type": "sensor", "id": { "entity_id": "sensor.dht22_terrace_temperature", "device_id": null } }, { "name": "rooflight close below temp", "room": null, "type": "input_number", "id": { "entity_id": "input_number.rooflight_close_below_temp", "device_id": null } }, { "name": "cover closing at cold activated", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.cover_closing_at_cold_activated", "device_id": null } }, { "name": "cover nursery", "room": "kinderzimmer", "type": "input_boolean", "id": { "entity_id": "input_boolean.cover_nursery", "device_id": null } }, { "name": "cover closed at low temp", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.cover_closed_at_low_temp", "device_id": null } }, { "name": "nursery cover", "room": "kinderzimmer", "type": "cover", "id": { "entity_id": "cover.nursery", "device_id": null } } ] }, { "id": "open_cover_nursery", "automation": "- alias: open_cover_nursery\n id: open_cover_nursery\n triggers:\n - trigger: sun\n event: sunrise\n offset: -00:30:00\n conditions:\n condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: state\n entity_id: input_boolean.cover_closing_at_cold_activated\n state: 'on'\n - condition: state\n entity_id: input_boolean.cover_nursery\n state: 'on'\n - condition: state\n entity_id: binary_sensor.dachfenster_kinderzimmer\n state: 'off'\n - condition: state\n entity_id: input_boolean.cover_closed_at_low_temp\n state: 'on'\n actions:\n - action: cover.open_cover\n target:\n entity_id: cover.nursery", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "dachfenster kinderzimmer", "room": "kinderzimmer", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.dachfenster_kinderzimmer", "device_id": null } }, { "name": "cover closing at cold activated", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.cover_closing_at_cold_activated", "device_id": null } }, { "name": "cover nursery", "room": "kinderzimmer", "type": "input_boolean", "id": { "entity_id": "input_boolean.cover_nursery", "device_id": null } }, { "name": "cover closed at low temp", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.cover_closed_at_low_temp", "device_id": null } }, { "name": "nursery cover", "room": "kinderzimmer", "type": "cover", "id": { "entity_id": "cover.nursery", "device_id": null } } ] }, { "id": "reset_close_at_low_temp_flag", "automation": "- alias: reset_close_at_low_temp_flag\n id: reset_close_at_low_temp_flag\n triggers:\n - trigger: sun\n event: sunrise\n offset: 01:00:00\n actions:\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.cover_closed_at_low_temp", "config": [ { "name": "cover closed at low temp", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.cover_closed_at_low_temp", "device_id": null } } ] }, { "id": "dishwasher_schedule", "automation": "- alias: dishwasher_schedule\n id: dishwasher_schedule\n triggers:\n - trigger: state\n entity_id: binary_sensor.bosch_smv88tx16d_68a40e0c161c_bsh_common_status_doorstate\n to: 'off'\n conditions:\n - condition: state\n entity_id: input_boolean.dishwasher_activated\n state: 'on'\n - condition: state\n entity_id: binary_sensor.bosch_smv88tx16d_68a40e0c161c_bsh_common_status_doorstate\n state: 'off'\n - condition: state\n entity_id: sensor.bosch_smv88tx16d_68a40e0c161c_bsh_common_status_operationstate\n state: BSH.Common.EnumType.OperationState.Ready\n - condition: state\n entity_id: binary_sensor.bosch_smv88tx16d_68a40e0c161c_bsh_common_status_remotecontrolactive\n state: 'on'\n - condition: state\n entity_id: binary_sensor.bosch_smv88tx16d_68a40e0c161c_bsh_common_status_remotecontrolstartallowed\n state: 'on'\n actions:\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.dishwasher_start\n data:\n datetime: \"{% set pv_this_hour = states ( 'sensor.solcast_pv_forecast_prognose_aktuelle_stunde'\\\n \\ ) | float %} {% set pv_next_hour = states ( 'sensor.solcast_pv_forecast_prognose_nachste_stunde'\\\n \\ ) | float %} {% set min_pv = states ( 'input_number.dishwasher_min_pv_generation'\\\n \\ ) | float %} {% set peaktime_today = as_datetime ( states ( 'sensor.solcast_pv_forecast_zeitpunkt_spitzenleistung_heute'\\\n \\ ) ) | as_local %} {% set peaktime_tomorrow = as_datetime ( states ( 'sensor.solcast_pv_forecast_zeitpunkt_spitzenleistung_morgen'\\\n \\ ) ) | as_local %} {% if pv_this_hour > min_pv %}\\n {{ today_at ( now\\\n \\ ().strftime('%H:%M:%S') ) + timedelta ( seconds = 5 ) }}\\n{% elif pv_next_hour\\\n \\ > min_pv %}\\n {{ today_at ( now ().strftime ( '%H:00:00' ) ) + timedelta\\\n \\ ( hours = 1 ) }}\\n{% else %}\\n {% if peaktime_today > now () %}\\n \\\n \\ {{ peaktime_today }}\\n {% else %}\\n {{ peaktime_tomorrow }}\\n\\\n \\ {% endif %}\\n{% endif %}\\n\"", "config": [ { "name": "Bosch Dishwasher Door State", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bosch_smv88tx16d_68a40e0c161c_bsh_common_status_doorstate", "device_id": null } }, { "name": "Bosch Dishwasher Remote Control Active", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bosch_smv88tx16d_68a40e0c161c_bsh_common_status_remotecontrolactive", "device_id": null } }, { "name": "Bosch Dishwasher Remote Control Start Allowed", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bosch_smv88tx16d_68a40e0c161c_bsh_common_status_remotecontrolstartallowed", "device_id": null } }, { "name": "Dishwasher Activated", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.dishwasher_activated", "device_id": null } }, { "name": "Dishwasher Start", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.dishwasher_start", "device_id": null } }, { "name": "Dishwasher Min PV Generation", "room": null, "type": "input_number", "id": { "entity_id": "input_number.dishwasher_min_pv_generation", "device_id": null } }, { "name": "Bosch SMV88TX16D operation state", "room": null, "type": "sensor", "id": { "entity_id": "sensor.bosch_smv88tx16d_68a40e0c161c_bsh_common_status_operationstate", "device_id": null } } ] }, { "id": "dishwasher_start", "automation": "- alias: dishwasher_start\n id: dishwasher_start\n triggers:\n - trigger: time\n at: input_datetime.dishwasher_start\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: state\n entity_id: input_boolean.dishwasher_activated\n state: 'on'\n - condition: state\n entity_id: binary_sensor.bosch_smv88tx16d_68a40e0c161c_bsh_common_status_doorstate\n state: 'off'\n - condition: state\n entity_id: sensor.bosch_smv88tx16d_68a40e0c161c_bsh_common_status_operationstate\n state: BSH.Common.EnumType.OperationState.Ready\n - condition: state\n entity_id: binary_sensor.bosch_smv88tx16d_68a40e0c161c_bsh_common_status_remotecontrolactive\n state: 'on'\n actions:\n - action: home_connect_alt.start_program\n data:\n device_id: '{{ device_id ( ''Geschirrspüler'' ) }}'\n program_key: Dishcare.Dishwasher.Program.Quick65", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Bosch Dishwasher Door State", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bosch_smv88tx16d_68a40e0c161c_bsh_common_status_doorstate", "device_id": null } }, { "name": "Bosch Dishwasher Remote Control Active", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bosch_smv88tx16d_68a40e0c161c_bsh_common_status_remotecontrolactive", "device_id": null } }, { "name": "Dishwasher Activated", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.dishwasher_activated", "device_id": null } }, { "name": "Dishwasher Start", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.dishwasher_start", "device_id": null } }, { "name": "Bosch SMV88TX16D operation state", "room": null, "type": "sensor", "id": { "entity_id": "sensor.bosch_smv88tx16d_68a40e0c161c_bsh_common_status_operationstate", "device_id": null } } ] }, { "id": "display_pixelnode_preferences", "automation": "- alias: display_pixelnode_preferences\n id: display_pixelnode_preferences\n triggers:\n - trigger: homeassistant\n event: start\n - trigger: state\n entity_id: input_boolean.pixel_node_time\n - trigger: state\n entity_id: input_boolean.pixel_node_date\n - trigger: state\n entity_id: input_boolean.pixel_node_weekday\n - trigger: state\n entity_id: input_number.pixel_node_display_duration\n - trigger: state\n entity_id: input_number.pixel_node_display_brightness\n - trigger: state\n entity_id: input_number.pixel_node_display_shakeperiod\n - trigger: state\n entity_id: input_boolean.pixel_node_msg0\n - trigger: state\n entity_id: input_boolean.pixel_node_msg1\n - trigger: state\n entity_id: input_boolean.pixel_node_msg2\n - trigger: state\n entity_id: input_boolean.pixel_node_msg3\n - trigger: state\n entity_id: input_boolean.pixel_node_msg4\n - trigger: state\n entity_id: input_boolean.pixel_node_msg5\n - trigger: state\n entity_id: input_boolean.pixel_node_msg6\n - trigger: state\n entity_id: input_boolean.pixel_node_msg7\n - trigger: state\n entity_id: input_boolean.pixel_node_msg8\n - trigger: state\n entity_id: input_boolean.pixel_node_msg9\n - trigger: state\n entity_id: input_boolean.pixel_node_msg10\n - trigger: state\n entity_id: input_boolean.pixel_node_msg11\n - trigger: state\n entity_id: input_boolean.pixel_node_msg12\n - trigger: state\n entity_id: input_boolean.pixel_node_msg13\n - trigger: state\n entity_id: input_boolean.pixel_node_msg14\n - trigger: state\n entity_id: input_boolean.pixel_node_msg15\n - trigger: state\n entity_id: input_boolean.pixel_node_msg16\n - trigger: state\n entity_id: input_boolean.pixel_node_msg17\n - trigger: state\n entity_id: input_boolean.pixel_node_msg18\n - trigger: state\n entity_id: input_boolean.pixel_node_msg19\n actions:\n - action: mqtt.publish\n data:\n topic: nodes@home/display/pixel/kitchen/command\n payload: \"{\\n \\\"display\\\": {\\n \\\"duration\\\": {{ states ( 'input_number.pixel_node_display_duration'\\\n \\ ) | round ( 0 ) }},\\n \\\"brightness\\\": {{ states ( 'input_number.pixel_node_display_brightness'\\\n \\ ) | round ( 0 ) }},\\n \\\"shakeperiod\\\": {{ states ( 'input_number.pixel_node_display_shakeperiod'\\\n \\ ) | round ( 0 ) }},\\n \\\"time\\\": \\\"{{ states ( 'input_boolean.pixel_node_time'\\\n \\ ) }}\\\",\\n \\\"date\\\": \\\"{{ states ( 'input_boolean.pixel_node_date'\\\n \\ ) }}\\\",\\n \\\"weekday\\\": \\\"{{ states ( 'input_boolean.pixel_node_weekday'\\\n \\ ) }}\\\",\\n \\\"enabled\\\": [\\n \\\"{{ states ( 'input_boolean.pixel_node_msg0'\\\n \\ ) }}\\\",\\n \\\"{{ states ( 'input_boolean.pixel_node_msg1' ) }}\\\"\\\n ,\\n \\\"{{ states ( 'input_boolean.pixel_node_msg2' ) }}\\\",\\n \\\n \\ \\\"{{ states ( 'input_boolean.pixel_node_msg3' ) }}\\\",\\n \\\n \\ \\\"{{ states ( 'input_boolean.pixel_node_msg4' ) }}\\\",\\n \\\"\\\n {{ states ( 'input_boolean.pixel_node_msg5' ) }}\\\",\\n \\\"{{ states\\\n \\ ( 'input_boolean.pixel_node_msg6' ) }}\\\",\\n \\\"{{ states ( 'input_boolean.pixel_node_msg7'\\\n \\ ) }}\\\",\\n \\\"{{ states ( 'input_boolean.pixel_node_msg8' ) }}\\\"\\\n ,\\n \\\"{{ states ( 'input_boolean.pixel_node_msg9' ) }}\\\",\\n \\\n \\ \\\"{{ states ( 'input_boolean.pixel_node_msg10' ) }}\\\",\\n \\\n \\ \\\"{{ states ( 'input_boolean.pixel_node_msg11' ) }}\\\",\\n \\\n \\ \\\"{{ states ( 'input_boolean.pixel_node_msg12' ) }}\\\",\\n \\\"{{\\\n \\ states ( 'input_boolean.pixel_node_msg13' ) }}\\\",\\n \\\"{{ states\\\n \\ ( 'input_boolean.pixel_node_msg14' ) }}\\\",\\n \\\"{{ states ( 'input_boolean.pixel_node_msg15'\\\n \\ ) }}\\\",\\n \\\"{{ states ( 'input_boolean.pixel_node_msg16' ) }}\\\"\\\n ,\\n \\\"{{ states ( 'input_boolean.pixel_node_msg17' ) }}\\\",\\n \\\n \\ \\\"{{ states ( 'input_boolean.pixel_node_msg18' ) }}\\\",\\n \\\n \\ \\\"{{ states ( 'input_boolean.pixel_node_msg19' ) }}\\\"\\n ]\\n\\\n \\ }\\n}\"\n qos: 0\n retain: true", "config": [ { "name": "Pixel Node Date", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_date", "device_id": null } }, { "name": "Pixel Node Msg0", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_msg0", "device_id": null } }, { "name": "Pixel Node Msg1", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_msg1", "device_id": null } }, { "name": "Pixel Node Msg10", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_msg10", "device_id": null } }, { "name": "Pixel Node Msg11", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_msg11", "device_id": null } }, { "name": "Pixel Node Msg12", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_msg12", "device_id": null } }, { "name": "Pixel Node Msg13", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_msg13", "device_id": null } }, { "name": "Pixel Node Msg14", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_msg14", "device_id": null } }, { "name": "Pixel Node Msg15", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_msg15", "device_id": null } }, { "name": "Pixel Node Msg16", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_msg16", "device_id": null } }, { "name": "Pixel Node Msg17", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_msg17", "device_id": null } }, { "name": "Pixel Node Msg18", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_msg18", "device_id": null } }, { "name": "Pixel Node Msg19", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_msg19", "device_id": null } }, { "name": "Pixel Node Msg2", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_msg2", "device_id": null } }, { "name": "Pixel Node Msg3", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_msg3", "device_id": null } }, { "name": "Pixel Node Msg4", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_msg4", "device_id": null } }, { "name": "Pixel Node Msg5", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_msg5", "device_id": null } }, { "name": "Pixel Node Msg6", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_msg6", "device_id": null } }, { "name": "Pixel Node Msg7", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_msg7", "device_id": null } }, { "name": "Pixel Node Msg8", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_msg8", "device_id": null } }, { "name": "Pixel Node Msg9", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_msg9", "device_id": null } }, { "name": "Pixel Node Time", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_time", "device_id": null } }, { "name": "Pixel Node Weekday", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_weekday", "device_id": null } }, { "name": "Pixel Node Display Brightness", "room": null, "type": "input_number", "id": { "entity_id": "input_number.pixel_node_display_brightness", "device_id": null } }, { "name": "Pixel Node Display Duration", "room": null, "type": "input_number", "id": { "entity_id": "input_number.pixel_node_display_duration", "device_id": null } }, { "name": "Pixel Node Display Shakeperiod", "room": null, "type": "input_number", "id": { "entity_id": "input_number.pixel_node_display_shakeperiod", "device_id": null } } ] }, { "id": "display_show_outdoor_temperature", "automation": "- alias: display_outdoor_temperature\n id: display_show_outdoor_temperature\n triggers:\n - trigger: mqtt\n topic: nodes@home/sensor/DHT22/terrace/value/temperature\n actions:\n - action: mqtt.publish\n data:\n topic: nodes@home/display/pixel/kitchen/message/temperature/outdoor\n payload: \"{\\n \\\"messages\\\": [\\n {\\n \\\"line\\\": 0,\\n \\\n \\ \\\"text\\\": \\\" Außen: {{ trigger.payload_json.value }}°C\\\"\\n \\\n \\ }\\n ]\\n}\"\n qos: 0\n retain: true", "config": [] }, { "id": "display_show_indoor_temperature", "automation": "- alias: display_show_temperature\n id: display_show_indoor_temperature\n triggers:\n - trigger: mqtt\n topic: nodes@home/sensor/DHT22/lounge/value/temperature\n actions:\n - action: mqtt.publish\n data:\n topic: nodes@home/display/pixel/kitchen/message/temperature/indoor\n payload: \"{\\n \\\"messages\\\": [\\n {\\n \\\"line\\\": 1,\\n \\\n \\ \\\"text\\\": \\\" Innen: {{ trigger.payload_json.value }}°C\\\"\\n \\\n \\ }\\n ]\\n}\"\n qos: 0\n retain: true", "config": [] }, { "id": "display_show_pool_temperature", "automation": "- alias: display_show_pool_temperature\n id: display_show_pool_temperature\n triggers:\n - trigger: mqtt\n topic: nodes@home/sensor/ds18b20/pool/value/temperature\n actions:\n - action: mqtt.publish\n data:\n topic: nodes@home/display/pixel/kitchen/message/temperature/pool\n payload: \"{\\n \\\"messages\\\": [\\n {\\n \\\"line\\\": 12,\\n \\\n \\ \\\"text\\\": \\\" Pool: {{ trigger.payload_json.value | round ( 1 ) }}°C\\\"\\\n \\n }\\n ]\\n}\"\n qos: 0\n retain: true", "config": [] }, { "id": "garage_open_cover", "automation": "- alias: garage_open_cover\n id: garage_open_cover\n triggers:\n - trigger: event\n event_type: bosch_shc.event\n event_data:\n event_type: SCENARIO\n event_subtype: Garage auf\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: state\n entity_id: cover.relay_garage\n state: closed\n actions:\n - action: cover.open_cover\n target:\n entity_id: cover.relay_garage", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Relay Garage Cover", "room": "Garage", "type": "cover", "id": { "entity_id": "cover.relay_garage", "device_id": null } } ] }, { "id": "garage_close_cover", "automation": "- alias: garage_close_cover\n id: garage_close_cover\n triggers:\n - trigger: event\n event_type: bosch_shc.event\n event_data:\n event_type: SCENARIO\n event_subtype: Garage zu\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: state\n entity_id: cover.relay_garage\n state: open\n actions:\n - action: cover.close_cover\n target:\n entity_id: cover.relay_garage", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Relay Garage Cover", "room": "Garage", "type": "cover", "id": { "entity_id": "cover.relay_garage", "device_id": null } } ] }, { "id": "garage_bosch_powerstation_shutdown_after_inactivity", "automation": "- alias: garage__bosch_powerstation_shutdown_after_inactivity\n id: garage_bosch_powerstation_shutdown_after_inactivity\n triggers:\n - trigger: numeric_state\n entity_id: sensor.bosch_ladestation_power\n below: input_number.bosch_powerstation_low_power_threshold\n for:\n minutes: '{{ states ( ''input_number.bosch_powerstation_low_power_duration''\n ) | int }}'\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - action: switch.turn_off\n target:\n entity_id: switch.bosch_ladestation", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Bosch Ladestation power", "room": null, "type": "sensor", "id": { "entity_id": "sensor.bosch_ladestation_power", "device_id": null } }, { "name": "Bosch Ladestation", "room": null, "type": "switch", "id": { "entity_id": "switch.bosch_ladestation", "device_id": null } } ] }, { "id": "garage_unlock_ev6", "automation": "- alias: garage_unlock_ev6\n id: garage_unlock_ev6\n triggers:\n - trigger: event\n event_type: bosch_shc.event\n event_data:\n event_type: SCENARIO\n event_subtype: Auto auf\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: state\n entity_id: group.family\n state: home\n - condition: state\n entity_id: device_tracker.ev6_location\n state: Zuhause\n actions:\n - action: kia_uvo.unlock\n data:\n device_id: '{{ device_id ( ''EV6'' ) }}'", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "family group", "room": null, "type": "group", "id": { "entity_id": "group.family", "device_id": null } }, { "name": "EV6 Location Tracker", "room": null, "type": "device_tracker", "id": { "entity_id": "device_tracker.ev6_location", "device_id": null } } ] }, { "id": "garage_lock_ev6", "automation": "- alias: garage_lock_ev6\n id: garage_lock_ev6\n triggers:\n - trigger: event\n event_type: bosch_shc.event\n event_data:\n event_type: SCENARIO\n event_subtype: Auto zu\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: state\n entity_id: group.family\n state: home\n - condition: state\n entity_id: device_tracker.ev6_location\n state: Zuhause\n actions:\n - action: kia_uvo.lock\n data:\n device_id: '{{ device_id ( ''EV6'' ) }}'", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "family group", "room": null, "type": "group", "id": { "entity_id": "group.family", "device_id": null } }, { "name": "EV6 Location Tracker", "room": null, "type": "device_tracker", "id": { "entity_id": "device_tracker.ev6_location", "device_id": null } } ] }, { "id": "garage_climate_ev6", "automation": "- alias: garage_climate_ev6\n id: garage_climate_ev6\n triggers:\n - trigger: state\n entity_id: input_button.kia_ev6_climate\n - trigger: event\n event_type: bosch_shc.event\n event_data:\n event_type: SCENARIO\n event_subtype: Auto klimatisieren\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: state\n entity_id: group.family\n state: home\n - condition: state\n entity_id: device_tracker.ev6_location\n state: Zuhause\n actions:\n - action: kia_uvo.schedule_charging_and_climate\n data:\n climate_enabled: true\n temperature: '{{ states ( ''input_number.ev6_climate_temperature'' ) | int }}'\n temperature_unit: '0'\n device_id: '{{ device_id ( ''EV6'' ) }}'", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "family group", "room": null, "type": "group", "id": { "entity_id": "group.family", "device_id": null } }, { "name": "EV6 Location Tracker", "room": null, "type": "device_tracker", "id": { "entity_id": "device_tracker.ev6_location", "device_id": null } }, { "name": "Kia EV6 Climate", "room": null, "type": "input_button", "id": { "entity_id": "input_button.kia_ev6_climate", "device_id": null } } ] }, { "id": "garden_irrigation_off", "automation": "- alias: garden_irrigation_off\n id: garden_irrigation_off\n triggers:\n - trigger: event\n event_type: bosch_shc.event\n event_data:\n event_type: SCENARIO\n event_subtype: Wasser aus\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - action: switch.turn_off\n target:\n entity_id:\n - switch.relay_garden_valve1\n - switch.relay_garden_valve2\n - switch.relay_garden_valve3\n - switch.relay_garden2_valve1\n - switch.relay_garden2_valve2\n - switch.relay_garden2_valve3", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Relay garden2 valve1", "room": "garden", "type": "switch", "id": { "entity_id": "switch.relay_garden2_valve1", "device_id": null } }, { "name": "Relay garden2 valve2", "room": "garden", "type": "switch", "id": { "entity_id": "switch.relay_garden2_valve2", "device_id": null } }, { "name": "Relay garden2 valve3", "room": "garden", "type": "switch", "id": { "entity_id": "switch.relay_garden2_valve3", "device_id": null } }, { "name": "Relay garden valve1", "room": "garden", "type": "switch", "id": { "entity_id": "switch.relay_garden_valve1", "device_id": null } }, { "name": "Relay garden valve2", "room": "garden", "type": "switch", "id": { "entity_id": "switch.relay_garden_valve2", "device_id": null } }, { "name": "Relay garden valve3", "room": "garden", "type": "switch", "id": { "entity_id": "switch.relay_garden_valve3", "device_id": null } } ] }, { "id": "garden_irrigation_on", "automation": "- alias: garden_irrigation_on\n id: garden_irrigation_on\n mode: parallel\n triggers:\n - trigger: event\n event_type: bosch_shc.event\n event_data:\n event_type: SCENARIO\n event_subtype: Hecke bewässern\n variables:\n valve_no: 1\n - trigger: event\n event_type: bosch_shc.event\n event_data:\n event_type: SCENARIO\n event_subtype: Hochbeete bewässern\n variables:\n valve_no: 2\n - trigger: event\n event_type: bosch_shc.event\n event_data:\n event_type: SCENARIO\n event_subtype: Rosengarten bewässern\n variables:\n valve_no: 3\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - action: switch.turn_on\n target:\n entity_id: switch.relay_garden{{ 2 if valve_no > 3 else '' }}_valve{{ ( valve_no\n - 1 ) % 3 + 1 }}", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } } ] }, { "id": "garden_irrigation_valve_start", "automation": "- alias: garden_irrigation_valve_start\n id: garden_irrigation_valve_start\n mode: parallel\n triggers:\n - trigger: time\n at:\n - input_datetime.irrigation_start_1\n - input_datetime.irrigation_start_2\n - input_datetime.irrigation_start_3\n - input_datetime.irrigation_start_4\n - input_datetime.irrigation_start_5\n - input_datetime.irrigation_start_6\n variables:\n valve_no: '{{ trigger.entity_id [32:] }}'\n conditions:\n - condition: state\n entity_id: input_boolean.irrigation_activated\n state: 'on'\n - condition: template\n value_template: \"{% set n = valve_no | string %} {% set day = now().weekday()\\\n \\ %} {{\\n states ( 'input_boolean.irrigation_scheduled_valve' + n ) == 'on'\\\n \\ and\\n (\\n day == 0 and states ( 'input_boolean.irrigation_valve'\\\n \\ + n + '_at_monday' ) == 'on' or\\n day == 1 and states ( 'input_boolean.irrigation_valve'\\\n \\ + n + '_at_tuesday' ) == 'on' or\\n day == 2 and states ( 'input_boolean.irrigation_valve'\\\n \\ + n + '_at_wednesday' ) == 'on' or\\n day == 3 and states ( 'input_boolean.irrigation_valve'\\\n \\ + n + '_at_thursday' ) == 'on' or\\n day == 4 and states ( 'input_boolean.irrigation_valve'\\\n \\ + n + '_at_friday' ) == 'on' or\\n day == 5 and states ( 'input_boolean.irrigation_valve'\\\n \\ + n + '_at_saturday' ) == 'on' or\\n day == 6 and states ( 'input_boolean.irrigation_valve'\\\n \\ + n + '_at_sunday' ) == 'on'\\n )\\n}}\\n\"\n actions:\n - variables:\n duration: '{{ states ( ''sensor.irrigation_duration_effective_valve'' + valve_no\n | string ) }}'\n - action: timer.start\n target:\n entity_id: timer.irrigation_valve{{ valve_no }}\n data:\n duration: '{{ ( duration / 60 ) | int }}:{{ duration % 60 }}:00'\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - action: switch.turn_on\n target:\n entity_id: switch.relay_garden{{ 2 if valve_no > 3 else '' }}_valve{{ ( valve_no\n - 1 ) % 3 + 1 }}", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Irrigation Activated", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.irrigation_activated", "device_id": null } }, { "name": "Irrigation Start 1", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.irrigation_start_1", "device_id": null } }, { "name": "Irrigation Start 2", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.irrigation_start_2", "device_id": null } }, { "name": "Irrigation Start 3", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.irrigation_start_3", "device_id": null } } ] }, { "id": "garden_irrigation_valve_stop", "automation": "- alias: garden_irrigation_valve_stop\n id: garden_irrigation_valve_stop\n mode: parallel\n triggers:\n - trigger: event\n event_type:\n - timer.finished\n event_data:\n entity_id: timer.irrigation_valve1\n - trigger: event\n event_type:\n - timer.finished\n event_data:\n entity_id: timer.irrigation_valve2\n - trigger: event\n event_type:\n - timer.finished\n event_data:\n entity_id: timer.irrigation_valve3\n - trigger: event\n event_type:\n - timer.finished\n event_data:\n entity_id: timer.irrigation_valve4\n - trigger: event\n event_type:\n - timer.finished\n event_data:\n entity_id: timer.irrigation_valve5\n - trigger: event\n event_type:\n - timer.finished\n event_data:\n entity_id: timer.irrigation_valve6\n actions:\n - variables:\n valve_no: '{{ trigger.event.data.entity_id [22:] }}'\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - action: switch.turn_off\n target:\n entity_id: switch.relay_garden{{ 2 if valve_no > 3 else '' }}_valve{{ ( valve_no\n - 1 ) % 3 + 1 }}", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Irrigation valve1", "room": null, "type": "timer", "id": { "entity_id": "timer.irrigation_valve1", "device_id": null } }, { "name": "Irrigation valve2", "room": null, "type": "timer", "id": { "entity_id": "timer.irrigation_valve2", "device_id": null } }, { "name": "Irrigation valve3", "room": null, "type": "timer", "id": { "entity_id": "timer.irrigation_valve3", "device_id": null } }, { "name": "Irrigation valve4", "room": null, "type": "timer", "id": { "entity_id": "timer.irrigation_valve4", "device_id": null } }, { "name": "Irrigation valve5", "room": null, "type": "timer", "id": { "entity_id": "timer.irrigation_valve5", "device_id": null } }, { "name": "Irrigation valve6", "room": null, "type": "timer", "id": { "entity_id": "timer.irrigation_valve6", "device_id": null } } ] }, { "id": "garden_irrigation_schedule", "automation": "- alias: garden_irrigation_schedule\n id: garden_irrigation_schedule\n triggers:\n - trigger: state\n entity_id: input_boolean.irrigation_activated\n - trigger: state\n entity_id: sensor.precipitation_7d_plus_forecast\n - trigger: state\n entity_id: input_number.irrigation_precipitation_threshold\n - trigger: state\n entity_id: sensor.dht22_terrace_temperature_max\n - trigger: state\n entity_id: input_number.irrigation_temperature_threshold_low\n actions:\n - variables:\n mode: \"{% set val = states ( 'sensor.precipitation_7d_plus_forecast' ) | float\\\n \\ %} {% set thr = states ( 'input_number.irrigation_precipitation_threshold'\\\n \\ ) | float %} {% set t_max = states ( 'sensor.dht22_terrace_temperature_max'\\\n \\ ) | float %} {% set t_thr_low = states ( 'input_number.irrigation_temperature_threshold_low'\\\n \\ ) | float %} {% if val < thr and t_max >= t_thr_low %}\\n on\\n{% else\\\n \\ %}\\n off\\n{% endif %}\\n\"\n - repeat:\n count: 6\n sequence:\n - action: input_boolean.turn_{{ mode }}\n target:\n entity_id: input_boolean.irrigation_scheduled_valve{{ repeat.index }}", "config": [ { "name": "dht22 terrace temperature", "room": "terrace", "type": "sensor", "id": { "entity_id": "sensor.dht22_terrace_temperature", "device_id": null } }, { "name": "Irrigation Activated", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.irrigation_activated", "device_id": null } }, { "name": "Irrigation Precipitation Threshold", "room": null, "type": "input_number", "id": { "entity_id": "input_number.irrigation_precipitation_threshold", "device_id": null } }, { "name": "Irrigation Temperature Threshold Low", "room": null, "type": "input_number", "id": { "entity_id": "input_number.irrigation_temperature_threshold_low", "device_id": null } }, { "name": "DHT22 terrace temperature max", "room": "terrace", "type": "sensor", "id": { "entity_id": "sensor.dht22_terrace_temperature_max", "device_id": null } }, { "name": "Precipitation 7d plus forecast", "room": null, "type": "sensor", "id": { "entity_id": "sensor.precipitation_7d_plus_forecast", "device_id": null } } ] }, { "id": "garden_irrigation_set_temperature_thresholds_by_low", "automation": "- alias: garden_irrigation_set_temperature_thresholds_by_low\n id: garden_irrigation_set_temperature_thresholds_by_low\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: state\n entity_id: input_number.irrigation_temperature_threshold_low\n actions:\n - variables:\n temp_high_new: '{% set temp_low = states ( ''input_number.irrigation_temperature_threshold_low''\n ) | int %} {% set temp_high = states ( ''input_number.irrigation_temperature_threshold_high''\n ) | int %} {{ max ( [temp_low, temp_high] ) }}\n\n '\n temp_hot_new: '{% set temp_low = states ( ''input_number.irrigation_temperature_threshold_low''\n ) | int %} {% set temp_hot = states ( ''input_number.irrigation_temperature_threshold_hot''\n ) | int %} {{ max ( [temp_low, temp_hot] ) }}\n\n '\n - action: input_number.set_value\n target:\n entity_id: input_number.irrigation_temperature_threshold_high\n data:\n value: '{{ temp_high_new }}'\n - action: input_number.set_value\n target:\n entity_id: input_number.irrigation_temperature_threshold_hot\n data:\n value: '{{ temp_hot_new }}'", "config": [ { "name": "Irrigation Temperature Threshold High", "room": null, "type": "input_number", "id": { "entity_id": "input_number.irrigation_temperature_threshold_high", "device_id": null } }, { "name": "Irrigation Temperature Threshold Hot", "room": null, "type": "input_number", "id": { "entity_id": "input_number.irrigation_temperature_threshold_hot", "device_id": null } }, { "name": "Irrigation Temperature Threshold Low", "room": null, "type": "input_number", "id": { "entity_id": "input_number.irrigation_temperature_threshold_low", "device_id": null } } ] }, { "id": "garden_irrigation_set_temperature_thresholds_by_high", "automation": "- alias: garden_irrigation_set_temperature_thresholds_by_high\n id: garden_irrigation_set_temperature_thresholds_by_high\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: state\n entity_id: input_number.irrigation_temperature_threshold_high\n actions:\n - variables:\n temp_low_new: '{% set temp_low = states ( ''input_number.irrigation_temperature_threshold_low''\n ) | int %} {% set temp_high = states ( ''input_number.irrigation_temperature_threshold_high''\n ) | int %} {{ min ( [temp_low, temp_high] ) }}\n\n '\n temp_hot_new: '{% set temp_high = states ( ''input_number.irrigation_temperature_threshold_high''\n ) | int %} {% set temp_hot = states ( ''input_number.irrigation_temperature_threshold_hot''\n ) | int %} {{ max ( [temp_high, temp_hot] ) }}\n\n '\n - action: input_number.set_value\n target:\n entity_id: input_number.irrigation_temperature_threshold_low\n data:\n value: '{{ temp_low_new }}'\n - action: input_number.set_value\n target:\n entity_id: input_number.irrigation_temperature_threshold_hot\n data:\n value: '{{ temp_hot_new }}'", "config": [ { "name": "Irrigation Temperature Threshold High", "room": null, "type": "input_number", "id": { "entity_id": "input_number.irrigation_temperature_threshold_high", "device_id": null } }, { "name": "Irrigation Temperature Threshold Hot", "room": null, "type": "input_number", "id": { "entity_id": "input_number.irrigation_temperature_threshold_hot", "device_id": null } }, { "name": "Irrigation Temperature Threshold Low", "room": null, "type": "input_number", "id": { "entity_id": "input_number.irrigation_temperature_threshold_low", "device_id": null } } ] }, { "id": "garden_irrigation_set_temperature_thresholds_by_hot", "automation": "- alias: garden_irrigation_set_temperature_thresholds_by_hot\n id: garden_irrigation_set_temperature_thresholds_by_hot\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: state\n entity_id: input_number.irrigation_temperature_threshold_hot\n actions:\n - variables:\n temp_low_new: '{% set temp_low = states ( ''input_number.irrigation_temperature_threshold_low''\n ) | int %} {% set temp_hot = states ( ''input_number.irrigation_temperature_threshold_hot''\n ) | int %} {{ min ( [temp_low, temp_hot] ) }}\n\n '\n temp_high_new: '{% set temp_high = states ( ''input_number.irrigation_temperature_threshold_high''\n ) | int %} {% set temp_hot = states ( ''input_number.irrigation_temperature_threshold_hot''\n ) | int %} {{ min ( [temp_high, temp_hot] ) }}\n\n '\n - action: input_number.set_value\n target:\n entity_id: input_number.irrigation_temperature_threshold_low\n data:\n value: '{{ temp_low_new }}'\n - action: input_number.set_value\n target:\n entity_id: input_number.irrigation_temperature_threshold_high\n data:\n value: '{{ temp_high_new }}'", "config": [ { "name": "Irrigation Temperature Threshold High", "room": null, "type": "input_number", "id": { "entity_id": "input_number.irrigation_temperature_threshold_high", "device_id": null } }, { "name": "Irrigation Temperature Threshold Hot", "room": null, "type": "input_number", "id": { "entity_id": "input_number.irrigation_temperature_threshold_hot", "device_id": null } }, { "name": "Irrigation Temperature Threshold Low", "room": null, "type": "input_number", "id": { "entity_id": "input_number.irrigation_temperature_threshold_low", "device_id": null } } ] }, { "id": "garden_hydrotower_pump_switching", "automation": "- alias: garden_hydrotower_pump_switching\n id: garden_hydrotower_pump_switching\n triggers:\n - trigger: time_pattern\n minutes: /1\n conditions:\n - condition: state\n entity_id: input_boolean.hydrotower_activated\n state: 'on'\n - condition: state\n entity_id: timer.hydrotower_pump_period\n state: idle\n actions:\n - action: timer.start\n target:\n entity_id: timer.hydrotower_pump_period\n data:\n duration: '{{ ( states ( ''input_number.hydrotower_pump_period'' ) | int / 60\n ) | int }}:{{ states ( ''input_number.hydrotower_pump_period'' ) | int % 60\n }}:0'", "config": [ { "name": "Hydrotower Activated", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.hydrotower_activated", "device_id": null } }, { "name": "Hydrotower pump period", "room": null, "type": "timer", "id": { "entity_id": "timer.hydrotower_pump_period", "device_id": null } } ] }, { "id": "garden_hydrotower_pump_start", "automation": "- alias: garden_hydrotower_pump_start\n id: garden_hydrotower_pump_start\n triggers:\n - trigger: event\n event_type: timer.started\n event_data:\n entity_id: timer.hydrotower_pump_period\n - trigger: state\n entity_id: switch.relay_hydrotower_pump\n to: 'on'\n actions:\n - action: timer.start\n target:\n entity_id: timer.hydrotower_pump_duration\n data:\n duration: '{{ ( states ( ''input_number.hydrotower_pump_duration'' ) | int /\n 60 ) | int }}:{{ states ( ''input_number.hydrotower_pump_duration'' ) | int\n % 60 }}:0'\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - action: switch.turn_on\n target:\n entity_id: switch.relay_hydrotower_pump", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Relay hydrotower pump", "room": "garden", "type": "switch", "id": { "entity_id": "switch.relay_hydrotower_pump", "device_id": null } }, { "name": "Hydrotower pump duration", "room": null, "type": "timer", "id": { "entity_id": "timer.hydrotower_pump_duration", "device_id": null } }, { "name": "Hydrotower pump period", "room": null, "type": "timer", "id": { "entity_id": "timer.hydrotower_pump_period", "device_id": null } } ] }, { "id": "garden_hydrotower_pump_stop", "automation": "- alias: garden_hydrotower_pump_stop\n id: garden_hydrotower_pump_stop\n triggers:\n - trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.hydrotower_pump_duration\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - action: switch.turn_off\n target:\n entity_id: switch.relay_hydrotower_pump", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Relay hydrotower pump", "room": "garden", "type": "switch", "id": { "entity_id": "switch.relay_hydrotower_pump", "device_id": null } }, { "name": "Hydrotower pump duration", "room": null, "type": "timer", "id": { "entity_id": "timer.hydrotower_pump_duration", "device_id": null } } ] }, { "id": "garden_pool_pump_switching", "automation": "- alias: garden_pool_pump_switching\n id: garden_pool_pump_switching\n triggers:\n - trigger: time_pattern\n minutes: /1\n conditions:\n - condition: state\n entity_id: input_boolean.pool_pump_activated\n state: 'on'\n - condition: state\n entity_id: timer.pool_pump_period\n state: idle\n - condition: time\n after: input_datetime.pool_pump_start\n before: input_datetime.pool_pump_end\n actions:\n - action: timer.start\n target:\n entity_id: timer.pool_pump_period\n data:\n duration: '{{ ( states ( ''sensor.pool_pump_period_length'' ) | int / 60 ) |\n int }}:{{ states ( ''sensor.pool_pump_period_length'' ) | int % 60 }}:0'", "config": [ { "name": "Pool Pump Activated", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pool_pump_activated", "device_id": null } }, { "name": "Pool pump period", "room": null, "type": "timer", "id": { "entity_id": "timer.pool_pump_period", "device_id": null } } ] }, { "id": "garden_pool_pump_start", "automation": "- alias: garden_pool_pump_start\n id: garden_pool_pump_start\n triggers:\n - trigger: event\n event_type: timer.started\n event_data:\n entity_id: timer.pool_pump_period\n - trigger: state\n entity_id: switch.poolpumpe\n to: 'on'\n actions:\n - action: timer.start\n target:\n entity_id: timer.pool_pump_duration\n data:\n duration: '{{ ( states ( ''input_number.pool_pump_duration_period'' ) | int\n / 60 ) | int }}:{{ states ( ''input_number.pool_pump_duration_period'' ) |\n int % 60 }}:0'\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - action: switch.turn_on\n target:\n entity_id: switch.poolpumpe", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Pool Pump Duration", "room": null, "type": "input_number", "id": { "entity_id": "input_number.pool_pump_duration", "device_id": null } }, { "name": "Poolpumpe", "room": null, "type": "switch", "id": { "entity_id": "switch.poolpumpe", "device_id": null } }, { "name": "Pool pump duration", "room": null, "type": "timer", "id": { "entity_id": "timer.pool_pump_duration", "device_id": null } }, { "name": "Pool pump period", "room": null, "type": "timer", "id": { "entity_id": "timer.pool_pump_period", "device_id": null } } ] }, { "id": "garden_pool_pump_stop", "automation": "- alias: garden_pool_pump_stop\n id: garden_pool_pump_stop\n triggers:\n - trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.pool_pump_duration\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - action: switch.turn_off\n target:\n entity_id: switch.poolpumpe", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Poolpumpe", "room": null, "type": "switch", "id": { "entity_id": "switch.poolpumpe", "device_id": null } }, { "name": "Pool pump duration", "room": null, "type": "timer", "id": { "entity_id": "timer.pool_pump_duration", "device_id": null } } ] }, { "id": "garden_waterpump_emegency_stop", "automation": "- alias: garden_waterpump_emergency_stop\n id: garden_waterpump_emegency_stop\n triggers:\n - trigger: template\n value_template: '{{ states ( ''sensor.wasserpumpe_power'' ) | int > states ( ''input_number.waterpump_emergency_stop_power_threshold''\n ) | int }}'\n for:\n minutes: '{{ states ( ''input_number.waterpump_emergency_stop_duration'' ) |\n int }}'\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - action: notify.simplepush\n data:\n message: Notfallstop Wasserpumpe mit Leistung größer {{ states ( 'input_number.waterpump_emergency_stop_power_threshold'\n ) | int }} für {{ states ( 'input_number.waterpump_emergency_stop_duration'\n ) | int }} Minuten.\n title: Home Assistant ({{ states ( 'input_text.hostname' ) | lower }})\n - action: switch.turn_off\n target:\n entity_id: switch.wasserpumpe", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Waterpump emergency stop duration", "room": null, "type": "input_number", "id": { "entity_id": "input_number.waterpump_emergency_stop_duration", "device_id": null } }, { "name": "Waterpump emergency stop power threshold", "room": null, "type": "input_number", "id": { "entity_id": "input_number.waterpump_emergency_stop_power_threshold", "device_id": null } }, { "name": "Wasserpumpe", "room": null, "type": "switch", "id": { "entity_id": "switch.wasserpumpe", "device_id": null } } ] }, { "id": "garden_mower_start", "automation": "- alias: garden_mower_start\n id: garden_mower_start\n triggers:\n - trigger: time\n at: input_datetime.mowing_start\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: state\n entity_id: input_boolean.mowing_activated\n state: 'on'\n - condition: template\n value_template: \"{% set day = now().weekday() %} {{\\n day == 0 and states (\\\n \\ 'input_boolean.mowing_at_monday' ) == 'on' or\\n day == 1 and states (\\\n \\ 'input_boolean.mowing_at_tuesday' ) == 'on' or\\n day == 2 and states (\\\n \\ 'input_boolean.mowing_at_wednesday' ) == 'on' or\\n day == 3 and states (\\\n \\ 'input_boolean.mowing_at_thursday' ) == 'on' or\\n day == 4 and states (\\\n \\ 'input_boolean.mowing_at_friday' ) == 'on' or\\n day == 5 and states (\\\n \\ 'input_boolean.mowing_at_saturday' ) == 'on' or\\n day == 6 and states (\\\n \\ 'input_boolean.mowing_at_sunday' ) == 'on'\\n}}\\n\"\n actions:\n - action: gardena_smart_system.start_override\n target:\n entity_id: lawn_mower.sileno\n data:\n duration: '{{ ( as_timestamp ( today_at ( states ( ''input_datetime.mowing_end''\n ) ) ) - as_timestamp ( today_at ( states ( ''input_datetime.mowing_start''\n ) ) ) ) | int }}'", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Mowing Activated", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.mowing_activated", "device_id": null } }, { "name": "Mowing End", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.mowing_end", "device_id": null } }, { "name": "Mowing Start", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.mowing_start", "device_id": null } }, { "name": "Sileno lawn mower", "room": null, "type": "lawn_mower", "id": { "entity_id": "lawn_mower.sileno", "device_id": null } } ] }, { "id": "garden_mower_end", "automation": "- alias: garden_mower_end\n id: garden_mower_end\n triggers:\n - trigger: time\n at: input_datetime.mowing_end\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n action:\n - action: lawn_mower.pause\n target:\n entity_id: lawn_mower.sileno", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Mowing End", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.mowing_end", "device_id": null } }, { "name": "Sileno lawn mower", "room": null, "type": "lawn_mower", "id": { "entity_id": "lawn_mower.sileno", "device_id": null } } ] }, { "id": "gas_meter_send_threshold_high", "automation": "- alias: gas_meter_send_threshold_high\n id: gas_meter_send_threshold_high\n triggers:\n - trigger: state\n entity_id: input_number.gas_meter_threshold_high\n actions:\n - action: mqtt.publish\n data:\n topic: nodes@home/sensor/magnetic/utilityroom/service/threshold_high\n payload_template: '{{ states ( ''input_number.gas_meter_threshold_high'' ) }}'\n qos: 1\n retain: true", "config": [ { "name": "Gas Meter Threshold High", "room": null, "type": "input_number", "id": { "entity_id": "input_number.gas_meter_threshold_high", "device_id": null } } ] }, { "id": "gas_meter_send_threshold_low", "automation": "- alias: gas_meter_send_threshold_low\n id: gas_meter_send_threshold_low\n triggers:\n - trigger: state\n entity_id: input_number.gas_meter_threshold_low\n actions:\n - action: mqtt.publish\n data:\n topic: nodes@home/sensor/magnetic/utilityroom/service/threshold_low\n payload_template: '{{ states ( ''input_number.gas_meter_threshold_low'' ) }}'\n qos: 1\n retain: true", "config": [ { "name": "Gas Meter Threshold Low", "room": null, "type": "input_number", "id": { "entity_id": "input_number.gas_meter_threshold_low", "device_id": null } } ] }, { "id": "gas_meter_send_delay", "automation": "- alias: gas_meter_send_delay\n id: gas_meter_send_delay\n triggers:\n - trigger: state\n entity_id: input_number.gas_meter_delay\n actions:\n - action: mqtt.publish\n data:\n topic: nodes@home/sensor/magnetic/utilityroom/service/delay\n payload_template: '{{ states ( ''input_number.gas_meter_delay'' ) }}'\n qos: 1\n retain: true", "config": [ { "name": "Gas Meter Delay", "room": null, "type": "input_number", "id": { "entity_id": "input_number.gas_meter_delay", "device_id": null } } ] }, { "id": "heating_mode", "automation": "- alias: heating_mode\n id: heating_mode\n trigger:\n - platform: state\n entity_id: select.thermostat_hc1_mode\n condition:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n action:\n - repeat:\n for_each:\n - arbeitszimmer\n - bad\n - dusche\n - esszimmer\n - flur\n - galerie\n - kinderzimmer\n - kuche\n - schlafzimmer\n - wohnzimmer\n - hauswirtschaftsraum\n sequence:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ is_state ( ''select.thermostat_hc1_mode'', ''nofrost''\n ) }}'\n sequence:\n - service: climate.turn_off\n target:\n entity_id: climate.room_climate_{{ repeat.item }}\n - conditions:\n - condition: template\n value_template: '{{ is_state ( ''select.thermostat_hc1_mode'', ''eco''\n ) }}'\n sequence:\n - service: climate.set_hvac_mode\n target:\n entity_id: climate.room_climate_{{ repeat.item }}\n data:\n hvac_mode: heat\n - service: climate.set_preset_mode\n target:\n entity_id: climate.room_climate_{{ repeat.item }}\n data:\n preset_mode: eco\n - conditions:\n - condition: template\n value_template: '{{ is_state ( ''select.thermostat_hc1_mode'', ''heat''\n ) or is_state ( ''select.thermostat_hc1_mode'', ''auto'' ) }}'\n sequence:\n - service: climate.set_hvac_mode\n target:\n entity_id: climate.room_climate_{{ repeat.item }}\n data:\n hvac_mode: heat\n - service: climate.set_temperature\n target:\n entity_id: climate.room_climate_{{ repeat.item }}\n data:\n temperature: '{{ states ( ''input_number.heating_templevel_'' + states\n ( ''input_select.heating_templevel_'' + repeat.item ) ) }}'", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Thermostat HC1 mode", "room": null, "type": "select", "id": { "entity_id": "select.thermostat_hc1_mode", "device_id": null } } ] }, { "id": "heating_update_room", "automation": "- alias: heating_update_room\n id: heating_update_room\n trigger:\n - platform: state\n entity_id: input_select.heating_templevel_arbeitszimmer\n - platform: state\n entity_id: input_select.heating_templevel_bad\n - platform: state\n entity_id: input_select.heating_templevel_dusche\n - platform: state\n entity_id: input_select.heating_templevel_esszimmer\n - platform: state\n entity_id: input_select.heating_templevel_flur\n - platform: state\n entity_id: input_select.heating_templevel_galerie\n - platform: state\n entity_id: input_select.heating_templevel_kinderzimmer\n - platform: state\n entity_id: input_select.heating_templevel_kuche\n - platform: state\n entity_id: input_select.heating_templevel_schlafzimmer\n - platform: state\n entity_id: input_select.heating_templevel_wohnzimmer\n - platform: state\n entity_id: input_select.heating_templevel_hauswirtschaftsraum\n condition:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n action:\n - service: climate.set_temperature\n target:\n entity_id: climate.room_climate_{{ trigger.entity_id.split ( '_' ) [3] }}\n data:\n temperature: '{{ states ( ''input_number.heating_templevel_'' + states ( ''input_select.heating_templevel_''\n + trigger.entity_id.split ( ''_'' ) [3] ) ) }}'", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Heating temperature level Arbeitszimmer", "room": "arbeitszimmer", "type": "input_select", "id": { "entity_id": "input_select.heating_templevel_arbeitszimmer", "device_id": null } }, { "name": "Heating temperature level Bad", "room": "bad", "type": "input_select", "id": { "entity_id": "input_select.heating_templevel_bad", "device_id": null } }, { "name": "Heating temperature level Dusche", "room": "dusche", "type": "input_select", "id": { "entity_id": "input_select.heating_templevel_dusche", "device_id": null } }, { "name": "Heating temperature level Esszimmer", "room": "esszimmer", "type": "input_select", "id": { "entity_id": "input_select.heating_templevel_esszimmer", "device_id": null } }, { "name": "Heating temperature level Flur", "room": "flur", "type": "input_select", "id": { "entity_id": "input_select.heating_templevel_flur", "device_id": null } }, { "name": "Heating temperature level Galerie", "room": "galerie", "type": "input_select", "id": { "entity_id": "input_select.heating_templevel_galerie", "device_id": null } }, { "name": "Heating temperature level Hauswirtschaftsraum", "room": "hauswirtschaftsraum", "type": "input_select", "id": { "entity_id": "input_select.heating_templevel_hauswirtschaftsraum", "device_id": null } }, { "name": "Heating temperature level Kinderzimmer", "room": "kinderzimmer", "type": "input_select", "id": { "entity_id": "input_select.heating_templevel_kinderzimmer", "device_id": null } }, { "name": "Heating temperature level Küche", "room": "küche", "type": "input_select", "id": { "entity_id": "input_select.heating_templevel_kuche", "device_id": null } }, { "name": "Heating temperature level Schlafzimmer", "room": "schlafzimmer", "type": "input_select", "id": { "entity_id": "input_select.heating_templevel_schlafzimmer", "device_id": null } }, { "name": "Heating temperature level Wohnzimmer", "room": "wohnzimmer", "type": "input_select", "id": { "entity_id": "input_select.heating_templevel_wohnzimmer", "device_id": null } } ] }, { "id": "heating_update_templevel", "automation": "- alias: heating_update_templevel\n id: heating_update_templevel\n trigger:\n - platform: state\n entity_id: input_number.heating_templevel_low\n - platform: state\n entity_id: input_number.heating_templevel_standard\n - platform: state\n entity_id: input_number.heating_templevel_comfort\n condition:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n action:\n - variables:\n level: '{{ trigger.entity_id.split ( ''_'' ) [3] }}'\n - repeat:\n for_each:\n - arbeitszimmer\n - bad\n - dusche\n - esszimmer\n - flur\n - galerie\n - kinderzimmer\n - kuche\n - schlafzimmer\n - wohnzimmer\n - hauswirtschaftsraum\n sequence:\n - if:\n - condition: template\n value_template: '{{ is_state ( ''input_select.heating_templevel_'' + repeat.item,\n level ) }}'\n then:\n - service: climate.set_temperature\n target:\n entity_id: climate.room_climate_{{ repeat.item }}\n data:\n temperature: '{{ states ( ''input_number.heating_templevel_'' + level\n ) }}'", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Heating Templevel Comfort", "room": null, "type": "input_number", "id": { "entity_id": "input_number.heating_templevel_comfort", "device_id": null } }, { "name": "Heating Templevel Low", "room": null, "type": "input_number", "id": { "entity_id": "input_number.heating_templevel_low", "device_id": null } }, { "name": "Heating Templevel Standard", "room": null, "type": "input_number", "id": { "entity_id": "input_number.heating_templevel_standard", "device_id": null } } ] }, { "id": "circulating_pump_set_datetimes", "automation": "- alias: circulating_pump_set_datetimes\n id: circulating_pump_set_datetimes\n trigger:\n - platform: state\n entity_id: input_datetime.standup_workday\n - platform: state\n entity_id: input_datetime.sleep\n - platform: state\n entity_id: input_datetime.standup_weekend\n - platform: state\n entity_id: input_number.circulating_pump_schedule_after_standup\n - platform: state\n entity_id: input_number.circulating_pump_schedule_before_sleeping\n - platform: homeassistant\n event: start\n - platform: event\n event_type:\n - automation_reloaded\n condition: null\n action:\n - service: input_datetime.set_datetime\n target:\n entity_id: input_datetime.circulating_pump_scheduling_after_standup_workday\n data:\n time: '{{ states ( ''input_datetime.standup_workday'' ) | as_timedelta + timedelta\n ( hours = states ( ''input_number.circulating_pump_schedule_after_standup''\n ) | int ) }}'\n - service: input_datetime.set_datetime\n target:\n entity_id: input_datetime.circulating_pump_scheduling_after_standup_weekend\n data:\n time: '{{ states ( ''input_datetime.standup_weekend'' ) | as_timedelta + timedelta\n ( hours = states ( ''input_number.circulating_pump_schedule_after_standup''\n ) | int ) }}'\n - service: input_datetime.set_datetime\n target:\n entity_id: input_datetime.circulating_pump_scheduling_before_sleeping\n data:\n time: '{{ states ( ''input_datetime.sleep'' ) | as_timedelta - timedelta ( hours\n = states ( ''input_number.circulating_pump_schedule_before_sleeping'' ) |\n int ) }}'", "config": [ { "name": "Circulating Pump Scheduling After Standup Weekend", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.circulating_pump_scheduling_after_standup_weekend", "device_id": null } }, { "name": "Circulating Pump Scheduling After Standup Workday", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.circulating_pump_scheduling_after_standup_workday", "device_id": null } }, { "name": "Circulating Pump Scheduling Before Sleeping", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.circulating_pump_scheduling_before_sleeping", "device_id": null } }, { "name": "Sleep", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.sleep", "device_id": null } }, { "name": "Standup Weekend", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.standup_weekend", "device_id": null } }, { "name": "Standup Workday", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.standup_workday", "device_id": null } }, { "name": "Circulating Pump Schedule After Standup", "room": null, "type": "input_number", "id": { "entity_id": "input_number.circulating_pump_schedule_after_standup", "device_id": null } }, { "name": "Circulating Pump Schedule Before Sleeping", "room": null, "type": "input_number", "id": { "entity_id": "input_number.circulating_pump_schedule_before_sleeping", "device_id": null } } ] }, { "id": "circulating_pump_start_scheduling", "automation": "- alias: circulating_pump_start_scheduling\n id: circulating_pump_start_scheduling\n trigger:\n - platform: time\n at: input_datetime.standup_workday\n - platform: time\n at: input_datetime.standup_weekend\n - platform: state\n entity_id: group.family\n to: home\n - platform: time\n at: input_datetime.circulating_pump_scheduling_before_sleeping\n condition:\n - condition: state\n entity_id: group.family\n state: home\n - condition: or\n conditions:\n - condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'on'\n - condition: time\n after: input_datetime.standup_workday\n before: input_datetime.circulating_pump_scheduling_after_standup_workday\n - condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'off'\n - condition: time\n after: input_datetime.standup_weekend\n before: input_datetime.circulating_pump_scheduling_after_standup_weekend\n - condition: time\n after: input_datetime.circulating_pump_scheduling_before_sleeping\n before: input_datetime.sleep\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.circulating_pump_scheduled", "config": [ { "name": "family group", "room": null, "type": "group", "id": { "entity_id": "group.family", "device_id": null } }, { "name": "Workday Sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.workday_sensor", "device_id": null } }, { "name": "Circulating Pump Scheduled", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.circulating_pump_scheduled", "device_id": null } }, { "name": "Circulating Pump Scheduling After Standup Weekend", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.circulating_pump_scheduling_after_standup_weekend", "device_id": null } }, { "name": "Circulating Pump Scheduling After Standup Workday", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.circulating_pump_scheduling_after_standup_workday", "device_id": null } }, { "name": "Circulating Pump Scheduling Before Sleeping", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.circulating_pump_scheduling_before_sleeping", "device_id": null } }, { "name": "Sleep", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.sleep", "device_id": null } }, { "name": "Standup Weekend", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.standup_weekend", "device_id": null } }, { "name": "Standup Workday", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.standup_workday", "device_id": null } } ] }, { "id": "circulating_pump_stop_scheduling", "automation": "- alias: circulating_pump_stop_scheduling\n id: circulating_pump_stop_scheduling\n trigger:\n - platform: time\n at: input_datetime.sleep\n - platform: state\n entity_id: group.family\n to: not_home\n - platform: state\n entity_id: remote.sony_kd_55ag9\n from: 'on'\n to: 'off'\n for:\n minutes: '{{ states ( ''input_number.tvoff_lightsoff_delay1'' ) | int }}'\n condition: null\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.circulating_pump_scheduled", "config": [ { "name": "family group", "room": null, "type": "group", "id": { "entity_id": "group.family", "device_id": null } }, { "name": "sony kd 55ag9 remote", "room": null, "type": "remote", "id": { "entity_id": "remote.sony_kd_55ag9", "device_id": null } }, { "name": "Circulating Pump Scheduled", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.circulating_pump_scheduled", "device_id": null } }, { "name": "Sleep", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.sleep", "device_id": null } }, { "name": "TV off lights off delay 1", "room": null, "type": "input_number", "id": { "entity_id": "input_number.tvoff_lightsoff_delay1", "device_id": null } } ] }, { "id": "circulating_pump_stop_scheduling_after_standup_workday", "automation": "- alias: circulating_pump_stop_scheduling_after_standup_workday\n id: circulating_pump_stop_scheduling_after_standup_workday\n trigger:\n - platform: time\n at: input_datetime.circulating_pump_scheduling_after_standup_workday\n condition:\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'on'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.circulating_pump_scheduled", "config": [ { "name": "Workday Sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.workday_sensor", "device_id": null } }, { "name": "Circulating Pump Scheduled", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.circulating_pump_scheduled", "device_id": null } }, { "name": "Circulating Pump Scheduling After Standup Workday", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.circulating_pump_scheduling_after_standup_workday", "device_id": null } } ] }, { "id": "circulating_pump_stop_scheduling_after_standup_weekend", "automation": "- alias: circulating_pump_stop_scheduling_after_standup_weekend\n id: circulating_pump_stop_scheduling_after_standup_weekend\n trigger:\n - platform: time\n at: input_datetime.circulating_pump_scheduling_after_standup_weekend\n condition:\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'off'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.circulating_pump_scheduled", "config": [ { "name": "Workday Sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.workday_sensor", "device_id": null } }, { "name": "Circulating Pump Scheduled", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.circulating_pump_scheduled", "device_id": null } }, { "name": "Circulating Pump Scheduling After Standup Weekend", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.circulating_pump_scheduling_after_standup_weekend", "device_id": null } } ] }, { "id": "circulating_pump_switching", "automation": "- alias: circulating_pump_switching\n id: circulating_pump_switching\n trigger:\n - platform: time_pattern\n minutes: /1\n condition:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: template\n value_template: '{% set t = now () %} {{ ( t.hour * 60 + t.minute ) % states (\n ''input_number.circulating_pump_on_period'' ) | int == 0 }}\n\n '\n - condition: state\n entity_id: input_boolean.circulating_pump_activated\n state: 'on'\n - condition: state\n entity_id: input_boolean.circulating_pump_scheduled\n state: 'on'\n action:\n - service: switch.turn_on\n entity_id:\n - switch.shelly_utilityroom_circulatingpump\n - delay:\n minutes: '{{ states ( ''input_number.circulating_pump_on_duration'' ) | int\n }}'\n - service: switch.turn_off\n entity_id:\n - switch.shelly_utilityroom_circulatingpump", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Circulating Pump Activated", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.circulating_pump_activated", "device_id": null } }, { "name": "Circulating Pump Scheduled", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.circulating_pump_scheduled", "device_id": null } }, { "name": "Circulating Pump On Duration", "room": null, "type": "input_number", "id": { "entity_id": "input_number.circulating_pump_on_duration", "device_id": null } }, { "name": "Circulating Pump On Period", "room": null, "type": "input_number", "id": { "entity_id": "input_number.circulating_pump_on_period", "device_id": null } }, { "name": "Shelly utilityroom circulating pump", "room": "utilityroom", "type": "switch", "id": { "entity_id": "switch.shelly_utilityroom_circulatingpump", "device_id": null } } ] }, { "id": "circulating_pump_running_disinfection", "automation": "- alias: circulating_pump_running_disinfection\n id: circulating_pump_running_disinfection\n trigger:\n - platform: state\n entity_id: input_number.circulating_pump_running_above_temp\n - platform: state\n entity_id: sensor.boiler_dhw_curtemp\n - platform: state\n entity_id: switch.shelly_utilityroom_circulatingpump\n - platform: state\n entity_id: input_boolean.circulating_pump_running_disinfection\n condition:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n action:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ states ( ''switch.shelly_utilityroom_circulatingpump''\n ) == ''off'' and states ( ''sensor.boiler_dhw_curtemp'' ) | float >= states\n ( ''input_number.circulating_pump_running_above_temp'' ) | float }}'\n sequence:\n - service: switch.turn_on\n entity_id:\n - switch.shelly_utilityroom_circulatingpump\n - service: input_boolean.turn_on\n entity_id:\n - input_boolean.circulating_pump_running_disinfection\n - conditions:\n - condition: template\n value_template: '{{ states ( ''input_boolean.circulating_pump_running_disinfection''\n ) == ''on'' and states ( ''sensor.boiler_dhw_curtemp'' ) | float < states\n ( ''input_number.circulating_pump_running_above_temp'' ) | float }}'\n sequence:\n - service: switch.turn_off\n entity_id:\n - switch.shelly_utilityroom_circulatingpump\n - service: input_boolean.turn_off\n entity_id:\n - input_boolean.circulating_pump_running_disinfection", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Circulating Pump Running Disinfection", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.circulating_pump_running_disinfection", "device_id": null } }, { "name": "Circulating Pump Running Above Temp", "room": null, "type": "input_number", "id": { "entity_id": "input_number.circulating_pump_running_above_temp", "device_id": null } }, { "name": "Boiler DHW current temperature", "room": null, "type": "sensor", "id": { "entity_id": "sensor.boiler_dhw_curtemp", "device_id": null } }, { "name": "Shelly utilityroom circulating pump", "room": "utilityroom", "type": "switch", "id": { "entity_id": "switch.shelly_utilityroom_circulatingpump", "device_id": null } } ] }, { "id": "heating_update_remote_thermostat", "automation": "- alias: heating_update_remote_thermostat\n id: heating_update_remote_thermostat\n triggers:\n - trigger: time_pattern\n minutes: /1\n - trigger: state\n entity_id: select.thermostat_hc1_control\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - if:\n - condition: template\n value_template: '{{ states ( ''select.thermostat_hc1_control'') == ''off'' }}'\n then:\n - if:\n - condition: numeric_state\n entity_id: number.thermostat_hc1_room_temperature_from_remote\n above: -1\n then:\n - action: number.set_value\n target:\n entity_id: number.thermostat_hc1_room_temperature_from_remote\n data:\n value: -1\n else:\n - action: number.set_value\n target:\n entity_id: number.thermostat_hc1_room_temperature_from_remote\n data:\n value: '{{ state_attr ( ''climate.room_climate_'' + states ( ''input_select.heating_leading_room_remote_thermostat''\n ) | lower, ''current_temperature'' ) }}'", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Thermostat HC1 room temperature from remote", "room": null, "type": "number", "id": { "entity_id": "number.thermostat_hc1_room_temperature_from_remote", "device_id": null } }, { "name": "Thermostat HC1 control", "room": null, "type": "select", "id": { "entity_id": "select.thermostat_hc1_control", "device_id": null } } ] }, { "id": "lights_send_effect_delay", "automation": "- alias: lights_send_effect_delay\n id: lights_send_effect_delay\n triggers:\n trigger: state\n entity_id: input_number.effect_delay\n conditions:\n - condition: state\n alias: process only on production server\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - action: mqtt.publish\n data:\n topic: nodes@home/light/ws2812/terrace1/service/set\n payload: '{\"delay\":{{ trigger.to_state.state | int }}}'\n qos: 0\n retain: false\n - action: mqtt.publish\n data:\n topic: nodes@home/light/ws2812/terrace2/service/set\n payload: '{\"delay\":{{ trigger.to_state.state | int }}}'\n qos: 0\n retain: false\n - action: mqtt.publish\n data:\n topic: nodes@home/light/ws2812/office/service/set\n payload: '{\"delay\":{{ trigger.to_state.state | int }}}'\n qos: 0\n retain: false", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Effect Delay", "room": null, "type": "input_number", "id": { "entity_id": "input_number.effect_delay", "device_id": null } } ] }, { "id": "lights_indoor_on_at_coming_home_or_sunset", "automation": "- alias: lights_indoor_on_at_coming_home_or_sunset\n id: lights_indoor_on_at_coming_home_or_sunset\n triggers:\n - trigger: state\n entity_id: group.family\n to: home\n - trigger: sun\n event: sunset\n offset: 00:00:00\n - trigger: event\n event_type: bosch_shc.event\n event_data:\n event_type: SCENARIO\n event_subtype: Licht an\n conditions:\n - condition: state\n alias: process only on production server\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: sun\n after: sunset\n after_offset: 00:00:00\n - condition: time\n before: input_datetime.sleep\n - condition: or\n conditions:\n - condition: state\n entity_id: group.family\n state: home\n - condition: state\n entity_id: input_boolean.light_simulation\n state: 'on'\n actions:\n - action: homeassistant.turn_on\n target:\n entity_id:\n - light.automatic_indoor_lights_immediatly_switched_off\n - light.automatic_indoor_lights_delayed_switched_off", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "family group", "room": null, "type": "group", "id": { "entity_id": "group.family", "device_id": null } }, { "name": "Light Simulation", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.light_simulation", "device_id": null } }, { "name": "Sleep", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.sleep", "device_id": null } }, { "name": "Automatic indoor lights delayed switched off", "room": null, "type": "light", "id": { "entity_id": "light.automatic_indoor_lights_delayed_switched_off", "device_id": null } }, { "name": "Automatic indoor lights immediatly switched off", "room": null, "type": "light", "id": { "entity_id": "light.automatic_indoor_lights_immediatly_switched_off", "device_id": null } } ] }, { "id": "lights_indoor_by_night_on_at_coming_home", "automation": "- alias: lights_indoor_by_night_on_at_coming_home\n id: lights_indoor_by_night_on_at_coming_home\n triggers:\n - trigger: state\n entity_id: group.family\n to: home\n - trigger: event\n event_type: bosch_shc.event\n event_data:\n event_type: SCENARIO\n event_subtype: Licht an\n conditions:\n - condition: state\n alias: process only on production server\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: sun\n after: sunset\n after_offset: 00:00:00\n - condition: time\n after: input_datetime.sleep\n before: input_datetime.nightlight_end\n - condition: state\n entity_id: group.family\n state: home\n actions:\n - action: homeassistant.turn_on\n target:\n entity_id: light.automatic_indoor_lights_by_night\n - delay:\n minutes: '{{ states ( ''input_number.nightlight_duration'' ) | int }}'\n - action: homeassistant.turn_off\n target:\n entity_id: light.automatic_indoor_lights_by_night", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "family group", "room": null, "type": "group", "id": { "entity_id": "group.family", "device_id": null } }, { "name": "Nightlight End", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.nightlight_end", "device_id": null } }, { "name": "Sleep", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.sleep", "device_id": null } }, { "name": "Nightlight Duration", "room": null, "type": "input_number", "id": { "entity_id": "input_number.nightlight_duration", "device_id": null } }, { "name": "Automatic indoor lights by night", "room": null, "type": "light", "id": { "entity_id": "light.automatic_indoor_lights_by_night", "device_id": null } } ] }, { "id": "lights_indoor_off_at_getting_out_or_sunrise", "automation": "- alias: lights_indoor_off_at_getting_out_or_sunrise\n id: lights_indoor_off_at_getting_out_or_sunrise\n triggers:\n - trigger: state\n entity_id: group.family\n to: not_home\n for:\n minutes: 1\n - trigger: sun\n event: sunrise\n offset: +00:00:00\n - trigger: event\n event_type: bosch_shc.event\n event_data:\n event_type: SCENARIO\n event_subtype: Licht aus\n conditions:\n - condition: state\n alias: process only on production server\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - action: scene.turn_on\n target:\n entity_id: scene.kitchen_background_light\n - service: homeassistant.turn_off\n target:\n entity_id:\n - light.automatic_indoor_lights_immediatly_switched_off\n - light.automatic_indoor_lights_delayed_switched_off\n - light.automatic_indoor_lights_immediatly_switched_off_extra\n - light.automatic_indoor_lights_delayed_switched_off_extra\n - light.automatic_indoor_lights_sunrise_switched_off_extra", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "family group", "room": null, "type": "group", "id": { "entity_id": "group.family", "device_id": null } }, { "name": "Automatic indoor lights delayed switched off", "room": null, "type": "light", "id": { "entity_id": "light.automatic_indoor_lights_delayed_switched_off", "device_id": null } }, { "name": "Automatic indoor lights delayed switched off extra", "room": null, "type": "light", "id": { "entity_id": "light.automatic_indoor_lights_delayed_switched_off_extra", "device_id": null } }, { "name": "Automatic indoor lights immediatly switched off", "room": null, "type": "light", "id": { "entity_id": "light.automatic_indoor_lights_immediatly_switched_off", "device_id": null } }, { "name": "Automatic indoor lights immediatly switched off extra", "room": null, "type": "light", "id": { "entity_id": "light.automatic_indoor_lights_immediatly_switched_off_extra", "device_id": null } }, { "name": "Automatic indoor lights sunrise switched off extra", "room": null, "type": "light", "id": { "entity_id": "light.automatic_indoor_lights_sunrise_switched_off_extra", "device_id": null } }, { "name": "Kitchen background light", "room": "kitchen", "type": "scene", "id": { "entity_id": "scene.kitchen_background_light", "device_id": null } } ] }, { "id": "lights_indoor_off_when_tv_switched_off", "automation": "- alias: lights_indoor_off_when_tv_switched_off\n id: lights_indoor_off_when_tv_switched_off\n triggers:\n trigger: state\n entity_id: remote.sony_kd_55ag9\n from: 'on'\n to: 'off'\n for:\n minutes: 1\n conditions:\n - condition: state\n alias: process only on production server\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: time\n after: input_datetime.tv_off_period_start\n before: input_datetime.tv_off_period_end\n actions:\n - delay:\n minutes: '{{ states ( ''input_number.tvoff_lightsoff_delay1'' ) | int - 1 }}'\n - action: scene.turn_on\n target:\n entity_id: scene.kitchen_background_light\n - action: homeassistant.turn_off\n target:\n entity_id:\n - light.automatic_indoor_lights_immediatly_switched_off\n - light.automatic_indoor_lights_immediatly_switched_off_extra\n - delay:\n minutes: '{{ ( states ( ''input_number.tvoff_lightsoff_delay2'' ) | int - states\n ( ''input_number.tvoff_lightsoff_delay1'' ) | int ) }}'\n - action: homeassistant.turn_off\n target:\n entity_id:\n - light.automatic_indoor_lights_delayed_switched_off\n - light.automatic_indoor_lights_delayed_switched_off_extra\n - switch.fernseher", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "sony kd 55ag9 remote", "room": null, "type": "remote", "id": { "entity_id": "remote.sony_kd_55ag9", "device_id": null } }, { "name": "TV Off Period End", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.tv_off_period_end", "device_id": null } }, { "name": "TV Off Period Start", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.tv_off_period_start", "device_id": null } }, { "name": "TV off lights off delay 1", "room": null, "type": "input_number", "id": { "entity_id": "input_number.tvoff_lightsoff_delay1", "device_id": null } }, { "name": "TV off lights off delay 2", "room": null, "type": "input_number", "id": { "entity_id": "input_number.tvoff_lightsoff_delay2", "device_id": null } }, { "name": "Automatic indoor lights delayed switched off", "room": null, "type": "light", "id": { "entity_id": "light.automatic_indoor_lights_delayed_switched_off", "device_id": null } }, { "name": "Automatic indoor lights delayed switched off extra", "room": null, "type": "light", "id": { "entity_id": "light.automatic_indoor_lights_delayed_switched_off_extra", "device_id": null } }, { "name": "Automatic indoor lights immediatly switched off", "room": null, "type": "light", "id": { "entity_id": "light.automatic_indoor_lights_immediatly_switched_off", "device_id": null } }, { "name": "Automatic indoor lights immediatly switched off extra", "room": null, "type": "light", "id": { "entity_id": "light.automatic_indoor_lights_immediatly_switched_off_extra", "device_id": null } }, { "name": "Kitchen background light", "room": "kitchen", "type": "scene", "id": { "entity_id": "scene.kitchen_background_light", "device_id": null } }, { "name": "Fernseher", "room": null, "type": "switch", "id": { "entity_id": "switch.fernseher", "device_id": null } } ] }, { "id": "lights_indoor_off_after_random_delay", "automation": "- alias: lights_indoor_off_after_random_delay\n id: lights_indoor_off_after_random_delay\n triggers:\n - trigger: time\n at: input_datetime.sleep\n conditions:\n - condition: state\n alias: process only on production server\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: state\n entity_id: input_boolean.light_simulation\n state: 'on'\n actions:\n - delay:\n minutes: '{{ range ( 0, states ( ''input_number.max_random_off_duration'' )\n | int ) | random | int }}'\n - action: scene.turn_on\n target:\n entity_id: scene.kitchen_background_light\n - action: homeassistant.turn_off\n target:\n entity_id:\n - light.automatic_indoor_lights_immediatly_switched_off\n - light.automatic_indoor_lights_delayed_switched_off\n - light.automatic_indoor_lights_immediatly_switched_off_extra\n - light.automatic_indoor_lights_delayed_switched_off_extra", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Light Simulation", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.light_simulation", "device_id": null } }, { "name": "Sleep", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.sleep", "device_id": null } }, { "name": "Max Random Off Duration", "room": null, "type": "input_number", "id": { "entity_id": "input_number.max_random_off_duration", "device_id": null } }, { "name": "Automatic indoor lights delayed switched off", "room": null, "type": "light", "id": { "entity_id": "light.automatic_indoor_lights_delayed_switched_off", "device_id": null } }, { "name": "Automatic indoor lights delayed switched off extra", "room": null, "type": "light", "id": { "entity_id": "light.automatic_indoor_lights_delayed_switched_off_extra", "device_id": null } }, { "name": "Automatic indoor lights immediatly switched off", "room": null, "type": "light", "id": { "entity_id": "light.automatic_indoor_lights_immediatly_switched_off", "device_id": null } }, { "name": "Automatic indoor lights immediatly switched off extra", "room": null, "type": "light", "id": { "entity_id": "light.automatic_indoor_lights_immediatly_switched_off_extra", "device_id": null } }, { "name": "Kitchen background light", "room": "kitchen", "type": "scene", "id": { "entity_id": "scene.kitchen_background_light", "device_id": null } } ] }, { "id": "lights_indoor_simulation_off_at_coming_home", "automation": "- alias: lights_indoor_simulation_off_at_coming_home\n id: lights_indoor_simulation_off_at_coming_home\n triggers:\n - trigger: state\n entity_id: group.family\n to: home\n conditions:\n - condition: state\n entity_id: input_boolean.light_simulation\n state: 'on'\n actions:\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.light_simulation", "config": [ { "name": "family group", "room": null, "type": "group", "id": { "entity_id": "group.family", "device_id": null } }, { "name": "Light Simulation", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.light_simulation", "device_id": null } } ] }, { "id": "lights_indoor_attic_light_toggle", "automation": "- alias: lights_indoor_attic_light_toggle\n id: lights_indoor_attic_light_toggle\n triggers:\n - trigger: state\n entity_id: binary_sensor.dachboden\n conditions:\n - condition: state\n alias: process only on production server\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - action: light.turn_{{ 'on' if trigger.to_state.state == 'on' else 'off' }}\n target:\n entity_id: light.shelly_dachboden", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Dachboden", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.dachboden", "device_id": null } }, { "name": "Shelly Dachboden", "room": "dachboden", "type": "light", "id": { "entity_id": "light.shelly_dachboden", "device_id": null } } ] }, { "id": "lights_indoor_off_after_timeout", "automation": "- alias: lights_indoor_off_after_timeout\n id: lights_indoor_off_after_timeout\n triggers:\n - trigger: state\n entity_id:\n - light.deckenlicht_bad\n - light.deckenlicht_dusche\n - light.shelly_treppe\n - light.shelly_flur\n - light.shelly_korridor\n to: 'on'\n for:\n minutes: '{{ states ( ''input_number.light_timeout'' ) | int }}'\n conditions:\n - condition: state\n alias: process only on production server\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: state\n entity_id: sun.sun\n state: above_horizon\n actions:\n - action: light.turn_off\n target:\n entity_id: '{{ trigger.entity_id }}'", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Light Timeout", "room": null, "type": "input_number", "id": { "entity_id": "input_number.light_timeout", "device_id": null } }, { "name": "Deckenlicht Bad", "room": "bad", "type": "light", "id": { "entity_id": "light.deckenlicht_bad", "device_id": null } }, { "name": "Deckenlicht Dusche", "room": "dusche", "type": "light", "id": { "entity_id": "light.deckenlicht_dusche", "device_id": null } }, { "name": "Shelly Flur", "room": "flur", "type": "light", "id": { "entity_id": "light.shelly_flur", "device_id": null } }, { "name": "Shelly Korridor", "room": "korridor", "type": "light", "id": { "entity_id": "light.shelly_korridor", "device_id": null } }, { "name": "Shelly Treppe", "room": "treppe", "type": "light", "id": { "entity_id": "light.shelly_treppe", "device_id": null } }, { "name": "Sun", "room": null, "type": "sun", "id": { "entity_id": "sun.sun", "device_id": null } } ] }, { "id": "lights_indoor_ikea_jetstrom", "automation": "- alias: lights_indoor_ikea_jetstrom\n id: lights_indoor_ikea_jetstrom\n triggers:\n - platform: state\n entity_id:\n - binary_sensor.shelly_bad_input_0\n - binary_sensor.shelly_dusche_input_0\n variables:\n room: '{{ trigger.entity_id.split ( ''_'' ) [2] }}'\n conditions:\n - condition: state\n alias: process only on production server\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - action: light.turn_{{ 'on' if trigger.to_state.state == 'on' else 'off' }}\n target:\n entity_id: light.deckenlicht_{{ room }}", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Shelly Bad Input 0", "room": "Bathroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.shelly_bad_input_0", "device_id": null } }, { "name": "Shelly Dusche Input 0", "room": "Shower", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.shelly_dusche_input_0", "device_id": null } } ] }, { "id": "lights_indoor_lights_on_at_opening_door", "automation": "- alias: lights_indoor_hall_on_at_opening_door\n id: lights_indoor_lights_on_at_opening_door\n triggers:\n - platform: state\n entity_id: binary_sensor.eingangstur\n to: 'on'\n conditions:\n - condition: state\n alias: process only on production server\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: state\n entity_id: sun.sun\n state: below_horizon\n actions:\n - action: light.turn_on\n target:\n entity_id: light.shelly_flur", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Eingangstur", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.eingangstur", "device_id": null } }, { "name": "Shelly Flur", "room": "flur", "type": "light", "id": { "entity_id": "light.shelly_flur", "device_id": null } }, { "name": "Sun", "room": null, "type": "sun", "id": { "entity_id": "sun.sun", "device_id": null } } ] }, { "id": "lights_bedroom_toggle", "automation": "- alias: lights_bedroom_toggle\n id: lights_bedroom_toggle\n triggers:\n - trigger: state\n entity_id: binary_sensor.ttp223_bedroom_touch1\n to: 'on'\n - trigger: state\n entity_id: binary_sensor.ttp223_bedroom_touch2\n to: 'on'\n - trigger: state\n entity_id: binary_sensor.ttp223_bedroom_touch3\n to: 'on'\n - trigger: state\n entity_id: binary_sensor.ttp223_bedroom_touch4\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.touch_bedroom_activated\n state: 'on'\n actions:\n - action: light.toggle\n target:\n entity_id:\n - light.sonoff_bedroom_socket", "config": [ { "name": "TTP223 Bedroom Touch1", "room": "Bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.ttp223_bedroom_touch1", "device_id": null } }, { "name": "TTP223 Bedroom Touch2", "room": "Bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.ttp223_bedroom_touch2", "device_id": null } }, { "name": "TTP223 Bedroom Touch3", "room": "Bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.ttp223_bedroom_touch3", "device_id": null } }, { "name": "TTP223 Bedroom Touch4", "room": "Bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.ttp223_bedroom_touch4", "device_id": null } }, { "name": "Touch Bedroom Activated", "room": "Bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.touch_bedroom_activated", "device_id": null } }, { "name": "Sonoff bedroom socket", "room": "bedroom", "type": "light", "id": { "entity_id": "light.sonoff_bedroom_socket", "device_id": null } } ] }, { "id": "lights_kitchen_desk_toggle", "automation": "- alias: lights_kitchen_desk_toggle\n id: lights_kitchen_desk_toggle\n triggers:\n - trigger: state\n entity_id: binary_sensor.gesture_kitchen\n to: 'on'\n conditions:\n - condition: state\n alias: process only on production server\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: state\n entity_id: input_boolean.gesture_kitchen_activated\n state: 'on'\n actions:\n - if:\n - condition: or\n conditions:\n - condition: state\n entity_id: light.led_kitchen_led\n state: 'off'\n - condition: and\n conditions:\n - condition: state\n entity_id: light.led_kitchen_led\n state: 'on'\n - condition: template\n value_template: '{{ states.light.led_kitchen_led.attributes.color_temp ==\n 500 }}'\n then:\n - action: scene.turn_on\n target:\n entity_id: scene.kitchen_full_light\n else:\n - action: scene.turn_on\n target:\n entity_id: scene.kitchen_background_light\n - if:\n - condition: state\n entity_id: light.shelly_esszimmerschrank2\n state: 'on'\n alias: check for night lights switched on\n then: null\n else:\n - action: light.turn_off\n target:\n entity_id: light.led_kitchen_led", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Gesture Kitchen", "room": "Kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.gesture_kitchen", "device_id": null } }, { "name": "Gesture Kitchen Activated", "room": "Kitchen", "type": "input_boolean", "id": { "entity_id": "input_boolean.gesture_kitchen_activated", "device_id": null } }, { "name": "LED kitchen LED", "room": "kitchen", "type": "light", "id": { "entity_id": "light.led_kitchen_led", "device_id": null } }, { "name": "Shelly Esszimmerschrank2", "room": "esszimmer", "type": "light", "id": { "entity_id": "light.shelly_esszimmerschrank2", "device_id": null } }, { "name": "Kitchen background light", "room": "kitchen", "type": "scene", "id": { "entity_id": "scene.kitchen_background_light", "device_id": null } }, { "name": "Kitchen full light", "room": "kitchen", "type": "scene", "id": { "entity_id": "scene.kitchen_full_light", "device_id": null } } ] }, { "id": "lights_kitchen_desk_on_by_motion", "automation": "- alias: lights_kitchen_desk_on_by_motion\n id: lights_kitchen_desk_on_by_motion\n triggers:\n - trigger: state\n entity_id: binary_sensor.bewegungsmelder1\n to: 'on'\n conditions:\n - condition: state\n alias: process only on production server\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: state\n entity_id: input_boolean.gesture_kitchen_activated\n state: 'on'\n - condition: numeric_state\n entity_id: sensor.bewegungsmelder1_illuminance\n below: input_number.kitchen_desk_illuminance_threshold\n actions:\n - action: scene.turn_on\n target:\n entity_id: scene.kitchen_full_light", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Bewegungsmelder1", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bewegungsmelder1", "device_id": null } }, { "name": "Gesture Kitchen Activated", "room": "Kitchen", "type": "input_boolean", "id": { "entity_id": "input_boolean.gesture_kitchen_activated", "device_id": null } }, { "name": "Kitchen full light", "room": "kitchen", "type": "scene", "id": { "entity_id": "scene.kitchen_full_light", "device_id": null } }, { "name": "Bewegungsmelder1 illuminance", "room": null, "type": "sensor", "id": { "entity_id": "sensor.bewegungsmelder1_illuminance", "device_id": null } } ] }, { "id": "lights_kitchen_desk_off_by_motion", "automation": "- alias: lights_kitchen_desk_off_by_motion\n id: lights_kitchen_desk_off_by_motion\n triggers:\n - trigger: state\n entity_id: binary_sensor.bewegungsmelder1\n to: 'off'\n conditions:\n - condition: state\n entity_id: input_boolean.gesture_kitchen_activated\n state: 'on'\n actions:\n - action: scene.turn_on\n target:\n entity_id: scene.kitchen_background_light\n - if:\n - condition: state\n entity_id: light.shelly_esszimmerschrank2\n state: 'on'\n alias: check for night lights switched on\n then: null\n else:\n - action: light.turn_off\n target:\n entity_id: light.led_kitchen_led", "config": [ { "name": "Bewegungsmelder1", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bewegungsmelder1", "device_id": null } }, { "name": "Gesture Kitchen Activated", "room": "Kitchen", "type": "input_boolean", "id": { "entity_id": "input_boolean.gesture_kitchen_activated", "device_id": null } }, { "name": "LED kitchen LED", "room": "kitchen", "type": "light", "id": { "entity_id": "light.led_kitchen_led", "device_id": null } }, { "name": "Shelly Esszimmerschrank2", "room": "esszimmer", "type": "light", "id": { "entity_id": "light.shelly_esszimmerschrank2", "device_id": null } }, { "name": "Kitchen background light", "room": "kitchen", "type": "scene", "id": { "entity_id": "scene.kitchen_background_light", "device_id": null } } ] }, { "id": "lights_outdoor_on_at_night", "automation": "- alias: lights_outdoor_on_at_night\n id: lights_outdoor_on_at_night\n triggers:\n - trigger: sun\n event: sunset\n offset: 00:00:00\n - trigger: event\n event_type: bosch_shc.event\n event_data:\n event_type: SCENARIO\n event_subtype: Außenlichter an\n conditions:\n - condition: state\n alias: process only on production server\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - action: light.turn_on\n target:\n entity_id:\n - light.automatic_outdoor_lights", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Automatic outdoor lights", "room": null, "type": "light", "id": { "entity_id": "light.automatic_outdoor_lights", "device_id": null } } ] }, { "id": "lights_outdoor_off_at_morning", "automation": "- alias: lights_outdoor_off_at_morning\n id: lights_outdoor_off_at_morning\n triggers:\n - trigger: sun\n event: sunrise\n offset: +00:00:00\n - trigger: event\n event_type: bosch_shc.event\n event_data:\n event_type: SCENARIO\n event_subtype: Außenlichter an\n conditions:\n - condition: state\n alias: process only on production server\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - action: light.turn_off\n target:\n entity_id:\n - light.automatic_outdoor_lights", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Automatic outdoor lights", "room": null, "type": "light", "id": { "entity_id": "light.automatic_outdoor_lights", "device_id": null } } ] }, { "id": "light_indoor_ikea_jetstrom_set_sunrise", "automation": "- alias: light_indoor_ikea_jetstrom_set_sunrise\n id: light_indoor_ikea_jetstrom_set_sunrise\n triggers:\n - trigger: time\n at: 01:00:00\n conditions:\n - condition: state\n alias: process only on production server\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - if:\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'on'\n then:\n - action: adaptive_lighting.change_switch_settings\n data:\n entity_id: switch.adaptive_lighting_ikea_jetstrom\n use_defaults: configuration\n max_sunrise_time: '{{ states ( ''input_datetime.standup_workday'' ) }}'\n else:\n - action: adaptive_lighting.change_switch_settings\n data:\n entity_id: switch.adaptive_lighting_ikea_jetstrom\n use_defaults: configuration", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Workday Sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.workday_sensor", "device_id": null } }, { "name": "Standup Workday", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.standup_workday", "device_id": null } }, { "name": "Adaptive lighting IKEA Jetstrom", "room": null, "type": "switch", "id": { "entity_id": "switch.adaptive_lighting_ikea_jetstrom", "device_id": null } } ] }, { "id": "locks_open_entry_door", "automation": "- alias: locks_open_entry_door\n id: locks_open_entry_door\n triggers:\n - trigger: event\n event_type: bosch_shc.event\n event_data:\n event_type: SCENARIO\n event_subtype: Eingangstür auf\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: state\n entity_id: binary_sensor.eingangstur\n state: 'off'\n actions:\n - action: lock.open\n target:\n entity_id: lock.eingangstur", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "entry door lock", "room": null, "type": "lock", "id": { "entity_id": "lock.eingangstur", "device_id": null } }, { "name": "Eingangstur", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.eingangstur", "device_id": null } } ] }, { "id": "locks_open_garage_door", "automation": "- alias: locks_open_garage_door\n id: locks_open_garage_door\n triggers:\n - trigger: event\n event_type: bosch_shc.event\n event_data:\n event_type: SCENARIO\n event_subtype: Garagentür auf\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: state\n entity_id: binary_sensor.garagentur\n state: 'off'\n actions:\n - action: lock.open\n target:\n entity_id: lock.garagentur\n - delay:\n seconds: 10\n - if:\n - condition: state\n entity_id: binary_sensor.garagentur\n state: 'off'\n then:\n - action: lock.open\n target:\n entity_id: lock.garagentur", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Garagentur", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.garagentur", "device_id": null } }, { "name": "Garagentur", "room": null, "type": "lock", "id": { "entity_id": "lock.garagentur", "device_id": null } } ] }, { "id": "locks_open_postern_door", "automation": "- alias: locks_open_postern_door\n id: locks_open_postern_door\n triggers:\n - trigger: event\n event_type: bosch_shc.event\n event_data:\n event_type: SCENARIO\n event_subtype: Nebentür auf\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: state\n entity_id: binary_sensor.nebentur\n state: 'off'\n actions:\n - action: lock.open\n target:\n entity_id: lock.nebentur", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Nebentur", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.nebentur", "device_id": null } }, { "name": "Nebentür", "room": null, "type": "lock", "id": { "entity_id": "lock.nebentur", "device_id": null } } ] }, { "id": "locks_lock_up_all_doors", "automation": "- alias: locks_lock_up_all_doors\n id: locks_lock_up_all_doors\n triggers:\n - trigger: state\n entity_id: group.family\n to: not_home\n for:\n minutes: '{{ states ( ''input_number.doors_lock_up_after'' ) }}'\n - trigger: state\n entity_id: remote.sony_kd_55ag9\n from: 'on'\n to: 'off'\n for:\n minutes: '{{ states ( ''input_number.doors_lock_up_after'' ) }}'\n - trigger: event\n event_type: bosch_shc.event\n event_data:\n event_type: SCENARIO\n event_subtype: Abschliessen\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - repeat:\n for_each:\n - eingangstur\n - nebentur\n - garagentur\n sequence:\n - if:\n - condition: template\n value_template: '{{ states ( ''binary_sensor.'' + repeat.item ) == ''on''\n }}'\n then:\n - action: script.notify\n data:\n domain: doorlocks\n message: '{{ state_attr ( ''binary_sensor.'' + repeat.item, ''friendly_name''\n ) }} konnte nicht abgeschlossen werden, da diese offen ist.'\n else:\n - if:\n - condition: template\n value_template: '{{ states ( ''lock.'' + repeat.item ) in ( ''unknown'',\n ''unavailable'' ) }}'\n then:\n - action: script.notify\n data:\n domain: doorlocks\n message: '{{ state_attr ( ''binary_sensor.'' + repeat.item, ''friendly_name''\n ) }} konnte nicht abgeschlossen werden, da kein Schloss verfügbar\n ist.'\n else:\n - action: lock.lock\n target:\n entity_id: lock.{{ repeat.item }}", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "family group", "room": null, "type": "group", "id": { "entity_id": "group.family", "device_id": null } }, { "name": "sony kd 55ag9 remote", "room": null, "type": "remote", "id": { "entity_id": "remote.sony_kd_55ag9", "device_id": null } } ] }, { "id": "automation_sungrow_inverter_start_stop", "automation": "- id: automation_sungrow_inverter_start_stop\n alias: sungrow inverter start stop\n description: Starts/ Stops the inverter\n trigger:\n - platform: state\n entity_id:\n - input_select.set_sg_start_stop_mode\n condition: []\n variables:\n sg_start: 207\n sg_stop: 206\n action:\n - service: modbus.write_register\n data_template:\n hub: SungrowSHx\n slave: secret sungrow_modbus_slave\n address: 12999\n value: '{% if is_state(''input_select.set_sg_start_stop_mode'', ''Start'') %}\n {{sg_start}} {% else %} {{sg_stop}} {% endif %}\n\n '\n mode: single", "config": [ { "name": "Set SG start stop mode", "room": null, "type": "input_select", "id": { "entity_id": "input_select.set_sg_start_stop_mode", "device_id": null } } ] }, { "id": "automation_sungrow_inverter_update_max_soc", "automation": "- id: automation_sungrow_inverter_update_max_soc\n alias: sungrow inverter update max SoC\n description: Updates Sungrow max Soc holding register\n trigger:\n - platform: state\n entity_id:\n - input_number.set_sg_max_soc\n condition: []\n action:\n - service: modbus.write_register\n data_template:\n hub: SungrowSHx\n slave: secret sungrow_modbus_slave\n address: 13057\n value: '{{ states(''input_number.set_sg_max_soc'') | int *10}}'\n mode: single", "config": [ { "name": "SG max SOC", "room": null, "type": "input_number", "id": { "entity_id": "input_number.set_sg_max_soc", "device_id": null } } ] }, { "id": "automation_sungrow_inverter_update_min_soc", "automation": "- id: automation_sungrow_inverter_update_min_soc\n alias: sungrow inverter update min SoC\n description: Updates Sungrow min Soc holding register\n trigger:\n - platform: state\n entity_id:\n - input_number.set_sg_min_soc\n condition: []\n action:\n - service: modbus.write_register\n data_template:\n hub: SungrowSHx\n slave: secret sungrow_modbus_slave\n address: 13058\n value: '{{ states(''input_number.set_sg_min_soc'') | int *10}}'\n mode: single", "config": [ { "name": "SG min SOC", "room": null, "type": "input_number", "id": { "entity_id": "input_number.set_sg_min_soc", "device_id": null } } ] }, { "id": "automation_sungrow_inverter_update_reserved_soc_for_backup", "automation": "- id: automation_sungrow_inverter_update_reserved_soc_for_backup\n alias: sungrow inverter update reserved soc for backup\n description: Updates reserved SoC for backup register\n trigger:\n - platform: state\n entity_id:\n - input_number.set_sg_reserved_soc_for_backup\n condition: []\n action:\n - service: modbus.write_register\n data_template:\n hub: SungrowSHx\n slave: secret sungrow_modbus_slave\n address: 13099\n value: '{{ states(''input_number.set_sg_reserved_soc_for_backup'') | int}}'\n mode: single", "config": [ { "name": "SG reserved SOC for backup", "room": null, "type": "input_number", "id": { "entity_id": "input_number.set_sg_reserved_soc_for_backup", "device_id": null } } ] }, { "id": "automation_sungrow_inverter_update_battery_forced_charge_discharge_cmd", "automation": "- id: automation_sungrow_inverter_update_battery_forced_charge_discharge_cmd\n alias: sungrow inverter update battery forced charge discharge cmd\n description: Updates Sungrow holding register for battery forced charge discharge\n command\n trigger:\n - platform: state\n entity_id:\n - input_select.set_sg_battery_forced_charge_discharge_cmd\n condition: []\n variables:\n ems_forced_charge: 170\n ems_forced_discharge: 187\n ems_stop_default: 204\n action:\n - service: modbus.write_register\n data_template:\n hub: SungrowSHx\n slave: secret sungrow_modbus_slave\n address: 13050\n value: '{% if is_state(''input_select.set_sg_battery_forced_charge_discharge_cmd'',\n ''Stop (default)'') %} {{ems_stop_default}} {% elif is_state(''input_select.set_sg_battery_forced_charge_discharge_cmd'',\n ''Forced charge'') %} {{ems_forced_charge}} {% elif is_state(''input_select.set_sg_battery_forced_charge_discharge_cmd'',\n ''Forced discharge'') %} {{ems_forced_discharge}} {% else %} {{0xCC}} {% endif\n %}\n\n '\n mode: single", "config": [ { "name": "Set SG battery forced charge discharge cmd", "room": null, "type": "input_select", "id": { "entity_id": "input_select.set_sg_battery_forced_charge_discharge_cmd", "device_id": null } } ] }, { "id": "automation_sungrow_inverter_update_ems_mode", "automation": "- id: automation_sungrow_inverter_update_ems_mode\n alias: sungrow inverter update EMS mode\n description: Updates EMS mode\n trigger:\n - platform: state\n entity_id:\n - input_select.set_sg_ems_mode\n condition: []\n variables:\n ems_mode_self_consume: 0\n ems_mode_forced: 2\n ems_mode_external: 3\n ems_mode_vpp: 4\n ems_mode_microgrid: 8\n action:\n - service: modbus.write_register\n data_template:\n hub: SungrowSHx\n slave: secret sungrow_modbus_slave\n address: 13049\n value: '{% if is_state(''input_select.set_sg_ems_mode'', ''Self-consumption\n mode (default)'') %} {{ems_mode_self_consume}} {% elif is_state(''input_select.set_sg_ems_mode'',\n ''Forced mode'') %} {{ems_mode_forced}} {% elif is_state(''input_select.set_sg_ems_mode'',\n ''External EMS'') %} {{ems_mode_external}} {% elif is_state(''input_select.set_sg_ems_mode'',\n ''VPP'') %} {{ems_mode_vpp}} {% elif is_state(''input_select.set_sg_ems_mode'',\n ''MicroGrid'') %} {{ems_mode_microgrid}} {% else %} 0 {% endif %}\n\n '\n mode: single", "config": [ { "name": "Set SG EMS mode", "room": null, "type": "input_select", "id": { "entity_id": "input_select.set_sg_ems_mode", "device_id": null } } ] }, { "id": "automation_sungrow_inverter_update_battery_forced_charge_discharge_power", "automation": "- id: automation_sungrow_inverter_update_battery_forced_charge_discharge_power\n alias: sungrow inverter update battery forced charge discharge power\n description: Sets battery forced charge discharge power\n trigger:\n - platform: state\n entity_id:\n - input_number.set_sg_forced_charge_discharge_power\n condition: []\n action:\n - service: modbus.write_register\n data_template:\n hub: SungrowSHx\n slave: secret sungrow_modbus_slave\n address: 13051\n value: '{{ states(''input_number.set_sg_forced_charge_discharge_power'') | int}}'\n mode: single", "config": [ { "name": "SG forced charge discharge power", "room": null, "type": "input_number", "id": { "entity_id": "input_number.set_sg_forced_charge_discharge_power", "device_id": null } } ] }, { "id": "automation_sungrow_inverter_update_battery_max_charge_power", "automation": "- id: automation_sungrow_inverter_update_battery_max_charge_power\n alias: sungrow inverter update battery max charge power\n description: Sets battery max charge power\n trigger:\n - platform: state\n entity_id:\n - input_number.set_sg_battery_max_charge_power\n condition: []\n action:\n - service: modbus.write_register\n data_template:\n hub: SungrowSHx\n slave: secret sungrow_modbus_slave\n address: 33046\n value: '{{ states(''input_number.set_sg_battery_max_charge_power'') |float\n /10 |int}}'\n mode: single", "config": [ { "name": "SG battery max charge power", "room": null, "type": "input_number", "id": { "entity_id": "input_number.set_sg_battery_max_charge_power", "device_id": null } } ] }, { "id": "automation_sungrow_inverter_update_battery_max_discharge_power", "automation": "- id: automation_sungrow_inverter_update_battery_max_discharge_power\n alias: sungrow inverter update battery max discharge power\n description: Sets battery max discharge power\n trigger:\n - platform: state\n entity_id:\n - input_number.set_sg_battery_max_discharge_power\n condition: []\n action:\n - service: modbus.write_register\n data_template:\n hub: SungrowSHx\n slave: secret sungrow_modbus_slave\n address: 33047\n value: '{{ states(''input_number.set_sg_battery_max_discharge_power'') |float\n /10 |int}}'\n mode: single", "config": [ { "name": "SG battery max discharge power", "room": null, "type": "input_number", "id": { "entity_id": "input_number.set_sg_battery_max_discharge_power", "device_id": null } } ] }, { "id": "automation_sungrow_inverter_update_battery_charging_start_power", "automation": "- id: automation_sungrow_inverter_update_battery_charging_start_power\n alias: sungrow inverter update battery charging start power\n description: Sets battery charging start power\n trigger:\n - platform: state\n entity_id:\n - input_number.set_sg_battery_charging_start_power\n condition: []\n action:\n - service: modbus.write_register\n data_template:\n hub: SungrowSHx\n slave: secret sungrow_modbus_slave\n address: 33148\n value: '{{ states(''input_number.set_sg_battery_charging_start_power'') |float\n /10 |int}}'\n mode: single", "config": [ { "name": "Set SG Battery Charging Start Power", "room": null, "type": "input_number", "id": { "entity_id": "input_number.set_sg_battery_charging_start_power", "device_id": null } } ] }, { "id": "automation_sungrow_inverter_update_battery_discharging_start_power", "automation": "- id: automation_sungrow_inverter_update_battery_discharging_start_power\n alias: sungrow inverter update battery discharging start power\n description: Sets battery discharging start power\n trigger:\n - platform: state\n entity_id:\n - input_number.set_sg_battery_discharging_start_power\n condition: []\n action:\n - service: modbus.write_register\n data_template:\n hub: SungrowSHx\n slave: secret sungrow_modbus_slave\n address: 33149\n value: '{{ states(''input_number.set_sg_battery_discharging_start_power'') |float\n /10 | int}}'\n mode: single", "config": [ { "name": "SG battery discharging start power", "room": null, "type": "input_number", "id": { "entity_id": "input_number.set_sg_battery_discharging_start_power", "device_id": null } } ] }, { "id": "notifications_open_doors_and_windows", "automation": "- alias: notifications_open_doors_and_windows\n id: notifications_open_doors_and_windows\n triggers:\n trigger: state\n entity_id: media_player.sony_kd_55ag9\n to: 'on'\n for:\n minutes: '{{ states ( ''input_number.notification_tv_on_delay'' ) | int }}'\n conditions: null\n variables:\n msg: \"{% set ns = namespace ( msg1 = '', msg2 = '' ) %}\\n{% for state in states.binary_sensor\\\n \\ \\n | selectattr ( 'attributes.device_class', 'defined' ) \\n | selectattr\\\n \\ ( 'attributes.device_class', 'eq', 'window' )\\n%}\\n {% if state.state ==\\\n \\ 'on' %}\\n {% if ns.msg1 == '' %}\\n {% set ns.msg1 = state.attributes.friendly_name\\\n \\ %}\\n {% else %}\\n {% set ns.msg1 = ns.msg1 + ', ' + state.attributes.friendly_name\\\n \\ %}\\n {% endif %}\\n {% endif %}\\n{% endfor %}\\n{% if ns.msg1 != '' %}\\n\\\n \\ {% set ns.msg1 = 'Offene Fenster: ' + ns.msg1 + \\\" | \\\" %}\\n{% endif %}\\n\\\n {% for state in states.binary_sensor \\n | selectattr ( 'attributes.device_class',\\\n \\ 'defined' ) \\n | selectattr ( 'attributes.device_class', 'eq', 'door' )\\n\\\n %}\\n {% if state.state == 'on' %}\\n {% if ns.msg2 == '' %}\\n {% set\\\n \\ ns.msg2 = state.attributes.friendly_name %}\\n {% else %}\\n {% set\\\n \\ ns.msg2 = ns.msg2 + ', ' + state.attributes.friendly_name %}\\n {% endif\\\n \\ %}\\n {% endif %}\\n{% endfor %}\\n{% if ns.msg2 != '' %}\\n {% set ns.msg2\\\n \\ = '\\\\nOffene Türen: ' + ns.msg2 %}\\n{% endif %}\\n{{ ns.msg1 }}\\n{{ ns.msg2\\\n \\ }}\"\n actions:\n - action: script.notify\n data:\n domain: open_doors_and_windows\n message: '{{ msg }}'", "config": [ { "name": "Notification TV On Delay", "room": null, "type": "input_number", "id": { "entity_id": "input_number.notification_tv_on_delay", "device_id": null } }, { "name": "Sony KD 55AG9", "room": null, "type": "media_player", "id": { "entity_id": "media_player.sony_kd_55ag9", "device_id": null } } ] }, { "id": "notifications_nodestate", "automation": "- alias: notifications_nodestate\n id: notifications_nodestate\n mode: queued\n triggers:\n - trigger: state\n alias: When any nodestate changes\n entity_id:\n - binary_sensor.nodestate_dht22_lounge\n - binary_sensor.nodestate_dht22_terrace\n - binary_sensor.nodestate_dht22_roof\n - binary_sensor.nodestate_relay_garage\n - binary_sensor.nodestate_sonoff_bedroom\n - binary_sensor.nodestate_ttp223_bedroom\n - binary_sensor.nodestate_led_kitchen\n - binary_sensor.nodestate_led_kitchen2\n - binary_sensor.nodestate_gesture_kitchen\n - binary_sensor.nodestate_sonoff_gallery1\n - binary_sensor.nodestate_sonoff_corridor\n - binary_sensor.nodestate_electricity_utilityroom\n - binary_sensor.nodestate_pixel_kitchen\n - binary_sensor.nodestate_ds18b20_groundfloor\n - binary_sensor.nodestate_ds18b20_firstfloor\n - binary_sensor.nodestate_gas_utilityroom\n - binary_sensor.nodestate_led_corridor\n - binary_sensor.nodestate_rain_garden\n - binary_sensor.nodestate_dht11_utilityroom\n - binary_sensor.nodestate_ds18b20_pool\n - binary_sensor.nodestate_ds18b20_brewery\n - binary_sensor.nodestate_spindle_fermenter\n - binary_sensor.nodestate_xmastree_dining\n - binary_sensor.nodestate_relay_garden\n - binary_sensor.nodestate_ws2812_terrace1\n - binary_sensor.nodestate_ws2812_terrace2\n - binary_sensor.nodestate_ws2812_xmasstar\n - binary_sensor.nodestate_relay_hydrotower\n - binary_sensor.nodestate_ws2812_x1c\n - binary_sensor.nodestate_pitouch_corridor\n - binary_sensor.nodestate_tasmota\n - binary_sensor.nodestate_ems_esp\n - binary_sensor.nodestate_watermeter\n to: 'off'\n conditions:\n - condition: state\n alias: process only on production server\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - action: script.notify\n data:\n domain: nodestate\n message: '{{ trigger.entity_id [24:] }} is not alive'", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Nodestate DHT11 Utilityroom", "room": "Utility Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.nodestate_dht11_utilityroom", "device_id": null } }, { "name": "Nodestate DHT22 Lounge", "room": "Lounge", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.nodestate_dht22_lounge", "device_id": null } }, { "name": "Nodestate DHT22 Roof", "room": "Roof", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.nodestate_dht22_roof", "device_id": null } }, { "name": "Nodestate DHT22 Terrace", "room": "Terrace", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.nodestate_dht22_terrace", "device_id": null } }, { "name": "Nodestate DS18B20 Brewery", "room": "Brewery", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.nodestate_ds18b20_brewery", "device_id": null } }, { "name": "Nodestate DS18B20 Firstfloor", "room": "First Floor", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.nodestate_ds18b20_firstfloor", "device_id": null } }, { "name": "Nodestate DS18B20 Groundfloor", "room": "Ground Floor", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.nodestate_ds18b20_groundfloor", "device_id": null } }, { "name": "Nodestate DS18B20 Pool", "room": "Pool", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.nodestate_ds18b20_pool", "device_id": null } }, { "name": "Nodestate Electricity Utilityroom", "room": "Utility Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.nodestate_electricity_utilityroom", "device_id": null } }, { "name": "Nodestate EMS ESP", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.nodestate_ems_esp", "device_id": null } }, { "name": "Nodestate Gas Utilityroom", "room": "Utility Room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.nodestate_gas_utilityroom", "device_id": null } }, { "name": "Nodestate Gesture Kitchen", "room": "Kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.nodestate_gesture_kitchen", "device_id": null } }, { "name": "Nodestate LED Corridor", "room": "Corridor", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.nodestate_led_corridor", "device_id": null } }, { "name": "Nodestate LED Kitchen", "room": "Kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.nodestate_led_kitchen", "device_id": null } }, { "name": "Nodestate LED Kitchen2", "room": "Kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.nodestate_led_kitchen2", "device_id": null } }, { "name": "Nodestate PiTouch Corridor", "room": "Corridor", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.nodestate_pitouch_corridor", "device_id": null } }, { "name": "Nodestate Pixel Kitchen", "room": "Kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.nodestate_pixel_kitchen", "device_id": null } }, { "name": "Nodestate Rain Garden", "room": "Garden", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.nodestate_rain_garden", "device_id": null } }, { "name": "Nodestate Relay Garage", "room": "Garage", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.nodestate_relay_garage", "device_id": null } }, { "name": "Nodestate Relay Garden", "room": "Garden", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.nodestate_relay_garden", "device_id": null } }, { "name": "Nodestate Relay Hydrotower", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.nodestate_relay_hydrotower", "device_id": null } }, { "name": "Nodestate Sonoff Bedroom", "room": "Bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.nodestate_sonoff_bedroom", "device_id": null } }, { "name": "Nodestate Sonoff Corridor", "room": "Corridor", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.nodestate_sonoff_corridor", "device_id": null } }, { "name": "Nodestate Sonoff Gallery1", "room": "Gallery", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.nodestate_sonoff_gallery1", "device_id": null } }, { "name": "Nodestate Spindle Fermenter", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.nodestate_spindle_fermenter", "device_id": null } }, { "name": "Nodestate Tasmota", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.nodestate_tasmota", "device_id": null } }, { "name": "Nodestate TTP223 Bedroom", "room": "Bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.nodestate_ttp223_bedroom", "device_id": null } }, { "name": "Nodestate Watermeter", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.nodestate_watermeter", "device_id": null } }, { "name": "Nodestate WS2812 Terrace1", "room": "Terrace", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.nodestate_ws2812_terrace1", "device_id": null } }, { "name": "Nodestate WS2812 Terrace2", "room": "Terrace", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.nodestate_ws2812_terrace2", "device_id": null } }, { "name": "Nodestate WS2812 X1C", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.nodestate_ws2812_x1c", "device_id": null } }, { "name": "Nodestate Xmasstar", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.nodestate_ws2812_xmasstar", "device_id": null } }, { "name": "Nodestate Xmas Tree Dining", "room": "Dining", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.nodestate_xmastree_dining", "device_id": null } } ] }, { "id": "notifications_garage_flood", "automation": "- alias: notifications_garage_flood\n id: notifications_garage_flood\n triggers:\n - trigger: state\n entity_id: binary_sensor.wassermelder\n to: 'on'\n conditions: null\n actions:\n - action: script.notify\n data:\n domain: flood\n message: Überschwemmung erkannt", "config": [ { "name": "Wassermelder", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.wassermelder", "device_id": null } } ] }, { "id": "notifications_mower_error", "automation": "- alias: notifications_mower_error\n id: notifications_mower_error\n triggers:\n - trigger: state\n entity_id: lawn_mower.sileno\n to:\n - error\n - unavailable\n - unknown\n conditions: null\n actions:\n - action: script.notify\n data:\n domain: mower\n message: 'Rasenmäher Fehler: {{ trigger.to_state.state }}'", "config": [ { "name": "Sileno lawn mower", "room": null, "type": "lawn_mower", "id": { "entity_id": "lawn_mower.sileno", "device_id": null } } ] }, { "id": "notifications_battery_low", "automation": "- alias: notifications_battery_low\n id: notifications_battery_low\n triggers:\n - trigger: state\n entity_id: group.batteries\n to: 'on'\n conditions: null\n variables:\n battery: '{{ expand ( ''group.batteries'' ) | selectattr ( ''state'', ''eq'',\n ''on'' ) | map ( attribute = ''attributes.friendly_name'' ) | map(''regex_replace'',\n ''^(\\S+)\\s(\\S+).*'', ''\\1 \\2'') | list | join ( '', '' ) }}'\n actions:\n - action: script.notify\n data:\n domain: battery\n message: 'Niedriger Batteriestand: {{ battery }}'", "config": [ { "name": "Batteries Group", "room": null, "type": "group", "id": { "entity_id": "group.batteries", "device_id": null } } ] }, { "id": "notifications_kia_ev6_warning", "automation": "- alias: notifications_kia_ev6_warning\n id: notifications_kia_ev6_warning\n triggers:\n - trigger: state\n entity_id: group.ev6\n to: 'on'\n conditions: null\n variables:\n warning: '{{ expand ( ''group.ev6'' ) | selectattr ( ''state'', ''eq'', ''on''\n ) | map ( attribute = ''attributes.friendly_name'' ) | map(''regex_replace'',\n ''^(\\S+\\s)(.*)'', ''\\2'' ) | list | join ( '', '' ) }}'\n actions:\n - action: script.notify\n data:\n domain: kia_ev6\n message: 'Kia EV6 Warnung: {{ warning }}'", "config": [ { "name": "EV6 Group", "room": null, "type": "group", "id": { "entity_id": "group.ev6", "device_id": null } } ] }, { "id": "pitouch_screen_on", "automation": "- alias: pitouch_screen_on\n id: pitouch_screen_on\n triggers:\n - trigger: time\n at: input_datetime.standup_workday\n - trigger: time\n at: input_datetime.standup_weekend\n - trigger: state\n entity_id: group.family\n to: home\n conditions:\n - condition: and\n conditions:\n - condition: state\n entity_id: group.family\n state: home\n - condition: or\n conditions:\n - condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'on'\n - condition: time\n after: input_datetime.standup_workday\n before: input_datetime.sleep\n - condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'off'\n - condition: time\n after: input_datetime.standup_weekend\n before: input_datetime.sleep\n actions:\n - action: light.turn_on\n target:\n entity_id:\n - light.pitouch_corridor_screen", "config": [ { "name": "family group", "room": null, "type": "group", "id": { "entity_id": "group.family", "device_id": null } }, { "name": "Workday Sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.workday_sensor", "device_id": null } }, { "name": "Sleep", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.sleep", "device_id": null } }, { "name": "Standup Weekend", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.standup_weekend", "device_id": null } }, { "name": "Standup Workday", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.standup_workday", "device_id": null } }, { "name": "Pitouch corridor screen", "room": "corridor", "type": "light", "id": { "entity_id": "light.pitouch_corridor_screen", "device_id": null } } ] }, { "id": "pitouch_screen_off", "automation": "- alias: pitouch_screen_off\n id: pitouch_screen_off\n triggers:\n - trigger: time\n at: input_datetime.pitouch_off\n - trigger: state\n entity_id: group.family\n to: not_home\n actions:\n - action: light.turn_off\n target:\n entity_id:\n - light.pitouch_corridor_screen", "config": [ { "name": "family group", "room": null, "type": "group", "id": { "entity_id": "group.family", "device_id": null } }, { "name": "PiTouch Off", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.pitouch_off", "device_id": null } }, { "name": "Pitouch corridor screen", "room": "corridor", "type": "light", "id": { "entity_id": "light.pitouch_corridor_screen", "device_id": null } } ] }, { "id": "pitouch_screen_off_after_tv_off", "automation": "- alias: pitouch_screen_off_after_tv_off\n id: pitouch_screen_off_after_tv_off\n triggers:\n trigger: state\n entity_id: media_player.sony_kd_55ag9\n from: 'on'\n to: 'off'\n for:\n minutes: 1\n conditions:\n - condition: time\n after: input_datetime.tv_off_period_start\n before: input_datetime.tv_off_period_end\n actions:\n - delay:\n minutes: '{{ states ( ''input_number.pitouch_delay'' ) | int }}'\n - action: light.turn_off\n target:\n entity_id:\n - light.pitouch_corridor_screen", "config": [ { "name": "TV Off Period End", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.tv_off_period_end", "device_id": null } }, { "name": "TV Off Period Start", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.tv_off_period_start", "device_id": null } }, { "name": "PiTouch Delay", "room": null, "type": "input_number", "id": { "entity_id": "input_number.pitouch_delay", "device_id": null } }, { "name": "Pitouch corridor screen", "room": "corridor", "type": "light", "id": { "entity_id": "light.pitouch_corridor_screen", "device_id": null } }, { "name": "Sony KD 55AG9", "room": null, "type": "media_player", "id": { "entity_id": "media_player.sony_kd_55ag9", "device_id": null } } ] }, { "id": "set_default_values", "automation": "- alias: set_default_values\n id: set_default_values\n trigger: null\n actions:\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.button_indoor_activated\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.button_garage_activated\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.button_pool_activated\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.gesture_kitchen_activated\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.touch_bedroom_activated\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.light_simulation\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.pixel_node_time\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.pixel_node_date\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.pixel_node_weekday\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.pixel_node_msg0\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.pixel_node_msg1\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.pixel_node_msg2\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.pixel_node_msg3\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.pixel_node_msg4\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.pixel_node_msg5\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.pixel_node_msg6\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.pixel_node_msg7\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.pixel_node_msg8\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.pixel_node_msg9\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.pixel_node_msg10\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.pixel_node_msg11\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.pixel_node_msg12\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.pixel_node_msg13\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.pixel_node_msg14\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.pixel_node_msg15\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.pixel_node_msg16\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.pixel_node_msg17\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.pixel_node_msg18\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.pixel_node_msg19\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.daily_vacuum_done\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.daily_vacuum\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.dustbin_notification\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.irrigation_activated\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.mowing_activated\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.circulating_pump_activated\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.irrigation_scheduled_valve1\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.irrigation_valve1_at_monday\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.irrigation_valve1_at_tuesday\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.irrigation_valve1_at_wednesday\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.irrigation_valve1_at_thursday\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.irrigation_valve1_at_friday\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.irrigation_valve1_at_saturday\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.irrigation_valve1_at_sunday\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.irrigation_scheduled_valve2\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.irrigation_valve2_at_monday\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.irrigation_valve2_at_tuesday\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.irrigation_valve2_at_wednesday\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.irrigation_valve2_at_thursday\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.irrigation_valve2_at_friday\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.irrigation_valve2_at_saturday\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.irrigation_valve2_at_sunday\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.irrigation_scheduled_valve3\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.irrigation_valve3_at_monday\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.irrigation_valve3_at_tuesday\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.irrigation_valve3_at_wednesday\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.irrigation_valve3_at_thursday\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.irrigation_valve3_at_friday\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.irrigation_valve3_at_saturday\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.irrigation_valve3_at_sunday\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.cover_closing_at_cold_activated\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.cover_bedroom\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.cover_bath\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.cover_office\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.cover_nursery\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.cover_closed_at_low_temp\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.climate_activated\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.climate_start_office\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.climate_start_bedroom\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.climate_start_nursery\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.climate_stop_office\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.climate_stop_bedroom\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.climate_stop_nursery\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.climate_office_started\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.climate_bedroom_started\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.climate_nursery_started\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.dishwasher_activated\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.circulating_pump_running_desinfection\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.nightlight_end\n data:\n time: 04:00:00\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.pitouch_off\n data:\n time: '23:30:00'\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.pool_pump_start1\n data:\n time: '11:00:00'\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.pool_pump_start2\n data:\n time: '20:00:00'\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.sleep\n data:\n time: '22:00:00'\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.standup_weekend\n data:\n time: 08:00:00\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.standup_workday\n data:\n time: 05:30:00\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.tv_off_period_end\n data:\n time: 06:00:00\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.tv_off_period_start\n data:\n time: '21:00:00'\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.vacuum_period_end\n data:\n time: '17:00:00'\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.vacuum_period_start\n data:\n time: 08:00:00\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.irrigation_start_1\n data:\n time: 04:00:00\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.irrigation_start_2\n data:\n time: 04:00:00\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.irrigation_start_3\n data:\n time: 06:00:00\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.mowing_start\n data:\n time: 08:30:00\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.mowing_end\n data:\n time: '16:30:00'\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.climate_startperiode_begin\n data:\n time: 08:00:00\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.climate_startperiode_end\n data:\n time: '12:00:00'\n - action: input_number.set_value\n target:\n entity_id: input_number.effect_delay\n data:\n value: 1500\n - action: input_number.set_value\n target:\n entity_id: input_number.max_random_off_duration\n data:\n value: 120\n - action: input_number.set_value\n target:\n entity_id: input_number.nightlight_duration\n data:\n value: 15\n - action: input_number.set_value\n target:\n entity_id: input_number.pitouch_delay\n data:\n value: 15\n - action: input_number.set_value\n target:\n entity_id: input_number.pixel_node_display_brightness\n data:\n value: 2\n - action: input_number.set_value\n target:\n entity_id: input_number.pixel_node_display_duration\n data:\n value: 3\n - action: input_number.set_value\n target:\n entity_id: input_number.pixel_node_display_shakeperiod\n data:\n value: 130\n - action: input_number.set_value\n target:\n entity_id: input_number.pool_pump_duration\n data:\n value: 120\n - action: input_number.set_value\n target:\n entity_id: input_number.tvoff_lightsoff_delay1\n data:\n value: 1\n - action: input_number.set_value\n target:\n entity_id: input_number.tvoff_lightsoff_delay2\n data:\n value: 7\n - action: input_number.set_value\n target:\n entity_id: input_number.light_timeout\n data:\n value: 15\n - action: input_number.set_value\n target:\n entity_id: input_number.irrigation_duration\n data:\n value: 30\n - action: input_number.set_value\n target:\n entity_id: input_number.circulating_pump_activated_after_standup\n data:\n value: 2\n - action: input_number.set_value\n target:\n entity_id: input_number.circulating_pump_activated_before_sleeping\n data:\n value: 4\n - action: input_number.set_value\n target:\n entity_id: input_number.circulating_pump_on_period\n data:\n value: 15\n - action: input_number.set_value\n target:\n entity_id: input_number.circulating_pump_on_duration\n data:\n value: 1\n - action: input_number.set_value\n target:\n entity_id: input_number.soil_moisture1_min_voltage\n data:\n value: 1500\n - action: input_number.set_value\n target:\n entity_id: input_number.soil_moisture1_max_voltage\n data:\n value: 3000\n - action: input_number.set_value\n target:\n entity_id: input_number.soil_moisture2_min_voltage\n data:\n value: 1500\n - action: input_number.set_value\n target:\n entity_id: input_number.soil_moisture2_max_voltage\n data:\n value: 3000\n - action: input_number.set_value\n target:\n entity_id: input_number.soil_moisture3_min_voltage\n data:\n value: 1500\n - action: input_number.set_value\n target:\n entity_id: input_number.soil_moisture3_max_voltage\n data:\n value: 3000\n - action: input_number.set_value\n target:\n entity_id: input_number.electricity_meter_threshold_power\n data:\n value: 15000\n - action: input_number.set_value\n target:\n entity_id: input_number.electricity_import_critical_above\n data:\n value: 100\n - action: input_number.set_value\n target:\n entity_id: input_number.battery_state_off_below\n data:\n value: 20\n - action: input_number.set_value\n target:\n entity_id: input_number.electricity_price_in\n data:\n value: 0.4\n - action: input_number.set_value\n target:\n entity_id: input_number.electricity_price_out\n data:\n value: 0.077\n - action: input_number.set_value\n target:\n entity_id: input_number.waterpump_emergency_stop_duration\n data:\n value: 20\n - action: input_number.set_value\n target:\n entity_id: input_number.waterpump_emergency_stop_power_threshold\n data:\n value: 900\n - action: input_number.set_value\n target:\n entity_id: input_number.climate_target_temperature\n data:\n value: 25\n - action: input_number.set_value\n target:\n entity_id: input_number.climate_min_forecast_temperature\n data:\n value: 27\n - action: input_number.set_value\n target:\n entity_id: input_number.climate_min_forecast_temperature_sunny\n data:\n value: 24\n - action: input_number.set_value\n target:\n entity_id: input_number.climate_min_battery_level\n data:\n value: 95\n - action: input_number.set_value\n target:\n entity_id: input_number.climate_min_pv_generation\n data:\n value: 2000\n - action: input_number.set_value\n target:\n entity_id: input_number.climate_min_pv_generation_duration\n data:\n value: 10\n - action: input_number.set_value\n target:\n entity_id: input_number.dishwasher_min_pv_generation\n data:\n value: 2000\n - action: input_number.set_value\n target:\n entity_id: input_number.dishwasher_min_battery_level\n data:\n value: 95\n - action: input_number.set_value\n target:\n entity_id: input_number.notification_tv_on_delay\n data:\n value: 5\n - action: input_number.set_value\n target:\n entity_id: input_number.gasmeter_threshold_high\n data:\n value: 100000\n - action: input_number.set_value\n target:\n entity_id: input_number.gasmeter_threshold_low\n data:\n value: 1000\n - action: input_number.set_value\n target:\n entity_id: input_number.gasmeter_heating_value\n data:\n value: 11.23\n - action: input_number.set_value\n target:\n entity_id: input_number.gasmeter_zustandszahl\n data:\n value: 0.9655\n - action: input_number.set_value\n target:\n entity_id: input_number.circulating_pump_running_above_temp\n data:\n value: 65\n - action: input_number.set_value\n target:\n entity_id: input_number.default_brightness\n data:\n value: 15\n - action: input_number.set_value\n target:\n entity_id: input_number.brightness_delta\n data:\n value: 5\n - action: input_select.select_option\n target:\n entity_id: input_select.climate_hvac_mode\n data:\n option: cool\n - action: input_select.select_option\n target:\n entity_id: input_select.climate_fan_mode\n data:\n option: auto\n - action: input_select.select_option\n target:\n entity_id: input_select.climate_swing_mode\n data:\n option: true\n - action: input_select.select_option\n target:\n entity_id: input_select.climate_preset_mode\n data:\n option: none", "config": [ { "name": "climate target temperature", "room": null, "type": "input_number", "id": { "entity_id": "input_number.climate_target_temperature", "device_id": null } }, { "name": "climate min forecast temperature", "room": null, "type": "input_number", "id": { "entity_id": "input_number.climate_min_forecast_temperature", "device_id": null } }, { "name": "climate min forecast temperature sunny", "room": null, "type": "input_number", "id": { "entity_id": "input_number.climate_min_forecast_temperature_sunny", "device_id": null } }, { "name": "climate activated", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.climate_activated", "device_id": null } }, { "name": "climate startperiode begin", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.climate_startperiode_begin", "device_id": null } }, { "name": "climate startperiode end", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.climate_startperiode_end", "device_id": null } }, { "name": "climate min battery level", "room": null, "type": "input_number", "id": { "entity_id": "input_number.climate_min_battery_level", "device_id": null } }, { "name": "climate min pv generation", "room": null, "type": "input_number", "id": { "entity_id": "input_number.climate_min_pv_generation", "device_id": null } }, { "name": "climate hvac mode", "room": null, "type": "input_select", "id": { "entity_id": "input_select.climate_hvac_mode", "device_id": null } }, { "name": "climate fan mode", "room": null, "type": "input_select", "id": { "entity_id": "input_select.climate_fan_mode", "device_id": null } }, { "name": "climate swing mode", "room": null, "type": "input_select", "id": { "entity_id": "input_select.climate_swing_mode", "device_id": null } }, { "name": "climate preset mode", "room": null, "type": "input_select", "id": { "entity_id": "input_select.climate_preset_mode", "device_id": null } }, { "name": "climate min pv generation duration", "room": null, "type": "input_number", "id": { "entity_id": "input_number.climate_min_pv_generation_duration", "device_id": null } }, { "name": "cover closing at cold activated", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.cover_closing_at_cold_activated", "device_id": null } }, { "name": "cover bedroom", "room": "schlafzimmer", "type": "input_boolean", "id": { "entity_id": "input_boolean.cover_bedroom", "device_id": null } }, { "name": "cover bath", "room": "bad", "type": "input_boolean", "id": { "entity_id": "input_boolean.cover_bath", "device_id": null } }, { "name": "cover office", "room": "arbeitszimmer", "type": "input_boolean", "id": { "entity_id": "input_boolean.cover_office", "device_id": null } }, { "name": "cover nursery", "room": "kinderzimmer", "type": "input_boolean", "id": { "entity_id": "input_boolean.cover_nursery", "device_id": null } }, { "name": "cover closed at low temp", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.cover_closed_at_low_temp", "device_id": null } }, { "name": "Button Garage Activated", "room": "Garage", "type": "input_boolean", "id": { "entity_id": "input_boolean.button_garage_activated", "device_id": null } }, { "name": "Button Indoor Activated", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.button_indoor_activated", "device_id": null } }, { "name": "Button Pool Activated", "room": "Pool", "type": "input_boolean", "id": { "entity_id": "input_boolean.button_pool_activated", "device_id": null } }, { "name": "Circulating Pump Activated", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.circulating_pump_activated", "device_id": null } }, { "name": "Circulating Pump Running Desinfection", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.circulating_pump_running_desinfection", "device_id": null } }, { "name": "Climate Bedroom Started", "room": "Bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.climate_bedroom_started", "device_id": null } }, { "name": "Climate Nursery Started", "room": "Nursery", "type": "input_boolean", "id": { "entity_id": "input_boolean.climate_nursery_started", "device_id": null } }, { "name": "Climate Office Started", "room": "Office", "type": "input_boolean", "id": { "entity_id": "input_boolean.climate_office_started", "device_id": null } }, { "name": "Climate Start Bedroom", "room": "Bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.climate_start_bedroom", "device_id": null } }, { "name": "Climate Start Nursery", "room": "Nursery", "type": "input_boolean", "id": { "entity_id": "input_boolean.climate_start_nursery", "device_id": null } }, { "name": "Climate Start Office", "room": "Office", "type": "input_boolean", "id": { "entity_id": "input_boolean.climate_start_office", "device_id": null } }, { "name": "Climate Stop Bedroom", "room": "Bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.climate_stop_bedroom", "device_id": null } }, { "name": "Climate Stop Nursery", "room": "Nursery", "type": "input_boolean", "id": { "entity_id": "input_boolean.climate_stop_nursery", "device_id": null } }, { "name": "Climate Stop Office", "room": "Office", "type": "input_boolean", "id": { "entity_id": "input_boolean.climate_stop_office", "device_id": null } }, { "name": "Daily Vacuum", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.daily_vacuum", "device_id": null } }, { "name": "Daily Vacuum Done", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.daily_vacuum_done", "device_id": null } }, { "name": "Dishwasher Activated", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.dishwasher_activated", "device_id": null } }, { "name": "Dustbin Notification", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.dustbin_notification", "device_id": null } }, { "name": "Gesture Kitchen Activated", "room": "Kitchen", "type": "input_boolean", "id": { "entity_id": "input_boolean.gesture_kitchen_activated", "device_id": null } }, { "name": "Irrigation Activated", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.irrigation_activated", "device_id": null } }, { "name": "Irrigation Scheduled Valve1", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.irrigation_scheduled_valve1", "device_id": null } }, { "name": "Irrigation Scheduled Valve2", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.irrigation_scheduled_valve2", "device_id": null } }, { "name": "Irrigation Scheduled Valve3", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.irrigation_scheduled_valve3", "device_id": null } }, { "name": "Irrigation Valve1 at Friday", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.irrigation_valve1_at_friday", "device_id": null } }, { "name": "Irrigation Valve1 at Monday", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.irrigation_valve1_at_monday", "device_id": null } }, { "name": "Irrigation Valve1 at Saturday", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.irrigation_valve1_at_saturday", "device_id": null } }, { "name": "Irrigation Valve1 at Sunday", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.irrigation_valve1_at_sunday", "device_id": null } }, { "name": "Irrigation Valve1 at Thursday", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.irrigation_valve1_at_thursday", "device_id": null } }, { "name": "Irrigation Valve1 at Tuesday", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.irrigation_valve1_at_tuesday", "device_id": null } }, { "name": "Irrigation Valve1 at Wednesday", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.irrigation_valve1_at_wednesday", "device_id": null } }, { "name": "Irrigation Valve2 at Friday", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.irrigation_valve2_at_friday", "device_id": null } }, { "name": "Irrigation Valve2 at Monday", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.irrigation_valve2_at_monday", "device_id": null } }, { "name": "Irrigation Valve2 at Saturday", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.irrigation_valve2_at_saturday", "device_id": null } }, { "name": "Irrigation Valve2 at Sunday", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.irrigation_valve2_at_sunday", "device_id": null } }, { "name": "Irrigation Valve2 at Thursday", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.irrigation_valve2_at_thursday", "device_id": null } }, { "name": "Irrigation Valve2 at Tuesday", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.irrigation_valve2_at_tuesday", "device_id": null } }, { "name": "Irrigation Valve2 at Wednesday", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.irrigation_valve2_at_wednesday", "device_id": null } }, { "name": "Irrigation Valve3 at Friday", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.irrigation_valve3_at_friday", "device_id": null } }, { "name": "Irrigation Valve3 at Monday", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.irrigation_valve3_at_monday", "device_id": null } }, { "name": "Irrigation Valve3 at Saturday", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.irrigation_valve3_at_saturday", "device_id": null } }, { "name": "Irrigation Valve3 at Sunday", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.irrigation_valve3_at_sunday", "device_id": null } }, { "name": "Irrigation Valve3 at Thursday", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.irrigation_valve3_at_thursday", "device_id": null } }, { "name": "Irrigation Valve3 at Tuesday", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.irrigation_valve3_at_tuesday", "device_id": null } }, { "name": "Irrigation Valve3 at Wednesday", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.irrigation_valve3_at_wednesday", "device_id": null } }, { "name": "Light Simulation", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.light_simulation", "device_id": null } }, { "name": "Mowing Activated", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.mowing_activated", "device_id": null } }, { "name": "Pixel Node Date", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_date", "device_id": null } }, { "name": "Pixel Node Msg0", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_msg0", "device_id": null } }, { "name": "Pixel Node Msg1", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_msg1", "device_id": null } }, { "name": "Pixel Node Msg10", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_msg10", "device_id": null } }, { "name": "Pixel Node Msg11", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_msg11", "device_id": null } }, { "name": "Pixel Node Msg12", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_msg12", "device_id": null } }, { "name": "Pixel Node Msg13", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_msg13", "device_id": null } }, { "name": "Pixel Node Msg14", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_msg14", "device_id": null } }, { "name": "Pixel Node Msg15", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_msg15", "device_id": null } }, { "name": "Pixel Node Msg16", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_msg16", "device_id": null } }, { "name": "Pixel Node Msg17", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_msg17", "device_id": null } }, { "name": "Pixel Node Msg18", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_msg18", "device_id": null } }, { "name": "Pixel Node Msg19", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_msg19", "device_id": null } }, { "name": "Pixel Node Msg2", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_msg2", "device_id": null } }, { "name": "Pixel Node Msg3", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_msg3", "device_id": null } }, { "name": "Pixel Node Msg4", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_msg4", "device_id": null } }, { "name": "Pixel Node Msg5", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_msg5", "device_id": null } }, { "name": "Pixel Node Msg6", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_msg6", "device_id": null } }, { "name": "Pixel Node Msg7", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_msg7", "device_id": null } }, { "name": "Pixel Node Msg8", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_msg8", "device_id": null } }, { "name": "Pixel Node Msg9", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_msg9", "device_id": null } }, { "name": "Pixel Node Time", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_time", "device_id": null } }, { "name": "Pixel Node Weekday", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.pixel_node_weekday", "device_id": null } }, { "name": "Touch Bedroom Activated", "room": "Bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.touch_bedroom_activated", "device_id": null } }, { "name": "Irrigation Start 1", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.irrigation_start_1", "device_id": null } }, { "name": "Irrigation Start 2", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.irrigation_start_2", "device_id": null } }, { "name": "Irrigation Start 3", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.irrigation_start_3", "device_id": null } }, { "name": "Mowing End", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.mowing_end", "device_id": null } }, { "name": "Mowing Start", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.mowing_start", "device_id": null } }, { "name": "Nightlight End", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.nightlight_end", "device_id": null } }, { "name": "PiTouch Off", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.pitouch_off", "device_id": null } }, { "name": "Pool Pump Start1", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.pool_pump_start1", "device_id": null } }, { "name": "Pool Pump Start2", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.pool_pump_start2", "device_id": null } }, { "name": "Sleep", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.sleep", "device_id": null } }, { "name": "Standup Weekend", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.standup_weekend", "device_id": null } }, { "name": "Standup Workday", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.standup_workday", "device_id": null } }, { "name": "TV Off Period End", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.tv_off_period_end", "device_id": null } }, { "name": "TV Off Period Start", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.tv_off_period_start", "device_id": null } }, { "name": "Vacuum Period End", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.vacuum_period_end", "device_id": null } }, { "name": "Vacuum Period Start", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.vacuum_period_start", "device_id": null } }, { "name": "Battery State Off Below", "room": null, "type": "input_number", "id": { "entity_id": "input_number.battery_state_off_below", "device_id": null } }, { "name": "Brightness Delta", "room": null, "type": "input_number", "id": { "entity_id": "input_number.brightness_delta", "device_id": null } }, { "name": "Circulating Pump Activated After Standup", "room": null, "type": "input_number", "id": { "entity_id": "input_number.circulating_pump_activated_after_standup", "device_id": null } }, { "name": "Circulating Pump Activated Before Sleeping", "room": null, "type": "input_number", "id": { "entity_id": "input_number.circulating_pump_activated_before_sleeping", "device_id": null } }, { "name": "Circulating Pump On Duration", "room": null, "type": "input_number", "id": { "entity_id": "input_number.circulating_pump_on_duration", "device_id": null } }, { "name": "Circulating Pump On Period", "room": null, "type": "input_number", "id": { "entity_id": "input_number.circulating_pump_on_period", "device_id": null } }, { "name": "Circulating Pump Running Above Temp", "room": null, "type": "input_number", "id": { "entity_id": "input_number.circulating_pump_running_above_temp", "device_id": null } }, { "name": "Default Brightness", "room": null, "type": "input_number", "id": { "entity_id": "input_number.default_brightness", "device_id": null } }, { "name": "Dishwasher Min Battery Level", "room": null, "type": "input_number", "id": { "entity_id": "input_number.dishwasher_min_battery_level", "device_id": null } }, { "name": "Dishwasher Min PV Generation", "room": null, "type": "input_number", "id": { "entity_id": "input_number.dishwasher_min_pv_generation", "device_id": null } }, { "name": "Effect Delay", "room": null, "type": "input_number", "id": { "entity_id": "input_number.effect_delay", "device_id": null } }, { "name": "Electricity Import Critical Above", "room": null, "type": "input_number", "id": { "entity_id": "input_number.electricity_import_critical_above", "device_id": null } }, { "name": "Electricity Meter Threshold Power", "room": null, "type": "input_number", "id": { "entity_id": "input_number.electricity_meter_threshold_power", "device_id": null } }, { "name": "Electricity Price In", "room": null, "type": "input_number", "id": { "entity_id": "input_number.electricity_price_in", "device_id": null } }, { "name": "Electricity Price Out", "room": null, "type": "input_number", "id": { "entity_id": "input_number.electricity_price_out", "device_id": null } }, { "name": "Gasmeter Heating Value", "room": null, "type": "input_number", "id": { "entity_id": "input_number.gasmeter_heating_value", "device_id": null } }, { "name": "Gasmeter Threshold High", "room": null, "type": "input_number", "id": { "entity_id": "input_number.gasmeter_threshold_high", "device_id": null } }, { "name": "Gasmeter Threshold Low", "room": null, "type": "input_number", "id": { "entity_id": "input_number.gasmeter_threshold_low", "device_id": null } }, { "name": "Gasmeter Zustandszahl", "room": null, "type": "input_number", "id": { "entity_id": "input_number.gasmeter_zustandszahl", "device_id": null } }, { "name": "Irrigation Duration", "room": null, "type": "input_number", "id": { "entity_id": "input_number.irrigation_duration", "device_id": null } }, { "name": "Light Timeout", "room": null, "type": "input_number", "id": { "entity_id": "input_number.light_timeout", "device_id": null } }, { "name": "Max Random Off Duration", "room": null, "type": "input_number", "id": { "entity_id": "input_number.max_random_off_duration", "device_id": null } }, { "name": "Nightlight Duration", "room": null, "type": "input_number", "id": { "entity_id": "input_number.nightlight_duration", "device_id": null } }, { "name": "Notification TV On Delay", "room": null, "type": "input_number", "id": { "entity_id": "input_number.notification_tv_on_delay", "device_id": null } }, { "name": "PiTouch Delay", "room": null, "type": "input_number", "id": { "entity_id": "input_number.pitouch_delay", "device_id": null } }, { "name": "Pixel Node Display Brightness", "room": null, "type": "input_number", "id": { "entity_id": "input_number.pixel_node_display_brightness", "device_id": null } }, { "name": "Pixel Node Display Duration", "room": null, "type": "input_number", "id": { "entity_id": "input_number.pixel_node_display_duration", "device_id": null } }, { "name": "Pixel Node Display Shakeperiod", "room": null, "type": "input_number", "id": { "entity_id": "input_number.pixel_node_display_shakeperiod", "device_id": null } }, { "name": "Pool Pump Duration", "room": null, "type": "input_number", "id": { "entity_id": "input_number.pool_pump_duration", "device_id": null } }, { "name": "Soil moisture 1 max voltage", "room": null, "type": "input_number", "id": { "entity_id": "input_number.soil_moisture1_max_voltage", "device_id": null } }, { "name": "Soil moisture 1 min voltage", "room": null, "type": "input_number", "id": { "entity_id": "input_number.soil_moisture1_min_voltage", "device_id": null } }, { "name": "Soil moisture 2 max voltage", "room": null, "type": "input_number", "id": { "entity_id": "input_number.soil_moisture2_max_voltage", "device_id": null } }, { "name": "Soil moisture 2 min voltage", "room": null, "type": "input_number", "id": { "entity_id": "input_number.soil_moisture2_min_voltage", "device_id": null } }, { "name": "Soil moisture 3 max voltage", "room": null, "type": "input_number", "id": { "entity_id": "input_number.soil_moisture3_max_voltage", "device_id": null } }, { "name": "Soil moisture 3 min voltage", "room": null, "type": "input_number", "id": { "entity_id": "input_number.soil_moisture3_min_voltage", "device_id": null } }, { "name": "TV off lights off delay 1", "room": null, "type": "input_number", "id": { "entity_id": "input_number.tvoff_lightsoff_delay1", "device_id": null } }, { "name": "TV off lights off delay 2", "room": null, "type": "input_number", "id": { "entity_id": "input_number.tvoff_lightsoff_delay2", "device_id": null } }, { "name": "Waterpump emergency stop duration", "room": null, "type": "input_number", "id": { "entity_id": "input_number.waterpump_emergency_stop_duration", "device_id": null } }, { "name": "Waterpump emergency stop power threshold", "room": null, "type": "input_number", "id": { "entity_id": "input_number.waterpump_emergency_stop_power_threshold", "device_id": null } } ] }, { "id": "solar_set_battery_forced_charge_discharge", "automation": "- alias: solar_set_battery_forced_charge_discharge\n id: solar_set_battery_forced_charge_discharge\n triggers:\n - trigger: state\n entity_id: input_select.set_battery_forced_charge_discharge\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n variables:\n forced_charge: 170\n forced_discharge: 187\n stop_default: 204\n actions:\n - action: modbus.write_register\n data:\n hub: SH10RT_master\n slave: 1\n address: 13050\n value: \"{% set val = states ( 'input_select.set_battery_forced_charge_discharge'\\\n \\ ) %} {% if val == 'Stop (default)' %}\\n {{stop_default}}\\n{% elif val\\\n \\ == 'Forced charge' %}\\n {{forced_charge}}\\n{% elif val == 'Forced discharge'\\\n \\ %}\\n {{forced_discharge}}\\n{% else %}\\n {{stop_default}}\\n{% endif\\\n \\ %}\\n\"", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Set battery forced charge discharge", "room": null, "type": "input_select", "id": { "entity_id": "input_select.set_battery_forced_charge_discharge", "device_id": null } } ] }, { "id": "solar_update_battery_forced_charge_discharge", "automation": "- alias: solar_update_battery_forced_charge_discharge\n id: solar_update_battery_forced_charge_discharge\n triggers:\n - trigger: state\n entity_id: sensor.battery_forced_charge_discharge\n conditions: []\n actions:\n - action: input_select.select_option\n target:\n entity_id: input_select.set_battery_forced_charge_discharge\n data:\n option: '{{ states ( ''sensor.battery_forced_charge_discharge'' ) }}'", "config": [ { "name": "Set battery forced charge discharge", "room": null, "type": "input_select", "id": { "entity_id": "input_select.set_battery_forced_charge_discharge", "device_id": null } }, { "name": "Battery forced charge discharge", "room": null, "type": "sensor", "id": { "entity_id": "sensor.battery_forced_charge_discharge", "device_id": null } } ] }, { "id": "solar_sh10rt_master_inverter_runmode", "automation": "- alias: solar_sh10rt_master_set_inverter_runmode\n id: solar_sh10rt_master_inverter_runmode\n triggers:\n - trigger: state\n entity_id: input_button.inverter_master_startup\n variables:\n runmode: startup\n - trigger: state\n entity_id: input_button.inverter_master_shutdown\n variables:\n runmode: shutdown\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n variables:\n inverter_start: 207\n inverter_stop: 206\n actions:\n - action: modbus.write_register\n data:\n hub: SH10RT_master\n slave: 1\n address: 12999\n value: \"{% if runmode == \\\"startup\\\" %}\\n {{inverter_start}}\\n{% else %}\\n\\\n \\ {{inverter_stop}}\\n{% endif %}\\n\"", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Inverter Master Shutdown", "room": null, "type": "input_button", "id": { "entity_id": "input_button.inverter_master_shutdown", "device_id": null } }, { "name": "Inverter Master Startup", "room": null, "type": "input_button", "id": { "entity_id": "input_button.inverter_master_startup", "device_id": null } } ] }, { "id": "solar_sh10rt_slave_set_inverter_runmode", "automation": "- alias: solar_sh10rt_slave_set_inverter_runmode\n id: solar_sh10rt_slave_set_inverter_runmode\n triggers:\n - trigger: state\n entity_id: input_button.inverter_slave_startup\n variables:\n runmode: startup\n - trigger: state\n entity_id: input_button.inverter_slave_shutdown\n variables:\n runmode: shutdown\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n variables:\n inverter_start: 207\n inverter_stop: 206\n actions:\n - action: modbus.write_register\n data:\n hub: SH10RT_slave\n slave: 2\n address: 12999\n value: \"{% if runmode == \\\"startup\\\" %}\\n {{inverter_start}}\\n{% else %}\\n\\\n \\ {{inverter_stop}}\\n{% endif %}\\n\"", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Inverter Slave Shutdown", "room": null, "type": "input_button", "id": { "entity_id": "input_button.inverter_slave_shutdown", "device_id": null } }, { "name": "Inverter Slave Startup", "room": null, "type": "input_button", "id": { "entity_id": "input_button.inverter_slave_startup", "device_id": null } } ] }, { "id": "solar_set_max_soc", "automation": "- alias: solar_set_max_soc\n id: solar_set_max_soc\n triggers:\n - trigger: state\n entity_id: input_number.set_max_soc\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - action: modbus.write_register\n data:\n hub: SH10RT_master\n slave: 1\n address: 13057\n value: '{{ states ( ''input_number.set_max_soc'' ) | int * 10 }}'", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Set Max SOC", "room": null, "type": "input_number", "id": { "entity_id": "input_number.set_max_soc", "device_id": null } } ] }, { "id": "solar_update_max_soc", "automation": "- alias: solar_update_max_soc\n id: solar_update_max_soc\n triggers:\n - trigger: state\n entity_id: sensor.sh10rt_master_max_soc\n conditions: []\n actions:\n - action: input_number.set_value\n target:\n entity_id: input_number.set_max_soc\n data:\n value: '{{ states ( ''sensor.sh10rt_master_max_soc'' ) }}'", "config": [ { "name": "Set Max SOC", "room": null, "type": "input_number", "id": { "entity_id": "input_number.set_max_soc", "device_id": null } }, { "name": "SH10RT master max SOC", "room": null, "type": "sensor", "id": { "entity_id": "sensor.sh10rt_master_max_soc", "device_id": null } } ] }, { "id": "solar_set_min_soc", "automation": "- alias: solar_set_min_soc\n id: solar_set_min_soc\n triggers:\n - trigger: state\n entity_id: input_number.set_min_soc\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - action: modbus.write_register\n data:\n hub: SH10RT_master\n slave: 1\n address: 13058\n value: '{{ states ( ''input_number.set_min_soc'' ) | int * 10 }}'", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Set Min SOC", "room": null, "type": "input_number", "id": { "entity_id": "input_number.set_min_soc", "device_id": null } } ] }, { "id": "solar_update_min_soc", "automation": "- alias: solar_update_min_soc\n id: solar_update_min_soc\n triggers:\n - trigger: state\n entity_id:\n - sensor.sh10rt_master_min_soc\n conditions: []\n actions:\n - action: input_number.set_value\n target:\n entity_id: input_number.set_min_soc\n data:\n value: '{{ states ( ''sensor.sh10rt_master_min_soc'' ) }}'", "config": [ { "name": "Set Min SOC", "room": null, "type": "input_number", "id": { "entity_id": "input_number.set_min_soc", "device_id": null } }, { "name": "SH10RT master min SOC", "room": null, "type": "sensor", "id": { "entity_id": "sensor.sh10rt_master_min_soc", "device_id": null } } ] }, { "id": "solar_set_backup_soc", "automation": "- alias: solar_set_backup_soc\n id: solar_set_backup_soc\n triggers:\n - trigger: state\n entity_id: input_number.set_backup_soc\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - action: modbus.write_register\n data:\n hub: SH10RT_master\n slave: 1\n address: 13099\n value: '{{ states ( ''input_number.set_backup_soc'' ) | int }}'", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Set Backup SOC", "room": null, "type": "input_number", "id": { "entity_id": "input_number.set_backup_soc", "device_id": null } } ] }, { "id": "solar_update_backup_soc", "automation": "- alias: solar_update_backup_soc\n id: solar_update_backup_soc\n triggers:\n - trigger: state\n entity_id: sensor.sh10rt_master_reserved_soc_for_backup\n conditions: []\n actions:\n - action: input_number.set_value\n target:\n entity_id: input_number.set_backup_soc\n data:\n value: '{{ states ( ''sensor.sh10rt_master_reserved_soc_for_backup'' ) }}'", "config": [ { "name": "Set Backup SOC", "room": null, "type": "input_number", "id": { "entity_id": "input_number.set_backup_soc", "device_id": null } }, { "name": "SH10RT master reserved SOC for backup", "room": null, "type": "sensor", "id": { "entity_id": "sensor.sh10rt_master_reserved_soc_for_backup", "device_id": null } } ] }, { "id": "solar_set_battery_charge_start_power", "automation": "- alias: solar_set_battery_charge_start_power\n id: solar_set_battery_charge_start_power\n triggers:\n - trigger: state\n entity_id: input_number.set_battery_charge_start_power\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - action: modbus.write_register\n data:\n hub: SH10RT_master\n slave: 1\n address: 33148\n value: '{{ ( states ( ''input_number.set_battery_charge_start_power'' ) | float\n / 10.0 ) | int }}'", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Set Battery Charge Start Power", "room": null, "type": "input_number", "id": { "entity_id": "input_number.set_battery_charge_start_power", "device_id": null } } ] }, { "id": "solar_update_battery_charge_start_power", "automation": "- alias: solar_update_battery_charge_start_power\n id: solar_update_battery_charge_start_power\n triggers:\n - trigger: state\n entity_id: sensor.sh10rt_master_battery_charge_start_power\n conditions: []\n actions:\n - action: input_number.set_value\n target:\n entity_id: input_number.set_battery_charge_start_power\n data:\n value: '{{ states ( ''sensor.sh10rt_master_battery_charge_start_power'' ) }}'", "config": [ { "name": "Set Battery Charge Start Power", "room": null, "type": "input_number", "id": { "entity_id": "input_number.set_battery_charge_start_power", "device_id": null } }, { "name": "SH10RT master battery charge start power", "room": null, "type": "sensor", "id": { "entity_id": "sensor.sh10rt_master_battery_charge_start_power", "device_id": null } } ] }, { "id": "solar_set_battery_dischargestart_power", "automation": "- alias: solar_set_battery_discharge_start_power\n id: solar_set_battery_dischargestart_power\n triggers:\n - trigger: state\n entity_id: input_number.set_battery_discharge_start_power\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - action: modbus.write_register\n data:\n hub: SH10RT_master\n slave: 1\n address: 33149\n value: '{{ ( states ( ''input_number.set_battery_discharge_start_power'' ) |float\n / 10.0 ) | int}}'", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Set Battery Discharge Start Power", "room": null, "type": "input_number", "id": { "entity_id": "input_number.set_battery_discharge_start_power", "device_id": null } } ] }, { "id": "solar_update_battery_discharge_start_power", "automation": "- alias: solar_update_battery_discharge_start_power\n id: solar_update_battery_discharge_start_power\n triggers:\n - trigger: state\n entity_id: sensor.sh10rt_master_battery_discharge_start_power\n condition: []\n actions:\n - action: input_number.set_value\n target:\n entity_id: input_number.set_battery_discharge_start_power\n data:\n value: '{{ states ( ''sensor.sh10rt_master_battery_discharge_start_power'' )\n }}'", "config": [ { "name": "Set Battery Discharge Start Power", "room": null, "type": "input_number", "id": { "entity_id": "input_number.set_battery_discharge_start_power", "device_id": null } }, { "name": "SH10RT master battery discharge start power", "room": null, "type": "sensor", "id": { "entity_id": "sensor.sh10rt_master_battery_discharge_start_power", "device_id": null } } ] }, { "id": "solar_set_battery_max_charge_power", "automation": "- alias: solar_set_battery_max_charge_power\n id: solar_set_battery_max_charge_power\n triggers:\n - trigger: state\n entity_id: input_number.set_battery_max_charge_power\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - action: modbus.write_register\n data:\n hub: SH10RT_master\n slave: 1\n address: 33046\n value: '{{ ( states ( ''input_number.set_battery_max_charge_power'' ) | float\n / 10.0 ) | int}}'", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Set Battery Max Charge Power", "room": null, "type": "input_number", "id": { "entity_id": "input_number.set_battery_max_charge_power", "device_id": null } } ] }, { "id": "solar_update_battery_max_charge_power", "automation": "- alias: solar_update_battery_max_charge_power\n id: solar_update_battery_max_charge_power\n triggers:\n - trigger: state\n entity_id: sensor.sh10rt_master_battery_max_charge_power\n conditions: []\n actions:\n - action: input_number.set_value\n target:\n entity_id: input_number.set_battery_max_charge_power\n data:\n value: '{{ states ( ''sensor.sh10rt_master_battery_max_charge_power'' ) }}'", "config": [ { "name": "Set Battery Max Charge Power", "room": null, "type": "input_number", "id": { "entity_id": "input_number.set_battery_max_charge_power", "device_id": null } }, { "name": "SH10RT master battery max charge power", "room": null, "type": "sensor", "id": { "entity_id": "sensor.sh10rt_master_battery_max_charge_power", "device_id": null } } ] }, { "id": "solar_set_battery_max_discharge_power", "automation": "- alias: solar_set_battery_max_discharge_power\n id: solar_set_battery_max_discharge_power\n triggers:\n - trigger: state\n entity_id: input_number.set_battery_max_discharge_power\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - action: modbus.write_register\n data:\n hub: SH10RT_master\n slave: 1\n address: 33047\n value: '{{ ( states ( ''input_number.set_battery_max_discharge_power'' ) | float\n / 10.0 ) | int}}'", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Set Battery Max Discharge Power", "room": null, "type": "input_number", "id": { "entity_id": "input_number.set_battery_max_discharge_power", "device_id": null } } ] }, { "id": "solar_update_battery_max_discharge_power", "automation": "- alias: solar_update_battery_max_discharge_power\n id: solar_update_battery_max_discharge_power\n triggers:\n - trigger: state\n entity_id: sensor.sh10rt_master_battery_max_discharge_power\n conditions: []\n actions:\n - action: input_number.set_value\n target:\n entity_id: input_number.set_battery_max_discharge_power\n data:\n value: '{{ states(''sensor.sh10rt_master_battery_max_discharge_power'') }}'", "config": [ { "name": "Set Battery Max Discharge Power", "room": null, "type": "input_number", "id": { "entity_id": "input_number.set_battery_max_discharge_power", "device_id": null } }, { "name": "SH10RT master battery max discharge power", "room": null, "type": "sensor", "id": { "entity_id": "sensor.sh10rt_master_battery_max_discharge_power", "device_id": null } } ] }, { "id": "solar_set_battery_forced_charge_discharge_power", "automation": "- alias: solar_set_battery_forced_charge_discharge_power\n id: solar_set_battery_forced_charge_discharge_power\n triggers:\n - trigger: state\n entity_id: input_number.set_battery_forced_charge_discharge_power\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - action: modbus.write_register\n data:\n hub: SH10RT_master\n slave: 1\n address: 13051\n value: '{{ states ( ''input_number.set_battery_forced_charge_discharge_power''\n ) | int }}'", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Set Battery Forced Charge Discharge Power", "room": null, "type": "input_number", "id": { "entity_id": "input_number.set_battery_forced_charge_discharge_power", "device_id": null } } ] }, { "id": "solar_update_battery_forced_charge_discharge_power", "automation": "- alias: solar_update_battery_forced_charge_discharge_power\n id: solar_update_battery_forced_charge_discharge_power\n triggers:\n - trigger: state\n entity_id:\n - sensor.sh10rt_master_battery_forced_charge_discharge_power\n condition: []\n actions:\n - action: input_number.set_value\n target:\n entity_id: input_number.set_battery_forced_charge_discharge_power\n data:\n value: '{{ states ( ''sensor.sh10rt_master_battery_forced_charge_discharge_power''\n ) }}'", "config": [ { "name": "Set Battery Forced Charge Discharge Power", "room": null, "type": "input_number", "id": { "entity_id": "input_number.set_battery_forced_charge_discharge_power", "device_id": null } }, { "name": "SH10RT master battery forced charge discharge power", "room": null, "type": "sensor", "id": { "entity_id": "sensor.sh10rt_master_battery_forced_charge_discharge_power", "device_id": null } } ] }, { "id": "solcast_update_forecast", "automation": "- alias: solcast_update_forecast\n id: solcast_update_forecast\n triggers:\n - trigger: template\n value_template: \"{% set nr = as_datetime(state_attr('sun.sun','next_rising'))\\\n \\ | as_local %} {% set ns = as_datetime(state_attr('sun.sun','next_setting'))\\\n \\ | as_local %} {% set api_request_limit = 5 %} {% if nr > ns %}\\n {% set\\\n \\ nr = nr - timedelta(hours = 24) %}\\n{% endif %} {% set hours_difference =\\\n \\ (ns - nr) %} {% set interval_hours = hours_difference / api_request_limit\\\n \\ %} {% set ns = namespace(match = false) %} {% for i in range(api_request_limit)\\\n \\ %}\\n {% set start_time = nr + (i * interval_hours) %}\\n {% if ((start_time\\\n \\ - timedelta(seconds=30)) <= now()) and (now() <= (start_time + timedelta(seconds=30)))\\\n \\ %}\\n {% set ns.match = true %}\\n {% endif %}\\n{% endfor %} {{ ns.match\\\n \\ }}\"\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: sun\n before: sunset\n after: sunrise\n actions:\n - delay:\n seconds: '{{ range ( 30, 360 ) | random | int }}'\n - action: solcast_solar.update_forecasts\n data: {}", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Sun", "room": null, "type": "sun", "id": { "entity_id": "sun.sun", "device_id": null } } ] }, { "id": "tapocam_set_privacy_mode", "automation": "- alias: tapocam_set_privacy_mode\n id: tapocam_set_privacy_mode\n mode: single\n triggers:\n - trigger: state\n entity_id: group.family\n to: home\n - platform: sun\n event: sunrise\n offset: +00:01:00\n conditions:\n - condition: state\n alias: process only on production server\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: state\n entity_id: group.family\n state: home\n - condition: state\n entity_id: sun.sun\n state: above_horizon\n actions:\n - action: switch.turn_on\n target:\n entity_id: switch.tapo_c520ws_5d82_privacy", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "family group", "room": null, "type": "group", "id": { "entity_id": "group.family", "device_id": null } }, { "name": "Sun", "room": null, "type": "sun", "id": { "entity_id": "sun.sun", "device_id": null } }, { "name": "Tapo C520WS 5D82 privacy", "room": null, "type": "switch", "id": { "entity_id": "switch.tapo_c520ws_5d82_privacy", "device_id": null } } ] }, { "id": "tapocam_set_day_mode", "automation": "- alias: tapocam_set_day_mode\n id: tapocam_set_day_mode\n mode: single\n triggers:\n - trigger: sun\n event: sunrise\n offset: +00:00:00\n - trigger: state\n entity_id: group.family\n to: not_home\n conditions:\n - condition: state\n alias: process only on production server\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: state\n entity_id: group.family\n state: not_home\n actions:\n - action: switch.turn_off\n target:\n entity_id: switch.tapo_c520ws_5d82_privacy\n - delay:\n seconds: 15\n - action: select.select_option\n target:\n entity_id: select.tapo_c520ws_5d82_move_to_preset\n data:\n option: '{{ state_attr ( ''select.tapo_c520ws_5d82_move_to_preset'', ''options''\n ) [1] }}'", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "family group", "room": null, "type": "group", "id": { "entity_id": "group.family", "device_id": null } }, { "name": "Tapo C520WS 5D82 move to preset", "room": null, "type": "select", "id": { "entity_id": "select.tapo_c520ws_5d82_move_to_preset", "device_id": null } }, { "name": "Tapo C520WS 5D82 privacy", "room": null, "type": "switch", "id": { "entity_id": "switch.tapo_c520ws_5d82_privacy", "device_id": null } } ] }, { "id": "tapocam_set_night_mode", "automation": "- alias: tapocam_set_night_mode\n id: tapocam_set_night_mode\n mode: single\n triggers:\n - trigger: sun\n event: sunset\n offset: +00:00:00\n conditions:\n - condition: state\n alias: process only on production server\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - action: switch.turn_off\n target:\n entity_id: switch.tapo_c520ws_5d82_privacy\n - delay:\n seconds: 15\n - action: select.select_option\n target:\n entity_id: select.tapo_c520ws_5d82_move_to_preset\n data:\n option: '{{ state_attr ( ''select.tapo_c520ws_5d82_move_to_preset'', ''options''\n ) [0] }}'", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Tapo C520WS 5D82 move to preset", "room": null, "type": "select", "id": { "entity_id": "select.tapo_c520ws_5d82_move_to_preset", "device_id": null } }, { "name": "Tapo C520WS 5D82 privacy", "room": null, "type": "switch", "id": { "entity_id": "switch.tapo_c520ws_5d82_privacy", "device_id": null } } ] }, { "id": "tapocam_set_notification", "automation": "- alias: tapocam_set_notification\n id: tapocam_set_notification\n mode: single\n triggers:\n - trigger: state\n entity_id: group.family\n to: home\n variables:\n mode: 'off'\n - trigger: state\n entity_id: group.family\n to: not_home\n variables:\n mode: '{{ input_boolean.tapocam_notifications }}'\n conditions:\n - condition: state\n alias: process only on production server\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - action: switch.turn_{{ mode }}\n target:\n entity_id: switch.tapo_c520ws_5d82_notifications\n - delay:\n seconds: 15\n - action: switch.turn_{{ mode }}\n target:\n entity_id: switch.tapo_c520ws_5d82_rich_notifications", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "family group", "room": null, "type": "group", "id": { "entity_id": "group.family", "device_id": null } }, { "name": "Tapo C520WS 5D82 notifications", "room": null, "type": "switch", "id": { "entity_id": "switch.tapo_c520ws_5d82_notifications", "device_id": null } }, { "name": "Tapo C520WS 5D82 rich notifications", "room": null, "type": "switch", "id": { "entity_id": "switch.tapo_c520ws_5d82_rich_notifications", "device_id": null } } ] }, { "id": "television_switch_on_plug", "automation": "- alias: television_switch_on_plug\n id: television_switch_on_plug\n triggers:\n - trigger: time\n at: input_datetime.television_switch_on_at\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - action: switch.turn_on\n target:\n entity_id: switch.fernseher", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Fernseher", "room": null, "type": "switch", "id": { "entity_id": "switch.fernseher", "device_id": null } } ] }, { "id": "ups_status_change", "automation": "- alias: ups_status_change\n id: ups_status_change\n triggers:\n - trigger: state\n entity_id: sensor.ups_status\n conditions:\n - condition: template\n value_template: '{{ trigger.from_state is not none and trigger.to_state is not\n none }}'\n actions:\n - action: script.notify\n data:\n domain: ups\n message: 'Neuer Status USV: {{ states ( ''sensor.ups_status'' ) }}'", "config": [ { "name": "UPS status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.ups_status", "device_id": null } } ] }, { "id": "ups_shutdown_on_low_battery", "automation": "- alias: ups_shutdown_on_low_battery\n id: ups_shutdown_on_low_battery\n triggers:\n - platform: numeric_state\n entity_id: sensor.ups_batterielaufzeit\n below: input_number.ups_shutdown_at_battery_runtime\n conditions:\n not:\n - condition: state\n entity_id: sensor.ups_status\n state: Online\n actions:\n - action: script.notify\n data:\n domain: ups\n message: Runterfahren bei USV-Restlaufzeit von {{ '{:02d}:{:02d}'.format ( (states\n ( 'sensor.ups_batterielaufzeit' ) | int / 60) | int, (states ( 'sensor.ups_batterielaufzeit'\n ) | int % 60) | int ) }} min\n - delay:\n minutes: 1\n - action: shell_command.request_shutdown", "config": [ { "name": "UPS battery runtime", "room": null, "type": "sensor", "id": { "entity_id": "sensor.ups_batterielaufzeit", "device_id": null } }, { "name": "UPS status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.ups_status", "device_id": null } } ] }, { "id": "send_alert_after_daily_vacuum_to_empty_the_dustbin", "automation": "- alias: send_alert_after_daily_vacuum_to_empty_the_dustbin\n id: send_alert_after_daily_vacuum_to_empty_the_dustbin\n triggers:\n - trigger: state\n entity_id: device_tracker.galaxy_note_fan_edition\n to: home\n for:\n minutes: 5\n conditions:\n condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: state\n entity_id: input_boolean.daily_vacuum_done\n state: 'on'\n - condition: time\n after: 08:30:00\n before: '23:30:00'\n - condition: template\n value_template: \"{% if states.automation.send_alert_after_daily_vacuum_to_empty_the_dustbin.last_triggered\\\n \\ is not none %} {% if as_timestamp(now()) | int - as_timestamp(states.automation.send_alert_after_daily_vacuum_to_empty_the_dustbin.attributes.last_triggered)\\\n \\ | int > 1800 %} true {% else %} false {% endif %} {% else %}\\n false\\n{%\\\n \\ endif %}\\n\"\n - condition: state\n entity_id: input_boolean.daily_vacuum\n state: 'on'\n actions:\n - action: media_player.volume_set\n data:\n entity_id: media_player.sony_kd_55ag9\n volume_level: 0.7\n - action: tts.google_say\n entity_id: media_player.sony_kd_55ag9\n data:\n message: Der Saugroboter muss geleert werden!\n cache: false", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Galaxy Note Fan Edition", "room": null, "type": "device_tracker", "id": { "entity_id": "device_tracker.galaxy_note_fan_edition", "device_id": null } }, { "name": "Daily Vacuum", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.daily_vacuum", "device_id": null } }, { "name": "Daily Vacuum Done", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.daily_vacuum_done", "device_id": null } }, { "name": "Sony KD 55AG9", "room": null, "type": "media_player", "id": { "entity_id": "media_player.sony_kd_55ag9", "device_id": null } } ] }, { "id": "reset_daily_vacuum_done_state_at_midnight", "automation": "- alias: reset_daily_vacuum_done_state_at_midnight\n id: reset_daily_vacuum_done_state_at_midnight\n triggers:\n - trigger: time\n at: 0:00:00\n actions:\n - action: homeassistant.turn_off\n target:\n entity_id: input_boolean.daily_vacuum_done", "config": [ { "name": "Daily Vacuum", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.daily_vacuum", "device_id": null } }, { "name": "Daily Vacuum Done", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.daily_vacuum_done", "device_id": null } } ] }, { "id": "start_cleaning_ground_floor_room", "automation": "- alias: start_cleaning_ground_floor_room\n id: start_cleaning_ground_floor_room\n initial_state: false\n triggers:\n - trigger: state\n entity_id: input_select.vacuum_ground_floor_room\n from: Auswahl\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - action: input_select.select_option\n target:\n entity_id: input_select.vacuum_ground_floor_room\n data:\n option: Auswahl", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Vacuum ground floor room", "room": null, "type": "input_select", "id": { "entity_id": "input_select.vacuum_ground_floor_room", "device_id": null } } ] }, { "id": "start_cleaning_first_floor_room", "automation": "- alias: start_cleaning_first_floor_room\n id: start_cleaning_first_floor_room\n initial_state: false\n triggers:\n - trigger: state\n entity_id: input_select.vacuum_first_floor_room\n from: Auswahl\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - action: input_select.select_option\n target:\n entity_id: input_select.vacuum_first_floor_room\n data:\n option: Auswahl", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Vacuum first floor room", "room": null, "type": "input_select", "id": { "entity_id": "input_select.vacuum_first_floor_room", "device_id": null } } ] }, { "id": "start_daily_vacuum", "automation": "- alias: start_daily_vacuum\n id: start_daily_vacuum\n triggers:\n - trigger: time_pattern\n minutes: /5\n conditions:\n condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: state\n entity_id: input_boolean.light_simulation\n state: 'off'\n - condition: state\n entity_id: input_boolean.daily_vacuum\n state: 'on'\n - condition: state\n entity_id: input_boolean.daily_vacuum_done\n state: 'off'\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'on'\n - condition: time\n after: input_datetime.vacuum_period_start\n before: input_datetime.vacuum_period_end\n weekday:\n - mon\n - wed\n - condition: state\n entity_id: group.family\n state: not_home\n actions:\n - action: vacuum.start\n target:\n entity_id:\n - vacuum.roborock_s6_ground_floor\n - vacuum.roborock_s6_first_floor\n - action: input_boolean.toggle\n target:\n entity_id: input_boolean.daily_vacuum_done", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "family group", "room": null, "type": "group", "id": { "entity_id": "group.family", "device_id": null } }, { "name": "Workday Sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.workday_sensor", "device_id": null } }, { "name": "Daily Vacuum", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.daily_vacuum", "device_id": null } }, { "name": "Daily Vacuum Done", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.daily_vacuum_done", "device_id": null } }, { "name": "Light Simulation", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.light_simulation", "device_id": null } }, { "name": "Vacuum Period End", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.vacuum_period_end", "device_id": null } }, { "name": "Vacuum Period Start", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.vacuum_period_start", "device_id": null } }, { "name": "Roborock S6 first floor", "room": "first floor", "type": "vacuum", "id": { "entity_id": "vacuum.roborock_s6_first_floor", "device_id": null } }, { "name": "Roborock S6 ground floor", "room": "ground floor", "type": "vacuum", "id": { "entity_id": "vacuum.roborock_s6_ground_floor", "device_id": null } } ] }, { "id": "wallbox_update_allow_charging", "automation": "- alias: wallbox_update_allow_charging\n id: wallbox_update_allow_charging\n mode: single\n triggers:\n - trigger: state\n entity_id: sensor.go_echarger_allow_charging\n actions:\n - variables:\n mode: '{{ ''on'' if trigger.to_state.state == ''1'' else ''off'' }}'\n - action: input_boolean.turn_{{ mode }}\n target:\n entity_id: input_boolean.wallbox_allow_charging", "config": [ { "name": "Wallbox Allow Charging", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.wallbox_allow_charging", "device_id": null } }, { "name": "Go eCharger allow charging", "room": null, "type": "sensor", "id": { "entity_id": "sensor.go_echarger_allow_charging", "device_id": null } } ] }, { "id": "wallbox_set_allow_charging", "automation": "- alias: wallbox_set_allow_charging\n id: wallbox_set_allow_charging\n mode: single\n triggers:\n - trigger: state\n entity_id: input_boolean.wallbox_allow_charging\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - action: modbus.write_register\n data_template:\n hub: go_echarger\n slave: 1\n address: 200\n value: '{{ [1 if is_state ( trigger.entity_id, ''on'' ) else 0, 0] }}'", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Wallbox Allow Charging", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.wallbox_allow_charging", "device_id": null } } ] }, { "id": "wallbox_update_access_state", "automation": "- alias: wallbox_update_access_state\n id: wallbox_update_access_state\n mode: single\n triggers:\n - trigger: state\n entity_id: sensor.go_echarger_access_state\n actions:\n - action: input_select.select_option\n target:\n entity_id: input_select.wallbox_access_state\n data:\n option: '{{ state_attr ( ''input_select.wallbox_access_state'', ''options''\n ) [trigger.to_state.state | int] }}'", "config": [ { "name": "Wallbox access state", "room": null, "type": "input_select", "id": { "entity_id": "input_select.wallbox_access_state", "device_id": null } }, { "name": "Go eCharger access state", "room": null, "type": "sensor", "id": { "entity_id": "sensor.go_echarger_access_state", "device_id": null } } ] }, { "id": "wallbox_set_access_state", "automation": "- alias: wallbox_set_access_state\n id: wallbox_set_access_state\n mode: single\n triggers:\n - trigger: state\n entity_id: input_select.wallbox_access_state\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - action: modbus.write_register\n data_template:\n hub: go_echarger\n slave: 1\n address: 201\n value: '{{ [state_attr ( trigger.entity_id, ''options'' ).index ( trigger.to_state.state\n ), 0] }}'", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Wallbox access state", "room": null, "type": "input_select", "id": { "entity_id": "input_select.wallbox_access_state", "device_id": null } } ] }, { "id": "wallbox_update_cable_lock_mode", "automation": "- alias: wallbox_update_cable_lock_mode\n id: wallbox_update_cable_lock_mode\n mode: single\n triggers:\n - trigger: state\n entity_id: sensor.go_echarger_cable_lock_mode\n actions:\n - action: input_select.select_option\n target:\n entity_id: input_select.wallbox_cable_lock_mode\n data:\n option: '{{ state_attr ( ''input_select.wallbox_cable_lock_mode'', ''options''\n ) [trigger.to_state.state | int] }}'", "config": [ { "name": "Wallbox cable lock mode", "room": null, "type": "input_select", "id": { "entity_id": "input_select.wallbox_cable_lock_mode", "device_id": null } }, { "name": "Go eCharger cable lock mode", "room": null, "type": "sensor", "id": { "entity_id": "sensor.go_echarger_cable_lock_mode", "device_id": null } } ] }, { "id": "wallbox_set_cable_lock_mode", "automation": "- alias: wallbox_set_cable_lock_mode\n id: wallbox_set_cable_lock_mode\n mode: single\n triggers:\n - trigger: state\n entity_id: input_select.wallbox_cable_lock_mode\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - action: modbus.write_register\n data_template:\n hub: go_echarger\n slave: 1\n address: 204\n value: '{{ [state_attr ( trigger.entity_id, ''options'' ).index ( trigger.to_state.state\n ), 0] }}'", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Wallbox cable lock mode", "room": null, "type": "input_select", "id": { "entity_id": "input_select.wallbox_cable_lock_mode", "device_id": null } } ] }, { "id": "wallbox_update_led_brightness", "automation": "- alias: wallbox_update_led_brightness\n id: wallbox_update_led_brightness\n mode: single\n triggers:\n - trigger: state\n entity_id: sensor.go_echarger_led_brightness\n actions:\n - action: input_number.set_value\n target:\n entity_id: input_number.wallbox_led_brightness\n data:\n value: '{{ trigger.to_state.state | int }}'", "config": [ { "name": "Wallbox LED brightness", "room": null, "type": "input_number", "id": { "entity_id": "input_number.wallbox_led_brightness", "device_id": null } }, { "name": "Go eCharger LED brightness", "room": null, "type": "sensor", "id": { "entity_id": "sensor.go_echarger_led_brightness", "device_id": null } } ] }, { "id": "wallbox_set_led_brightness", "automation": "- alias: wallbox_set_led_brightness\n id: wallbox_set_led_brightness\n mode: single\n triggers:\n - trigger: state\n entity_id: input_number.wallbox_led_brightness\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - action: modbus.write_register\n data_template:\n hub: go_echarger\n slave: 1\n address: 206\n value: '{{ [states ( trigger.entity_id ) | int, 0] }}'", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Wallbox LED brightness", "room": null, "type": "input_number", "id": { "entity_id": "input_number.wallbox_led_brightness", "device_id": null } } ] }, { "id": "wallbox_update_led_save_energy", "automation": "- alias: wallbox_update_led_save_energy\n id: wallbox_update_led_save_energy\n mode: single\n triggers:\n - trigger: state\n entity_id: sensor.go_echarger_led_save_energy\n actions:\n - variables:\n mode: '{{ ''on'' if trigger.to_state.state == ''1'' else ''off'' }}'\n - action: input_boolean.turn_{{ mode }}\n target:\n entity_id: input_boolean.wallbox_led_save_energy", "config": [ { "name": "Wallbox LED Save Energy", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.wallbox_led_save_energy", "device_id": null } }, { "name": "Go eCharger LED save energy", "room": null, "type": "sensor", "id": { "entity_id": "sensor.go_echarger_led_save_energy", "device_id": null } } ] }, { "id": "wallbox_set_led_save_energy", "automation": "- alias: wallbox_set_led_save_energy\n id: wallbox_set_led_save_energy\n mode: single\n triggers:\n - trigger: state\n entity_id: input_boolean.wallbox_led_save_energy\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - action: modbus.write_register\n data_template:\n hub: go_echarger\n slave: 1\n address: 207\n value: '{{ [1 if is_state ( ''input_boolean.wallbox_led_save_energy'', ''on''\n ) else 0, 0] }}'", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Wallbox LED Save Energy", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.wallbox_led_save_energy", "device_id": null } } ] }, { "id": "wallbox_update_max_current", "automation": "- alias: wallbox_update_max_current\n id: wallbox_update_max_current\n mode: single\n triggers:\n - trigger: state\n entity_id: sensor.go_echarger_max_current\n actions:\n - action: input_number.set_value\n target:\n entity_id: input_number.wallbox_max_current\n data:\n value: '{{ trigger.to_state.state | int }}'", "config": [ { "name": "Wallbox max current", "room": null, "type": "input_number", "id": { "entity_id": "input_number.wallbox_max_current", "device_id": null } }, { "name": "Go eCharger max current", "room": null, "type": "sensor", "id": { "entity_id": "sensor.go_echarger_max_current", "device_id": null } } ] }, { "id": "wallbox_set_max_current", "automation": "- alias: wallbox_set_max_current\n id: wallbox_set_max_current\n mode: single\n triggers:\n - trigger: state\n entity_id: input_number.wallbox_max_current\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - action: modbus.write_register\n data_template:\n hub: go_echarger\n slave: 1\n address: 211\n value: '{{ [states ( trigger.entity_id ) | int, 0] }}'", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Wallbox max current", "room": null, "type": "input_number", "id": { "entity_id": "input_number.wallbox_max_current", "device_id": null } } ] }, { "id": "wallbox_update_current_volatile", "automation": "- alias: wallbox_update_current_volatile\n id: wallbox_update_current_volatile\n mode: single\n triggers:\n - trigger: state\n entity_id: sensor.go_echarger_current_volatile\n actions:\n - action: input_number.set_value\n target:\n entity_id: input_number.wallbox_current_volatile\n data:\n value: '{{ trigger.to_state.state | int }}'", "config": [ { "name": "Wallbox current volatile", "room": null, "type": "input_number", "id": { "entity_id": "input_number.wallbox_current_volatile", "device_id": null } }, { "name": "Go eCharger current volatile", "room": null, "type": "sensor", "id": { "entity_id": "sensor.go_echarger_current_volatile", "device_id": null } } ] }, { "id": "wallbox_set_current_volatile", "automation": "- alias: wallbox_set_current_volatile\n id: wallbox_set_current_volatile\n mode: single\n triggers:\n - trigger: state\n entity_id: input_number.wallbox_current_volatile\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - action: modbus.write_register\n data_template:\n hub: go_echarger\n slave: 1\n address: 299\n value: '{{ [states ( trigger.entity_id ) | int, 0] }}'", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Wallbox current volatile", "room": null, "type": "input_number", "id": { "entity_id": "input_number.wallbox_current_volatile", "device_id": null } } ] }, { "id": "wallbox_update_current_eeprom", "automation": "- alias: wallbox_update_current_eeprom\n id: wallbox_update_current_eeprom\n mode: single\n triggers:\n - trigger: state\n entity_id: sensor.go_echarger_current_eeprom\n actions:\n - action: input_number.set_value\n target:\n entity_id: input_number.wallbox_current_eeprom\n data:\n value: '{{ trigger.to_state.state | int }}'", "config": [ { "name": "Wallbox current EEPROM", "room": null, "type": "input_number", "id": { "entity_id": "input_number.wallbox_current_eeprom", "device_id": null } }, { "name": "Go eCharger current EEPROM", "room": null, "type": "sensor", "id": { "entity_id": "sensor.go_echarger_current_eeprom", "device_id": null } } ] }, { "id": "wallbox_set_current_eeprom", "automation": "- alias: wallbox_set_current_eeprom\n id: wallbox_set_current_eeprom\n mode: single\n triggers:\n - trigger: state\n entity_id: input_number.wallbox_current_eeprom\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - action: modbus.write_register\n data_template:\n hub: go_echarger\n slave: 1\n address: 300\n value: '{{ [states ( trigger.entity_id ) | int, 0] }}'", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Wallbox current EEPROM", "room": null, "type": "input_number", "id": { "entity_id": "input_number.wallbox_current_eeprom", "device_id": null } } ] }, { "id": "wallbox_update_phase_switch_mode", "automation": "- alias: wallbox_update_phase_switch_mode\n id: wallbox_update_phase_switch_mode\n mode: single\n triggers:\n - trigger: state\n entity_id: sensor.go_echarger_phase_switch_mode\n actions:\n - action: input_select.select_option\n target:\n entity_id: input_select.wallbox_phase_switch_mode\n data:\n option: '{{ state_attr ( ''input_select.wallbox_phase_switch_mode'', ''options''\n ) [states ( trigger.entity_id ) | int] }}'", "config": [ { "name": "Wallbox phase switch mode", "room": null, "type": "input_select", "id": { "entity_id": "input_select.wallbox_phase_switch_mode", "device_id": null } }, { "name": "Go eCharger phase switch mode", "room": null, "type": "sensor", "id": { "entity_id": "sensor.go_echarger_phase_switch_mode", "device_id": null } } ] }, { "id": "wallbox_set_phase_switch_mode", "automation": "- alias: wallbox_set_phase_switch_mode\n id: wallbox_set_phase_switch_mode\n mode: single\n triggers:\n - trigger: state\n entity_id: input_select.wallbox_phase_switch_mode\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - action: modbus.write_register\n data_template:\n hub: go_echarger\n slave: 1\n address: 332\n value: '{{ [state_attr ( trigger.entity_id, ''options'' ).index ( states ( trigger.entity_id\n ) ), 0] }}'", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Wallbox phase switch mode", "room": null, "type": "input_select", "id": { "entity_id": "input_select.wallbox_phase_switch_mode", "device_id": null } } ] }, { "id": "wallbox_update_cloud_disabled", "automation": "- alias: wallbox_update_cloud_disabled\n id: wallbox_update_cloud_disabled\n mode: single\n triggers:\n - trigger: state\n entity_id: sensor.go_echarger_cloud_disabled\n actions:\n - variables:\n mode: '{{ ''on'' if trigger.to_state.state == ''1'' else ''off'' }}'\n - action: input_boolean.turn_{{ mode }}\n target:\n entity_id: input_boolean.wallbox_cloud_disabled", "config": [ { "name": "Wallbox Cloud Disabled", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.wallbox_cloud_disabled", "device_id": null } }, { "name": "Go eCharger cloud disabled", "room": null, "type": "sensor", "id": { "entity_id": "sensor.go_echarger_cloud_disabled", "device_id": null } } ] }, { "id": "wallbox_set_cloud_disabled", "automation": "- alias: wallbox_set_cloud_disabled\n id: wallbox_set_cloud_disabled\n mode: single\n triggers:\n - trigger: state\n entity_id: input_boolean.wallbox_cloud_disabled\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n actions:\n - action: modbus.write_register\n data_template:\n hub: go_echarger\n slave: 1\n address: 217\n value: '{{ [state_attr ( trigger.entity_id, ''options'' ).index ( states ( trigger.entity_id\n ) ), 0] }}'", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "Wallbox Cloud Disabled", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.wallbox_cloud_disabled", "device_id": null } } ] }, { "id": "wallbox_start_charging", "automation": "- alias: wallbox_start_charging\n id: wallbox_start_charging\n triggers:\n - trigger: state\n entity_id: sensor.go_echarger_allow_charging\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: state\n entity_id: sensor.go_echarger_allow_charging\n state: '1'\n actions:\n - action: input_number.set_value\n target:\n entity_id: number.evcc_wallbox_limit_soc\n data:\n value: 100\n - action: select.select_option\n target:\n entity_id: select.evcc_priority_soc\n data:\n option: '95'\n - action: select.select_option\n target:\n entity_id: select.evcc_wallbox_mode\n data:\n option: pv\n - action: script.notify\n data:\n domain: wallbox\n message: Laden gestartet", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "EVCC wallbox limit SOC", "room": null, "type": "number", "id": { "entity_id": "number.evcc_wallbox_limit_soc", "device_id": null } }, { "name": "EVCC priority SOC", "room": null, "type": "select", "id": { "entity_id": "select.evcc_priority_soc", "device_id": null } }, { "name": "EVCC wallbox mode", "room": null, "type": "select", "id": { "entity_id": "select.evcc_wallbox_mode", "device_id": null } }, { "name": "Go eCharger allow charging", "room": null, "type": "sensor", "id": { "entity_id": "sensor.go_echarger_allow_charging", "device_id": null } } ] }, { "id": "wallbox_stop_charging", "automation": "- alias: wallbox_stop_charging\n id: wallbox_stop_charging\n triggers:\n - trigger: template\n value_template: '{{ states ( ''sensor.evcc_wallbox_vehicle_soc'' ) | float >=\n states ( ''number.evcc_wallbox_limit_soc'' ) | float }}'\n - trigger: event\n event_type: bosch_shc.event\n event_data:\n event_type: SCENARIO\n event_subtype: Laden beenden\n conditions:\n - condition: state\n entity_id: binary_sensor.prod_mode\n state: 'on'\n - condition: state\n entity_id: binary_sensor.evcc_wallbox_enabled\n state: 'on'\n actions:\n - action: select.select_option\n target:\n entity_id: select.evcc_wallbox_mode\n data:\n option: 'off'\n - action: script.notify\n data:\n domain: wallbox\n message: Laden gestoppt", "config": [ { "name": "production mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.prod_mode", "device_id": null } }, { "name": "EVCC Wallbox Enabled", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.evcc_wallbox_enabled", "device_id": null } }, { "name": "EVCC wallbox limit SOC", "room": null, "type": "number", "id": { "entity_id": "number.evcc_wallbox_limit_soc", "device_id": null } }, { "name": "EVCC wallbox mode", "room": null, "type": "select", "id": { "entity_id": "select.evcc_wallbox_mode", "device_id": null } } ] } ]