Open jonthekiller opened 7 months ago
I had the same issue (I think) - mine kept reverting to the internal sensor. Resolved it with a heartbeat setting:
sensor:
- platform: homeassistant
name: "Temperature Sensor From Home Assistant"
entity_id: sensor.house_lounge_weather_temperature
on_value:
then:
- lambda: 'id(hp).set_remote_temperature(x);'
filters:
- heartbeat: 15s
I have configured the project on an ESP-01 and I have an issue when using an external temperature sensor from HomeAssistant. The temperature is taken into account but the code seems to rollback to the internal temperature the majority of the time.
I took the temperature from a Philips Hue motion sensor, so I was thinking that the issue was maybe because the value was too old as not refreshed every tick. So I have configured a MQTT to update the value each 2 seconds but the issue stay.
Here is the history of the value retrieved by HomeAssistant from the ESP-01.
Here is the ESP configuration:
I can see inside the logs that the configuration seems correct: