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

Adding wireless remote temperature reading #92

Open
persistive opened this issue May 28, 2024 · 4 comments
Open

Adding wireless remote temperature reading #92

persistive opened this issue May 28, 2024 · 4 comments

Comments

@persistive
Copy link

At this moment two possibilities for room temperature readings are possible: internal temperature and an external wired sensor.
I would like to use a temperature reading connected wireless to HA as the room temperature.
I presume this should be possible but before i damage something in the software i would appriciate some help with this.
Thanks in advance,

Paul

@scottg88
Copy link

scottg88 commented Jun 3, 2024

Hey Paul, conveniently this is precisely the reason for the HA service call which is surfaced by the device in the ESPHome YAML called set_api_room_temperature:

https://github.com/ginkage/MHI-AC-Ctrl-ESPHome/blob/master/lr_mhi_ac_ctrl.yaml#L50

It shows up as esphome.<ac_name>_set_api_room_temperature in Home Assistant when calling a service in an automation.

Like the comment the YAML says, you need to ensure you publish the value (whether it's changed or not) at a higher frequency than room_temp_api_timeout seconds, which by default is 120 seconds. This means more often than every 2 minutes. I chose to do it every 1 minute. If you don't do it in time, the temperature will fall back to the internal sensor automatically (which would cause weird behaviour if the AC kept swapping temperatures between the two).

Here's an example HA automation for you using a temperature sensor state:

alias: Set Room Temps
description: ""
trigger:
  - platform: time_pattern
    seconds: "0"
condition: []
action:
  - service: esphome.example_ac_set_api_room_temperature
    data:
      value: "{{ states('sensor.example_temperature') }}"
mode: single

@persistive
Copy link
Author

Thanks Scottg88,

I saw to late that Eddydordt also opened a likewise issue
I have used his propasal and that worked great. Yours is a little more extended, not sure if this will prevent future issues.
For now many thanks for your contribution, i'm glad so many talented guys are willing to help.

@persistive
Copy link
Author

Another question if i may.
The remote Troom reading is working fine now.
The only issue that i have is the 2 deg. offset between the setpoint and the remote (via bluetooth) measured Troom.
With an external mounted temp sensor this offset can be corrected.
Is that also possible for the remote bluetooth reading, and if so, how should this be done?
Thanks in advance.

@scottg88
Copy link

Yeah you can do maths in the home assistant automation to add an offset. You probably need to do it conditionally based on mode. In practical experience there's not really a flat offset, the overshoot depends on a lot on how you have things set and where your temperature sensor is. You'd have to experiment and adjust throughout the seasons to find what makes sense for each room.

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

2 participants