angelnu / home_assistant_thethingsnetwork

TheThingsNetwork v3 integration for Home Assistant
33 stars 8 forks source link

Log Warnings Dragino LDS02 Door Sensor #25

Closed stadelES closed 3 months ago

stadelES commented 6 months ago

I found some warnings in the log:

Entity sensor.garage_tor_sensor_bat_v (<class 'custom_components.thethingsnetwork.TTN_client.TtnDataSensor'>) is using self.async_update_ha_state(), without enabling force_update. Instead it should use self.async_write_ha_state(), please create a bug report at https://github.com/angelnu/home_assistant_thethingsnetwork/issues Entity sensor.garage_tor_sensor_door_open_status (<class 'custom_components.thethingsnetwork.TTN_client.TtnDataSensor'>) is using self.async_update_ha_state(), without enabling force_update. Instead it should use self.async_write_ha_state(), please create a bug report at https://github.com/angelnu/home_assistant_thethingsnetwork/issues Entity sensor.garage_tor_sensor_door_open_times (<class 'custom_components.thethingsnetwork.TTN_client.TtnDataSensor'>) is using self.async_update_ha_state(), without enabling force_update. Instead it should use self.async_write_ha_state(), please create a bug report at https://github.com/angelnu/home_assistant_thethingsnetwork/issues Entity sensor.garage_tor_sensor_last_door_open_duration (<class 'custom_components.thethingsnetwork.TTN_client.TtnDataSensor'>) is using self.async_update_ha_state(), without enabling force_update. Instead it should use self.async_write_ha_state(), please create a bug report at https://github.com/angelnu/home_assistant_thethingsnetwork/issues Entity sensor.garage_tor_sensor_mod (<class 'custom_components.thethingsnetwork.TTN_client.TtnDataSensor'>) is using self.async_update_ha_state(), without enabling force_update. Instead it should use self.async_write_ha_state(), please create a bug report at https://github.com/angelnu/home_assistant_thethingsnetwork/issues

Device is an Dragino LDS02 Door Sensor

angelnu commented 6 months ago

Thanks for reporting it @stadelES .

We are in the process of upgrading the ttn support directly in home assistant so this custom integration will not be needed. The new code at https://github.com/home-assistant/core/pull/113375 uses a coordinator so this warning is fixed.

radskin commented 4 months ago

I have this sensor, but I don't know how to connect the sensor from TTN to home assistant. I have installed the "Home Assistant integration for The Things Network" but my home Assistant doesn't recognize my devices from TTN. Where can I find some tutorial about that ?

image

angelnu commented 3 months ago

This custom integration is deprecated as it has been integrated into the core HA since 2024.6.

Please migrate.