Hello everyone, having a bit of a problem with sending a float to a device. What I have now is a script triggered every 10 minutes by an automation:
alias: TempToiletUpdateInputNumber
sequence:
- action: input_number.set_value
metadata: {}
data:
value: "{{ states('sensor.sensortvoctoiletstue_temperature') |float(8)*100 }}"
target:
entity_id: input_number.temp_toilet_stue - device_id: f6382c4875c06eadc67e40152187efa7
domain: number
entity_id: ea4ba049fbb95513a6fcae3021ba7947
type: set_value
value: "{{ states('sensor.sensortvoctoiletstue_temperature') |float(8)*100 }}"
description: ""
icon: mdi:temperature-celsius
It's the last value that's the problem. I tried without the "", same error message. I tried with input_number.temp_toilet_stue. And other things. Keep getting the error message "Message malformed: expected float for dictionary value @ data['value']" . When reading the content of input_number.temp_toilet_stue it >looks< like a float, but might be a string... Help please? π
