diff --git a/automations.yaml b/automations.yaml index 97b6527..8eb3027 100644 --- a/automations.yaml +++ b/automations.yaml @@ -35,17 +35,6 @@ light_target: device_id: 226779fb30bd68c5a2784ccd762d90e9 no_motion_wait: 20 -- id: '1730726243854' - alias: Luce Automatica Scala Mansarda - description: '' - use_blueprint: - path: homeassistant/motion_light_dual.yaml - input: - motion_entity_down: binary_sensor.presenza_bassa_scala_mansarda_occupancy - motion_entity_up: binary_sensor.presenza_alta_scala_mansarda_occupancy - light_target: - device_id: 702137a6f2c17b89fdb0598f7003743c - no_motion_wait: 20 - id: '1731410549094' alias: EVcharge_front_charging description: '' @@ -74,13 +63,3 @@ entity_id: c1f2a5e1b3bc7807a8b291b6fd6dbb31 domain: switch mode: single -- id: '1731631866160' - alias: test1 - description: '' - use_blueprint: - path: homeassistant/motion_light_dual_lux.yaml - input: - motion_entity_down: binary_sensor.presenza_bassa_scala_mansarda_occupancy - motion_entity_up: binary_sensor.presenza_alta_scala_mansarda_occupancy - light_target: - device_id: 702137a6f2c17b89fdb0598f7003743c diff --git a/blueprints/automation/homeassistant/heat_save.yaml b/blueprints/automation/homeassistant/heat_save.yaml index d396e4c..71976dc 100644 --- a/blueprints/automation/homeassistant/heat_save.yaml +++ b/blueprints/automation/homeassistant/heat_save.yaml @@ -87,27 +87,3 @@ actions: title: HA template 'heat_save' ERROR message: > Bad Conditions state {{ states( sensor_status ) }} - -# - if: -# - condition: state -# entity_id: !input window_sensor -# state: "true" -# for: -# hours: 0 -# minutes: 0 -# seconds: 10 -# then: -# - action: climate.set_hvac_mode -# metadata: {} -# data: -# hvac_mode: "off" -# target: -# entity_id: !input climate_target -# else: -# - action: climate.set_hvac_mode -# metadata: {} -# data: -# hvac_mode: heat -# target: -# entity_id: !input climate_target -# mode: single diff --git a/blueprints/automation/homeassistant/motion_light_dual.yaml b/blueprints/automation/homeassistant/motion_light_dual.yaml index 4e6e8c0..f44b227 100644 --- a/blueprints/automation/homeassistant/motion_light_dual.yaml +++ b/blueprints/automation/homeassistant/motion_light_dual.yaml @@ -1,6 +1,6 @@ blueprint: - name: Dual Sensor Motion-activated Light Customised with selectable condition after sunset and before sunrise - description: Turn on a light when motion is detected. + name: Dual Sensor Sunrise / Sunset Motion-activated Light + description: Turn on a light when motion is detected (with Sunrise / Sunset). domain: automation # source_url: https://github.com/home-assistant/core/blob/dev/homeassistant/components/automation/blueprints/motion_light.yaml author: Home Assistant Rewised by Tiziano Trabattoni diff --git a/blueprints/automation/homeassistant/motion_light_dual_lux.yaml b/blueprints/automation/homeassistant/motion_light_dual_lux.yaml index ee8708a..c1138d3 100644 --- a/blueprints/automation/homeassistant/motion_light_dual_lux.yaml +++ b/blueprints/automation/homeassistant/motion_light_dual_lux.yaml @@ -1,9 +1,9 @@ blueprint: name: Dual Sensor Sunset and Luminescence Motion-activated Light - description: Turn on a light when motion is detected. + description: Turn on a light when motion is detected (with Sunrise / Sunset / Luminance). domain: automation # source_url: https://github.com/home-assistant/core/blob/dev/homeassistant/components/automation/blueprints/motion_light.yaml - author: Home Assistant Rewised by Tiziano Trabattoni + author: Tiziano Trabattoni input: motion_entity_down: name: Motion Sensor (Sensore Basso) @@ -33,15 +33,6 @@ blueprint: default: on selector: boolean: - no_motion_wait: - name: Wait time - description: Time to leave the light on after last motion is detected. - default: 30 - selector: - number: - min: 10 - max: 120 - unit_of_measurement: seconds trigger_variables: use_sun: !input sun_condition @@ -71,10 +62,13 @@ actions: - condition: template value_template: "{{ use_sun }}" sequence: + # we need to use either external luminescence or sunrise and sunset conditions - if: - or: + # external light is LOW (below Helper daylight_luminescence set value) - condition: template - value_template: "{{ ( sensor.esterno_luminosita_illuminance_lux | int ) < input_number.daylight_luminescence }}" + value_template: "{{ ( states('sensor.esterno_luminosita_illuminance_lux') | int ) < ( states('input_number.daylight_luminescence') | int ) }}" + # after sunrise and before sunset - condition: sun after: sunset after_offset: "-01:00:00" @@ -96,6 +90,7 @@ actions: transition: 10 target: !input light_target default: + # the motion light is always active - if: - condition: trigger id: diff --git a/blueprints/automation/homeassistant/motion_light_dual_no_sun.yaml b/blueprints/automation/homeassistant/motion_light_dual_no_sun.yaml index 639ece1..b16dda1 100644 --- a/blueprints/automation/homeassistant/motion_light_dual_no_sun.yaml +++ b/blueprints/automation/homeassistant/motion_light_dual_no_sun.yaml @@ -1,6 +1,6 @@ blueprint: - name: Dual Sensor Motion-activated Light Customised with selectable condition after sunset and before sunrise - description: Turn on a light when motion is detected. + name: Dual Sensor Motion-activated Light (no Sunrise / Sunset) + description: Turn on a light when motion is detected (active all time) domain: automation # source_url: https://github.com/home-assistant/core/blob/dev/homeassistant/components/automation/blueprints/motion_light.yaml author: Home Assistant Rewised by Tiziano Trabattoni diff --git a/blueprints/automation/homeassistant/motion_light.yaml b/blueprints/automation/unused/motion_light.yaml similarity index 100% rename from blueprints/automation/homeassistant/motion_light.yaml rename to blueprints/automation/unused/motion_light.yaml diff --git a/blueprints/automation/homeassistant/motion_light_custom.yaml b/blueprints/automation/unused/motion_light_custom.yaml similarity index 100% rename from blueprints/automation/homeassistant/motion_light_custom.yaml rename to blueprints/automation/unused/motion_light_custom.yaml