You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I read through this issue #14 and I have the exact same case now.
The data does not refresh from my TH16 R2 device, however, the scan_interval is set to 1 minute.
But I found one very interesting thing - when enabled debug mode, all fresh data appears there with the perfect interval of 1 minute. But in this case why it does not come to Home Assistant properly?
Also, noted that the proper attributes in debug logs are called currentTemperature and currentHumidity, maybe thats the point? Because if the correct data appears in debug but does not work in app it looks like a code issue. Maybe they changed attribute names in the latest firmware? I see that in code it uses correct attribute names, but why it is not working then?
./custom_components/sonoff/__init__.py: # fix cloud attrs like currentTemperature and currentHumidity
./custom_components/sonoff/sonoff_local.py: if 'currentTemperature' in state:
./custom_components/sonoff/sonoff_local.py: state['temperature'] = float(state['currentTemperature'])
./custom_components/sonoff/sonoff_cloud.py: - Sonoff TH `currentTemperature: "24.7"`
./custom_components/sonoff/sonoff_cloud.py: - Sonoff TH `currentTemperature: "unavailable"`
./custom_components/sonoff/sonoff_cloud.py: if 'currentTemperature' in state:
./custom_components/sonoff/sonoff_cloud.py: state['temperature'] = float(state['currentTemperature'])
My TH is on 3.5.0 firmware now.
Attaching my debug logs and configuration below.
Hi,
I read through this issue #14 and I have the exact same case now.
The data does not refresh from my TH16 R2 device, however, the scan_interval is set to 1 minute.
But I found one very interesting thing - when enabled debug mode, all fresh data appears there with the perfect interval of 1 minute. But in this case why it does not come to Home Assistant properly?
Also, noted that the proper attributes in debug logs are called currentTemperature and currentHumidity, maybe thats the point? Because if the correct data appears in debug but does not work in app it looks like a code issue.
Maybe they changed attribute names in the latest firmware?I see that in code it uses correct attribute names, but why it is not working then?My TH is on 3.5.0 firmware now.
Attaching my debug logs and configuration below.
debug output:
configuration.yaml:
The text was updated successfully, but these errors were encountered: