ginkage / MHI-AC-Ctrl-ESPHome

ESPHome integration for MHI-AC-Ctrl project
MIT License
101 stars 35 forks source link

Bluetooth temp sensor #67

Open eddydordt opened 11 months ago

eddydordt commented 11 months ago

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.

afbeelding

Can someone tell me what's going wrong?

JoepWi commented 11 months ago

Add "| float" before the "}}"

eddydordt commented 11 months ago

Like this:

afbeelding

This still doesn't work, but if I enter just a number it works

JoepWi commented 11 months ago

Like this:

afbeelding

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 }}"

eddydordt commented 11 months ago

I still get an error:

afbeelding

If I put: '{{ states("sensor.kledingkamer_temperature") | float }}' in the template page on HA I get the right result

eddydordt commented 11 months ago

I found the solution, the indent was the problem:

afbeelding

Thx for the help

persistive commented 4 months ago

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? afbeelding

eddydordt commented 4 months ago

You need to put this service in automation. And let it publish every 30 seconds or so

persistive commented 4 months ago

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.

Dennis-Q commented 1 day ago

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.