Happy New year @everybody,
Iam trying to automate the set point on my boiler but now I am stuck.
I integrated the Vissman API via HACS and can set the target temperature. Fine.
hvac_modes:
- "off"
- auto
min_temp: 3
max_temp: 37
target_temp_step: 1
preset_modes:
- comfort
- eco
- home
- sleep
current_temperature: 32
temperature: 20
hvac_action: idle
preset_mode: home
vicare_programs:
- comfort
- eco
- forcedLastFromSchedule
- normal
- reduced
- reducedEnergySaving
- standby
friendly_name: E3_Vitodens_200_0821 Heizung
supported_features: 401
active_vicare_program: normal
active_vicare_mode: heating
heating_curve_slope: 0.8
heating_curve_shift: 9
vicare_modes:
- heating
- standby
The temperature Value is what I am after.
I managed to calculate the temperature setpoint from all my Thermostats by creating a helper Sensor fot the Setpoint like so
- sensor:
- name: KĂźche Thermostat SET Temperature
unique_id: kuche_settemperature
state: "{{ state_attr('climate.kuche_thermostat', 'temperature') }}"
- sensor:
- name: Atelier Thermostat SET Temperature
unique_id: atelier_settemperature
state: "{{ state_attr('climate.gastezimmer_thermostat', 'temperature') }}"
- sensor:
- name: Badezimmer Thermostat SET Temperature
unique_id: badezimmer_settemperature
state: "{{ state_attr('climate.badezimmer_thermostat' 'temperature') }}"
- sensor:
- name: EG Flur Thermostat SET Temperature
unique_id: eg_flur_settemperature
state: "{{ state_attr('climate.eg_flur_thermostat', 'temperature') }}"
- sensor:
- name: Gäste WG Thermostat SET Temperature
unique_id: gaste_wc_settemperature
state: "{{ state_attr('climate.gaste_wc_thermostat', 'temperature') }}"
- sensor:
- name: Jurij Thermostat SET Temperature
unique_id: jurij_settemperature
state: "{{ state_attr('climate.hm_tc_it_wm_w_eu_neq0935537', 'temperature') }}"
- sensor:
- name: Schlafzimmer Thermostat SET Temperature
unique_id: shclafzimmer_settemperature
state: "{{ state_attr('climate.schlafzimmer_thermostat', 'temperature') }}"
- sensor:
- name: Wohnzimmer Thermostat SET Temperature
unique_id: wohnzimemer_settemperature
state: "{{ state_attr('climate.wohnzimmer_thermostat', 'temperature') }}"
Than summarize them to get the highes Value round up to thenxt full digit by using a statiscs helper add all my Createrd sensors, set accuracy to full dezimal only.
It shows the correct value. Looks fine to me.
Now I try to setup an automation (in the gui, because I am not good in Programming Syntax)
Trigger any change of the Statistics Helper (that works)
But I canât figure out how to pass the value of this helper to my target device.
I even managed to setup a variable, but I can enter only numbers into the Value filed within the gui.
Also the state of my Statistics helper looks far from what I expected.
I expected to only get the 23 out of it, not all that ither stuff.
Here is the yaml code of the automation I tried to build in the gui.
alias: Temperatur Anforderung Heizung
description: ""
triggers:
- trigger: state
entity_id:
- sensor.temperatur_anforderung
conditions: []
actions:
- variables:
setpoint: |
{{ state_attr('sensor.temperatur_anforderung', 'temperature')}}
enabled: true
- device_id: 6b5f511f8c041d27edcbf37ea68691db
domain: number
entity_id: aa7c2c9b93df203f3e5361369419b2bf
type: set_value
value: 20
mode: single
As soon as I try to add something like {{setpoint}} instead of the 20 at value, I get an error.
Or even the full state_attr line, I also get an error.
Message malformed: expected float for dictionary value @ data[âvalueâ]
I googled for it but canât figure out what it means.
Also it is very confusing that there are other automations that look totally different they have an extra line data: and than a sub point of value:
I assume this is some old stuff but as I found a lot of it, it really confuses me.
I use HA 2024.12.5 on HAOS 14.1 in a Proxmox KVM.
Any Help would be much appreciated.