Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bluetooth temp sensor #67

Open
eddydordt opened this issue Oct 24, 2023 · 9 comments
Open

Bluetooth temp sensor #67

eddydordt opened this issue Oct 24, 2023 · 9 comments

Comments

@eddydordt
Copy link

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
Copy link

JoepWi commented Oct 24, 2023

Add "| float" before the "}}"

@eddydordt
Copy link
Author

eddydordt commented Oct 25, 2023

Like this:

afbeelding

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

@JoepWi
Copy link

JoepWi commented Oct 25, 2023

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
Copy link
Author

eddydordt commented Oct 25, 2023

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
Copy link
Author

I found the solution, the indent was the problem:

afbeelding

Thx for the help

@persistive
Copy link

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
Copy link
Author

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

@persistive
Copy link

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
Copy link

Dennis-Q commented Oct 4, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants