cjkrolak / ThermostatSupervisor

supervisor to detect and correct thermostat deviations
MIT License
0 stars 0 forks source link

kumocloud server data is stale #202

Open cjkrolak opened 2 years ago

cjkrolak commented 2 years ago

after implementing #148 kumocloud server data seems to get stale, updating after phone app is refreshed but not updating on it's own.

cjkrolak commented 2 years ago

going into a zone page seems to refresh the kumocloud data to match the phone app. I saw one case in which phone app was changed from dry mode to off mode and then exited out of zone menu. Kumocloud continued to report current state as dry mode for a day, then when I went back into the zone menu the state of kumocloud immediately updated to off mode. Phone app displayed off mode all along.

cjkrolak commented 2 years ago

this thread may have relevant hints to a solution: https://github.com/dlarrick/pykumo/issues/10

cjkrolak commented 9 months ago

today when querying Kumocloud the app data was several days old, data was older than the last commanded OFF toggle from within the phone app. The second time I ran the python app the data was fresh.

first run, stale data (12/01/23 6:40am CT):

    'firmwareVersion': '02.06.12',
    'forceCloudUpdates': True,
    'hasElectricHeatingOption': False,
    'holdChanged': 0,
    'kumoSensorSettings': None,
    'label': 'Main Level',
    'lastAdapterUpdate': '2023-11-25 14:34:40.72626',
    'lastUpdate': 1701036440631,

    'reportedCondition': {   '_created': 1701036438496,
                             'air_direction': 0,
                             'fan_speed': 0,
                             'lastAdapterUpdated': '2023-11-26T22:07:18.496Z',
                             'more': {   'air_direction_text': 'Auto',
                                         'fan_speed_text': 'Auto',
                                         'operation_mode_text': 'Heat',
                                         'power_on': True},
                             'operation_mode': 1,
                             'power': 1,
                             'room_temp': 21.5,
                             'sp_cool': 20.5,
                             'sp_heat': 21,
                             'status_display': {   'defrost': False,
                                                   'filter': False,
                                                   'hot_adjust': False,
                                                   'standby': False}},

second run, fresh data (12/01/23, 6:45am CT):

    'firmwareVersion': '02.06.12',
    'forceCloudUpdates': True,
    'hasElectricHeatingOption': False,
    'holdChanged': 0,
    'kumoSensorSettings': {   'battery': None,
                              'humidity': None,
                              'lastUpdated': '2023-12-01T13:01:51.363Z',
                              'rssi': None,
                              'temperature': None,
                              'txPower': None,
                              'uuid': None},
    'label': 'Main Level',
    'lastAdapterUpdate': '2023-12-01 13:02:49.980702',
    'lastUpdate': 1701435825488,

    'reportedCondition': {   '_created': 1701435850123,
                             'active_thermistor': None,
                             'actual_fan_speed': None,
                             'air_direction': 0,
                             'device_serial': '9Z34P008J100236F',
                             'fan_speed': 0,
                             'id': '2252109495526435',
                             'it_status': None,
                             'lastAdapterUpdated': '2023-12-01T13:04:10.124Z',
                             'more': {   'air_direction_text': 'Auto',
                                         'fan_speed_text': 'Auto',
                                         'power_on': False},
                             'operation_mode': 16,
                             'out_of_use': None,
                             'power': 0,
                             'prohibit_local_remote_control': None,
                             'raw_frames': None,
                             'record_time': '2023-12-01T13:03:50.015Z',
                             'room_temp': 4.5,
                             'room_temp_a': None,
                             'room_temp_beyond': None,
                             'rssi': -41,
                             'run_test': 0,
                             'seconds_since_contact': 20,
                             'set_temp': None,
                             'set_temp_a': None,
                             'sp_auto': -1,
                             'sp_cool': 20.5,
                             'sp_heat': 21,
                             'status_display': {   'defrost': False,
                                                   'filter': False,
                                                   'hot_adjust': False,
                                                   'standby': False},
                             'temp_source': None,
                             'two_figures_code': 'A0',
                             'unusual_figures': 32768},

kumocloud firmware 2.06.12 and pykumo 0.3.8

cjkrolak commented 8 months ago

stale data at the beginning of a supervise session, I opened the phone app and then the data mysteriously refreshed.

[log_msg]: supervisor runtime parameters:
[log_msg]: thermostat_type=kumocloud
[log_msg]: zone=0
[log_msg]: poll_time=30
[log_msg]: connection_time=86400
[log_msg]: tolerance=2
[log_msg]: target_mode=UNKNOWN_MODE
[log_msg]: measurements=10000
polling time set to 0.5 minutes
server re-connect time set to 1440.0 minutes
tolerance to set point is set to 2°F
2023-12-28 10:19:01: (tstat:kumocloud, zone:Main Level, session:1, poll:1) OFF_MODE [following schedule] act temp=60.8°F
revert_thermostat_mode: target_mode='UNKNOWN_MODE', doing nothing.
2023-12-28 10:19:31: (tstat:kumocloud, zone:Main Level, session:1, poll:2) OFF_MODE [following schedule] act temp=60.8°F
revert_thermostat_mode: target_mode='UNKNOWN_MODE', doing nothing.
[log_msg]: indoor unit serial numbers: ['9Z34P008J100236F', '0134P0084100146F']
zone index=0, serial_number=9Z34P008J100236F
zone index=1, serial_number=0134P0084100146F
2023-12-28 10:20:04: (tstat:kumocloud, zone:Main Level, session:1, poll:3) HEAT_MODE [following schedule] act temp=64.4°F, set point=68.0°F, tolerance=2°F, override=64.4°F
revert_thermostat_mode: target_mode='UNKNOWN_MODE', doing nothing.