Open eddydordt opened 1 year ago
Add "| float" before the "}}"
Like this:
This still doesn't work, but if I enter just a number it works
Like this:
This still doesn't work
Change to yaml mode and then do it like this: services: esphome.mhi_YOURDEVICENAME_api_room_temperature data: value: "{{ states('YOURDEVICENAME') | float }}"
I still get an error:
If I put: '{{ states("sensor.kledingkamer_temperature") | float }}' in the template page on HA I get the right result
I found the solution, the indent was the problem:
Thx for the help
Edddydort,
I have copied your solution to use a external wifi temp reading as TRoom value. The problem is that i need to hit the "call service" button to update the external temperature reading. Am i doing something wrong?
You need to put this service in automation. And let it publish every 30 seconds or so
Thanks Eddydordt,
I've managed to get it to work allthough it feels like a "way arround". Would it not be better to directly lead the Troom input to an available temperature entity in HA? Nevertheless many thanks for your help.
I think ESPHome has the ability to read sensors directly from HA and use them, but then you would need to create the automation in ESPHome. In reality, I don't think it's going to be more reliable since you still need your home assistant to be available.
The only more neat solution would be a wired temperature sensor or a bluetooth sensor which is directly connected to the ESP that controls your AC.. But bluetooth/wifi share the same antenna on ESPHome so it could influence the stability of the connectivity.. And then you still need an automation within ESPHome as there's no native implementation currently.
Hello,
I have updated from the MQTT version to esphome. In MQTT, I could write the temperature from a Bluetooth sensor to the unit. When I want to do this now, I get an error:
This service requires field value, please enter a valid value for value.
Can someone tell me what's going wrong?