diff --git a/.HA_VERSION b/.HA_VERSION index 8f20875..d7c0328 100644 --- a/.HA_VERSION +++ b/.HA_VERSION @@ -1 +1 @@ -2025.7.2 \ No newline at end of file +2025.8.3 \ No newline at end of file diff --git a/automations.yaml b/automations.yaml index 69dedce..8198fe1 100644 --- a/automations.yaml +++ b/automations.yaml @@ -34,20 +34,7 @@ motion_entity2: binary_sensor.presenza_bassa_scala_mansarda_occupancy light_target: device_id: 702137a6f2c17b89fdb0598f7003743c -- id: '1731705400752' - alias: Luce Automatica Scala Taverna - description: '' - use_blueprint: - path: homeassistant/motion_light_dual_ng.yaml - input: - motion_entity1: binary_sensor.presenza_alta_scala_taverna_occupancy - motion_entity2: binary_sensor.presenza_bassa_scala_taverna_occupancy - light_target: - device_id: - - 6d330da42619e33e75960756cd2262eb - use_sun: false - dont_disturb: false - no_motion_wait: 20 + no_motion_wait: 30 - id: '1732739522749' alias: Luce Automatica Taverna Garage description: '' @@ -123,7 +110,7 @@ device_id: d5b217920e2f4fe83e0496257b27e39c use_sun: false dont_disturb: false - no_presence_wait: 240 + no_presence_wait: 180 - id: '1753031203413' alias: Apri-Cancelletto description: '' @@ -159,3 +146,31 @@ target: device_id: 4a76297a493304816b1084c6979f4801 mode: single +- id: '1753371588861' + alias: Cancelletto Alert + description: '' + triggers: + - trigger: state + entity_id: + - binary_sensor.cancelletto_visitor + to: 'on' + conditions: [] + actions: + - device_id: 61ac46de1cc773e1b7d5faa379ee465b + domain: mobile_app + type: notify + message: Qualcuno ha suonato al Cancelletto usa Home Assistant + mode: single +- id: '1756127648616' + alias: Luce Automatica Scala Taverna + description: '' + use_blueprint: + path: homeassistant/motion_light_dual_ng.yaml + input: + motion_entity1: binary_sensor.presenza_alta_scala_taverna_occupancy + motion_entity2: binary_sensor.presenza_bassa_scala_taverna_occupancy + light_target: + device_id: 6d330da42619e33e75960756cd2262eb + use_sun: false + dont_disturb: false + no_motion_wait: 30 diff --git a/blueprints/automation/homeassistant/timed_switch.yaml b/blueprints/automation/homeassistant/timed_switch.yaml new file mode 100644 index 0000000..07a839d --- /dev/null +++ b/blueprints/automation/homeassistant/timed_switch.yaml @@ -0,0 +1,42 @@ +blueprint: + name: timed_switch + domain: switch + description: Activate a switch for a cerrain timeation + author: Tiziano Trabattoni + input: + button: + name: bt + selector: + target: + entity: + domain: input_button + + switch_target: + name: sw + selector: + target: + entity: + domain: switch + time: + name: tim + selector: + number: + min: 0 + max: 300 + unit_of_measurement: seconds + +triggers: + - trigger: state + entity_id: !input button + id: start_now + +conditions: [] + +actions: + - action: switch.turn_on + entity_id: !input switch_target + + - delay: !input tim + + - action: switch.turn_off + entity_id: !input switch_target diff --git a/configuration.yaml b/configuration.yaml index 35d934d..4cdc9b5 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -60,33 +60,33 @@ mqtt: - name: HP_power unit_of_measurement: "W" unique_id: mon_hp_pw - state_topic: monitoring/et/values + state_topic: monitoring/hw/heatpump value_template: >- - {{ value.split(',')[1] | int }} + {{ value_json.power | int }} - name: HP_max_power unit_of_measurement: "W" unique_id: mon_hp_max_pw - state_topic: monitoring/et/values + state_topic: monitoring/hw/heatpump value_template: >- - {{ value.split(',')[0] | int }} + {{ value_json.hp_max_power | int }} - name: ACS_temp unit_of_measurement: "'C" unique_id: mon_acs_temp - state_topic: monitoring/et/values + state_topic: monitoring/hw/temperatures value_template: >- - {{ (value.split(',')[3] | int) / 10 }} + {{ value_json.acs | int }} - name: Heating_temp unit_of_measurement: "'C" unique_id: mon_heating_temp - state_topic: monitoring/et/values + state_topic: monitoring/hw/temperatures value_template: >- - {{ (value.split(',')[8] | int) / 10 }} + {{ value_json.heating | int }} - name: Solar_temp unit_of_measurement: "'C" unique_id: mon_solar_temp - state_topic: monitoring/et/values + state_topic: monitoring/hw/temperatures value_template: >- - {{ (value.split(',')[7] | int) / 10 }} + {{ value_json.solar | int }} - name: SE_AC_voltage unit_of_measurement: "V" unique_id: mon_se_ac_voltage @@ -147,3 +147,5 @@ lovelace: type: module - url: /local/community/power-distribution-card/power-distribution-card.js type: module + - url: /hacsfiles/Bubble-Card/bubble-card.js + type: module