I have a Viessman heating system and use the Vicare integration. In the integration, there is an entity-id called water_heater.xxxx_ warmwasser. When this is placed on the dashboard, it correctly shows the current water temperature (besides other things).
Now I want to use this temperature value of the water boiler in Node_Red to switch the electric heating coil. But water_heater seems to be a ‘structure’ which cannot be simply read with an ‘events:state’ or ‘get entities’.
Can someone please help me how to get the current_temperature value?
PS: if I poll the entity-id state and send the result to a debug node, I get the following:
{“entity_id”:“water_heater.vscotho1_72_warmwasser”,“state”:“off”,“attributes”:{“min_temp”:10,“max_temp”:60,“current_temperature”:62.2,“temperature”:null,“target_temp_high”:null,“target_temp_low”:null,“friendly_name”:“Warmwasser”,“supported_features”:1},“context”:{“id”:“01J0BHDSE30DKCZSNZWTMQAYXD”,“parent_id”:null,“user_id”:null},“last_changed”:“2024-06-11T15:04:28.791Z”,“last_updated”:“2024-06-14T14:11:34.979Z”,“timeSinceChangedMs”:257605041}
PPS: I have found a solution now … have created a template like this:
template:
- sensor:
- name: "Warmwasser_Viess"
unique_id: sensor.Warmwater_viess
unit_of_measurement: "°C"
state_class: measurement
device_class: temperature
state: >
{% set ww_viess = state_attr('water_heater.vscotho1_72_warmwasser','current_temperature') %}
{{ ww_viess }}