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

Stale temperature when heating (integration) #42

Open
Geoff-Hz opened this issue Nov 21, 2022 · 41 comments
Open

Stale temperature when heating (integration) #42

Geoff-Hz opened this issue Nov 21, 2022 · 41 comments
Assignees
Labels

Comments

@Geoff-Hz
Copy link

Hi,
Thanks for this amazing apps.

I realise that current temperature is not updating automaticaly. To check it, I have to modify the desired temp and then current temp is changing.

How can I do to have a check every 10 minutes?
Regard,
Geoff

@mathieu-mp
Copy link
Owner

Hi @Geoff-Hz, I'm pleased to read your greatings !

The current temperature is expected to update after each command set, and automatically every 30 seconds.
To understand why it does not work on your side:

  • could you enable logging, in your Home Assistant config/configuration.yaml:
logger:
  default: warning # 'warning' is the default value
  logs:
    custom_components.intex_spa: debug
    intex_spa: debug
  • and copy/paste some logs here:
    • Next to a command and its received response
    • During 2 idle minutes

@Geoff-Hz
Copy link
Author

Geoff-Hz commented Nov 21, 2022

Thanks for your reply @mathieu-mp

here some logs

-------------------------------------------------------------------
Intex Spa
Version: 0.0.1
This is a custom integration!
If you have any issues with this you need to open an issue here:
https://github.com/mathieu-mp/homeassistant-intex-spa/issues
-------------------------------------------------------------------

2022-11-21 12:10:38.960 INFO (MainThread) [intex_spa.intex_spa] Initializing IntexSpa instance...
2022-11-21 12:10:38.960 INFO (MainThread) [intex_spa.intex_spa] IntexSpa instance initialized
2022-11-21 12:10:38.961 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: Handling new intent...
2022-11-21 12:10:38.961 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: a spa query is needed
2022-11-21 12:10:38.961 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: new spa query...
2022-11-21 12:10:38.961 INFO (MainThread) [intex_spa.intex_spa_network_layer] Not connected to the spa, trying to connect...
2022-11-21 12:10:38.961 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Opening TCP connection with the spa at 10.0.1.42:8990 with asyncio...
2022-11-21 12:10:39.281 WARNING (MainThread) [custom_components.meross_lan] MerossDevice(2102085682789051805348e1e94bfac0) has incorrect timestamp: 44 seconds behind HA
2022-11-21 12:10:40.235 INFO (MainThread) [intex_spa.intex_spa_network_layer] TCP connection established with the spa
2022-11-21 12:10:40.236 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Sending bytes to the spa: b'{"data": "8888060FEE0F01DA", "sid": "16690290389614", "type": 1}'
2022-11-21 12:10:41.881 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Receiving bytes from the spa: b'{"sid":"16690290389614","data":"FFFF110F01030015000000008280802600001D","result":"ok","type":2}\n'
2022-11-21 12:10:41.882 DEBUG (MainThread) [intex_spa.intex_spa_object_status] Spa status: '{'power': True, 'filter': True, 'heater': False, 'jets': False, 'bubbles': False, 'sanitizer': False, 'unit': '°C', 'current_temp': 21, 'preset_temp': 38, 'error_code': False}'
2022-11-21 12:10:41.884 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: new status is rendered
2022-11-21 12:10:41.884 DEBUG (MainThread) [custom_components.intex_spa] Finished fetching intex_spa data in 2.923 seconds (success: True)
2022-11-21 12:10:41.884 DEBUG (MainThread) [intex_spa.intex_spa] 'info' intent: Handling new intent...
2022-11-21 12:10:41.884 DEBUG (MainThread) [intex_spa.intex_spa] 'info' intent: a spa query is needed
2022-11-21 12:10:41.884 DEBUG (MainThread) [intex_spa.intex_spa] 'info' intent: new spa query...
2022-11-21 12:10:41.884 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Sending bytes to the spa: b'{"data": "0", "sid": "16690290418846", "type": 3}'
2022-11-21 12:10:42.906 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Receiving bytes from the spa: b'{"sid":"16690290418846","data":"{\\"ip\\":\\"10.0.1.42\\",\\"uid\\":\\"0K040210172020082000014318\\",\\"dtype\\":\\"spa\\"}","result":"ok","type":3}\n'
2022-11-21 12:10:42.906 DEBUG (MainThread) [intex_spa.intex_spa_object_info] Spa info: '{'ip': '10.0.1.42', 'uid': '0K040210172020082000014318', 'dtype': 'spa'}'
2022-11-21 12:10:42.912 DEBUG (MainThread) [intex_spa.intex_spa] 'info' intent: new info is rendered
2022-11-21 12:10:46.090 WARNING (MainThread) [homeassistant.components.sensor] Platform netatmo not ready yet: None; Retrying in background in 30 seconds
2022-11-21 12:10:53.055 WARNING (MainThread) [homeassistant.components.netatmo] Webhook not registered - https and port 443 is required to register the webhook
2022-11-21 12:11:13.000 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: Handling new intent...
2022-11-21 12:11:13.001 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: a spa query is needed
2022-11-21 12:11:13.001 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: new spa query...
2022-11-21 12:11:13.001 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Sending bytes to the spa: b'{"data": "8888060FEE0F01DA", "sid": "16690290730013", "type": 1}'
2022-11-21 12:11:13.113 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Receiving bytes from the spa: b'{"sid":"16690290730013","data":"FFFF110F01030015000000008280802600001D","result":"ok","type":2}\n'
2022-11-21 12:11:13.113 DEBUG (MainThread) [intex_spa.intex_spa_object_status] Spa status: '{'power': True, 'filter': True, 'heater': False, 'jets': False, 'bubbles': False, 'sanitizer': False, 'unit': '°C', 'current_temp': 21, 'preset_temp': 38, 'error_code': False}'
2022-11-21 12:11:13.114 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: new status is rendered
2022-11-21 12:11:13.114 DEBUG (MainThread) [custom_components.intex_spa] Finished fetching intex_spa data in 0.114 seconds (success: True)
2022-11-21 12:11:40.280 DEBUG (MainThread) [intex_spa.intex_spa] 'preset_temp' intent: Handling new intent...
2022-11-21 12:11:40.281 DEBUG (MainThread) [intex_spa.intex_spa] 'preset_temp' intent: triggering a preliminary 'update' intent...
2022-11-21 12:11:40.281 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: Handling new intent...
2022-11-21 12:11:40.281 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: a spa query is needed
2022-11-21 12:11:40.281 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: new spa query...
2022-11-21 12:11:40.281 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Sending bytes to the spa: b'{"data": "8888060FEE0F01DA", "sid": "16690291002814", "type": 1}'
2022-11-21 12:11:40.451 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Receiving bytes from the spa: b'{"sid":"16690291002814","data":"FFFF110F01030015000000008280802600001D","result":"ok","type":2}\n'
2022-11-21 12:11:40.452 DEBUG (MainThread) [intex_spa.intex_spa_object_status] Spa status: '{'power': True, 'filter': True, 'heater': False, 'jets': False, 'bubbles': False, 'sanitizer': False, 'unit': '°C', 'current_temp': 21, 'preset_temp': 38, 'error_code': False}'
2022-11-21 12:11:40.452 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: new status is rendered
2022-11-21 12:11:40.452 DEBUG (MainThread) [intex_spa.intex_spa] 'preset_temp' intent: a spa query is needed
2022-11-21 12:11:40.452 DEBUG (MainThread) [intex_spa.intex_spa] 'preset_temp' intent: new spa query...
2022-11-21 12:11:40.452 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Sending bytes to the spa: b'{"data": "8888050F0C25A9", "sid": "16690291004525", "type": 1}'
2022-11-21 12:11:40.802 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Receiving bytes from the spa: b'{"sid":"16690291004525","data":"FFFF110F010300150000000080808025000020","result":"ok","type":2}\n'
2022-11-21 12:11:40.802 DEBUG (MainThread) [intex_spa.intex_spa_object_status] Spa status: '{'power': True, 'filter': True, 'heater': False, 'jets': False, 'bubbles': False, 'sanitizer': False, 'unit': '°C', 'current_temp': 21, 'preset_temp': 37, 'error_code': False}'
2022-11-21 12:11:40.802 DEBUG (MainThread) [intex_spa.intex_spa] 'preset_temp' intent: new status is rendered
2022-11-21 12:11:40.802 DEBUG (MainThread) [custom_components.intex_spa] Manually updated intex_spa data
2022-11-21 12:11:42.911 DEBUG (MainThread) [intex_spa.intex_spa] 'preset_temp' intent: Handling new intent...
2022-11-21 12:11:42.912 DEBUG (MainThread) [intex_spa.intex_spa] 'preset_temp' intent: triggering a preliminary 'update' intent...
2022-11-21 12:11:42.912 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: Handling new intent...
2022-11-21 12:11:42.912 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: a spa query is needed
2022-11-21 12:11:42.912 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: new spa query...
2022-11-21 12:11:42.912 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Sending bytes to the spa: b'{"data": "8888060FEE0F01DA", "sid": "16690291029124", "type": 1}'
2022-11-21 12:11:43.211 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Receiving bytes from the spa: b'{"sid":"16690291029124","data":"FFFF110F010300150000000080808025000020","result":"ok","type":2}\n'
2022-11-21 12:11:43.212 DEBUG (MainThread) [intex_spa.intex_spa_object_status] Spa status: '{'power': True, 'filter': True, 'heater': False, 'jets': False, 'bubbles': False, 'sanitizer': False, 'unit': '°C', 'current_temp': 21, 'preset_temp': 37, 'error_code': False}'
2022-11-21 12:11:43.212 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: new status is rendered
2022-11-21 12:11:43.212 DEBUG (MainThread) [intex_spa.intex_spa] 'preset_temp' intent: a spa query is needed
2022-11-21 12:11:43.212 DEBUG (MainThread) [intex_spa.intex_spa] 'preset_temp' intent: new spa query...
2022-11-21 12:11:43.212 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Sending bytes to the spa: b'{"data": "8888050F0C26A8", "sid": "16690291032126", "type": 1}'
2022-11-21 12:11:43.562 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Receiving bytes from the spa: b'{"sid":"16690291032126","data":"FFFF110F01030015000000008080802600001F","result":"ok","type":2}\n'
2022-11-21 12:11:43.562 DEBUG (MainThread) [intex_spa.intex_spa_object_status] Spa status: '{'power': True, 'filter': True, 'heater': False, 'jets': False, 'bubbles': False, 'sanitizer': False, 'unit': '°C', 'current_temp': 21, 'preset_temp': 38, 'error_code': False}'
2022-11-21 12:11:43.562 DEBUG (MainThread) [intex_spa.intex_spa] 'preset_temp' intent: new status is rendered
2022-11-21 12:11:43.562 DEBUG (MainThread) [custom_components.intex_spa] Manually updated intex_spa data
2022-11-21 12:12:13.004 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: Handling new intent...
2022-11-21 12:12:13.004 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: a spa query is needed
2022-11-21 12:12:13.004 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: new spa query...
2022-11-21 12:12:13.004 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Sending bytes to the spa: b'{"data": "8888060FEE0F01DA", "sid": "16690291330045", "type": 1}'
2022-11-21 12:12:13.312 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Receiving bytes from the spa: b'{"sid":"16690291330045","data":"FFFF110F01030015000000008080802600001F","result":"ok","type":2}\n'
2022-11-21 12:12:13.312 DEBUG (MainThread) [intex_spa.intex_spa_object_status] Spa status: '{'power': True, 'filter': True, 'heater': False, 'jets': False, 'bubbles': False, 'sanitizer': False, 'unit': '°C', 'current_temp': 21, 'preset_temp': 38, 'error_code': False}'
2022-11-21 12:12:13.312 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: new status is rendered
2022-11-21 12:12:13.312 DEBUG (MainThread) [custom_components.intex_spa] Finished fetching intex_spa data in 0.309 seconds (success: True)
2022-11-21 12:12:43.003 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: Handling new intent...
2022-11-21 12:12:43.003 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: a spa query is needed
2022-11-21 12:12:43.003 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: new spa query...
2022-11-21 12:12:43.003 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Sending bytes to the spa: b'{"data": "8888060FEE0F01DA", "sid": "16690291630035", "type": 1}'
2022-11-21 12:12:43.127 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Receiving bytes from the spa: b'{"sid":"16690291630035","data":"FFFF110F01030015000000008080802600001F","result":"ok","type":2}\n'
2022-11-21 12:12:43.127 DEBUG (MainThread) [intex_spa.intex_spa_object_status] Spa status: '{'power': True, 'filter': True, 'heater': False, 'jets': False, 'bubbles': False, 'sanitizer': False, 'unit': '°C', 'current_temp': 21, 'preset_temp': 38, 'error_code': False}'
2022-11-21 12:12:43.127 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: new status is rendered
2022-11-21 12:12:43.128 DEBUG (MainThread) [custom_components.intex_spa] Finished fetching intex_spa data in 0.125 seconds (success: True)
2022-11-21 12:13:13.003 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: Handling new intent...
2022-11-21 12:13:13.003 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: a spa query is needed
2022-11-21 12:13:13.003 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: new spa query...
2022-11-21 12:13:13.003 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Sending bytes to the spa: b'{"data": "8888060FEE0F01DA", "sid": "16690291930038", "type": 1}'
2022-11-21 12:13:13.222 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Receiving bytes from the spa: b'{"sid":"16690291930038","data":"FFFF110F01030015000000008080802600001F","result":"ok","type":2}\n'
2022-11-21 12:13:13.223 DEBUG (MainThread) [intex_spa.intex_spa_object_status] Spa status: '{'power': True, 'filter': True, 'heater': False, 'jets': False, 'bubbles': False, 'sanitizer': False, 'unit': '°C', 'current_temp': 21, 'preset_temp': 38, 'error_code': False}'
2022-11-21 12:13:13.223 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: new status is rendered
2022-11-21 12:13:13.223 DEBUG (MainThread) [custom_components.intex_spa] Finished fetching intex_spa data in 0.220 seconds (success: True)
2022-11-21 12:13:43.003 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: Handling new intent...
2022-11-21 12:13:43.003 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: a spa query is needed
2022-11-21 12:13:43.003 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: new spa query...
2022-11-21 12:13:43.003 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Sending bytes to the spa: b'{"data": "8888060FEE0F01DA", "sid": "16690292230036", "type": 1}'
2022-11-21 12:13:43.333 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Receiving bytes from the spa: b'{"sid":"16690292230036","data":"FFFF110F010100150000000080808026000021","result":"ok","type":2}\n'
2022-11-21 12:13:43.333 DEBUG (MainThread) [intex_spa.intex_spa_object_status] Spa status: '{'power': True, 'filter': False, 'heater': False, 'jets': False, 'bubbles': False, 'sanitizer': False, 'unit': '°C', 'current_temp': 21, 'preset_temp': 38, 'error_code': False}'
2022-11-21 12:13:43.333 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: new status is rendered
2022-11-21 12:13:43.333 DEBUG (MainThread) [custom_components.intex_spa] Finished fetching intex_spa data in 0.330 seconds (success: True)
2022-11-21 12:14:13.000 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: Handling new intent...
2022-11-21 12:14:13.000 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: a spa query is needed
2022-11-21 12:14:13.000 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: new spa query...
2022-11-21 12:14:13.001 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Sending bytes to the spa: b'{"data": "8888060FEE0F01DA", "sid": "16690292530009", "type": 1}'
2022-11-21 12:14:13.133 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Receiving bytes from the spa: b'{"sid":"16690292530009","data":"FFFF110F010100150000000080808026000021","result":"ok","type":2}\n'
2022-11-21 12:14:13.134 DEBUG (MainThread) [intex_spa.intex_spa_object_status] Spa status: '{'power': True, 'filter': False, 'heater': False, 'jets': False, 'bubbles': False, 'sanitizer': False, 'unit': '°C', 'current_temp': 21, 'preset_temp': 38, 'error_code': False}'
2022-11-21 12:14:13.134 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: new status is rendered
2022-11-21 12:14:13.134 DEBUG (MainThread) [custom_components.intex_spa] Finished fetching intex_spa data in 0.134 seconds (success: True)
2022-11-21 12:14:43.002 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: Handling new intent...
2022-11-21 12:14:43.003 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: a spa query is needed
2022-11-21 12:14:43.003 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: new spa query...
2022-11-21 12:14:43.003 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Sending bytes to the spa: b'{"data": "8888060FEE0F01DA", "sid": "16690292830033", "type": 1}'
2022-11-21 12:14:43.233 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Receiving bytes from the spa: b'{"sid":"16690292830033","data":"FFFF110F010100150000000080808026000021","result":"ok","type":2}\n'
2022-11-21 12:14:43.233 DEBUG (MainThread) [intex_spa.intex_spa_object_status] Spa status: '{'power': True, 'filter': False, 'heater': False, 'jets': False, 'bubbles': False, 'sanitizer': False, 'unit': '°C', 'current_temp': 21, 'preset_temp': 38, 'error_code': False}'
2022-11-21 12:14:43.234 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: new status is rendered
2022-11-21 12:14:43.234 DEBUG (MainThread) [custom_components.intex_spa] Finished fetching intex_spa data in 0.231 seconds (success: True)
2022-11-21 12:15:10.309 WARNING (Recorder) [homeassistant.components.sensor.recorder] Entity sensor.total_power from integration template has state class total_increasing, but its state is negative. Triggered by state -533.8 with last_updated set to 2022-11-21T11:09:59.999999+00:00. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+template%22
2022-11-21 12:15:13.001 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: Handling new intent...
2022-11-21 12:15:13.001 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: a spa query is needed
2022-11-21 12:15:13.001 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: new spa query...
2022-11-21 12:15:13.001 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Sending bytes to the spa: b'{"data": "8888060FEE0F01DA", "sid": "16690293130018", "type": 1}'
2022-11-21 12:15:13.333 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Receiving bytes from the spa: b'{"sid":"16690293130018","data":"FFFF110F010100150000000080808026000021","result":"ok","type":2}\n'
2022-11-21 12:15:13.334 DEBUG (MainThread) [intex_spa.intex_spa_object_status] Spa status: '{'power': True, 'filter': False, 'heater': False, 'jets': False, 'bubbles': False, 'sanitizer': False, 'unit': '°C', 'current_temp': 21, 'preset_temp': 38, 'error_code': False}'
2022-11-21 12:15:13.334 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: new status is rendered
2022-11-21 12:15:13.334 DEBUG (MainThread) [custom_components.intex_spa] Finished fetching intex_spa data in 0.333 seconds (success: True)
2022-11-21 12:15:27.692 DEBUG (MainThread) [intex_spa.intex_spa] 'preset_temp' intent: Handling new intent...
2022-11-21 12:15:27.692 DEBUG (MainThread) [intex_spa.intex_spa] 'preset_temp' intent: triggering a preliminary 'update' intent...
2022-11-21 12:15:27.692 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: Handling new intent...
2022-11-21 12:15:27.692 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: a spa query is needed
2022-11-21 12:15:27.692 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: new spa query...
2022-11-21 12:15:27.692 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Sending bytes to the spa: b'{"data": "8888060FEE0F01DA", "sid": "16690293276927", "type": 1}'
2022-11-21 12:15:28.084 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Receiving bytes from the spa: b'{"sid":"16690293276927","data":"FFFF110F010100150000000080808026000021","result":"ok","type":2}\n'
2022-11-21 12:15:28.085 DEBUG (MainThread) [intex_spa.intex_spa_object_status] Spa status: '{'power': True, 'filter': False, 'heater': False, 'jets': False, 'bubbles': False, 'sanitizer': False, 'unit': '°C', 'current_temp': 21, 'preset_temp': 38, 'error_code': False}'
2022-11-21 12:15:28.085 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: new status is rendered
2022-11-21 12:15:28.085 DEBUG (MainThread) [intex_spa.intex_spa] 'preset_temp' intent: a spa query is needed
2022-11-21 12:15:28.085 DEBUG (MainThread) [intex_spa.intex_spa] 'preset_temp' intent: new spa query...
2022-11-21 12:15:28.085 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Sending bytes to the spa: b'{"data": "8888050F0C25A9", "sid": "16690293280857", "type": 1}'
2022-11-21 12:15:28.444 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Receiving bytes from the spa: b'{"sid":"16690293280857","data":"FFFF110F010100150000000080808025000022","result":"ok","type":2}\n'
2022-11-21 12:15:28.445 DEBUG (MainThread) [intex_spa.intex_spa_object_status] Spa status: '{'power': True, 'filter': False, 'heater': False, 'jets': False, 'bubbles': False, 'sanitizer': False, 'unit': '°C', 'current_temp': 21, 'preset_temp': 37, 'error_code': False}'
2022-11-21 12:15:28.445 DEBUG (MainThread) [intex_spa.intex_spa] 'preset_temp' intent: new status is rendered
2022-11-21 12:15:28.445 DEBUG (MainThread) [custom_components.intex_spa] Manually updated intex_spa data
2022-11-21 12:15:32.190 DEBUG (MainThread) [intex_spa.intex_spa] 'preset_temp' intent: Handling new intent...
2022-11-21 12:15:32.190 DEBUG (MainThread) [intex_spa.intex_spa] 'preset_temp' intent: triggering a preliminary 'update' intent...
2022-11-21 12:15:32.190 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: Handling new intent...
2022-11-21 12:15:32.190 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: a spa query is needed
2022-11-21 12:15:32.190 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: new spa query...
2022-11-21 12:15:32.190 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Sending bytes to the spa: b'{"data": "8888060FEE0F01DA", "sid": "16690293321907", "type": 1}'
2022-11-21 12:15:32.384 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Receiving bytes from the spa: b'{"sid":"16690293321907","data":"FFFF110F010100150000000080808025000022","result":"ok","type":2}\n'
2022-11-21 12:15:32.384 DEBUG (MainThread) [intex_spa.intex_spa_object_status] Spa status: '{'power': True, 'filter': False, 'heater': False, 'jets': False, 'bubbles': False, 'sanitizer': False, 'unit': '°C', 'current_temp': 21, 'preset_temp': 37, 'error_code': False}'
2022-11-21 12:15:32.385 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: new status is rendered
2022-11-21 12:15:32.385 DEBUG (MainThread) [intex_spa.intex_spa] 'preset_temp' intent: a spa query is needed
2022-11-21 12:15:32.385 DEBUG (MainThread) [intex_spa.intex_spa] 'preset_temp' intent: new spa query...
2022-11-21 12:15:32.385 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Sending bytes to the spa: b'{"data": "8888050F0C26A8", "sid": "16690293323854", "type": 1}'
2022-11-21 12:15:32.744 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Receiving bytes from the spa: b'{"sid":"16690293323854","data":"FFFF110F010100150000000080808026000021","result":"ok","type":2}\n'
2022-11-21 12:15:32.744 DEBUG (MainThread) [intex_spa.intex_spa_object_status] Spa status: '{'power': True, 'filter': False, 'heater': False, 'jets': False, 'bubbles': False, 'sanitizer': False, 'unit': '°C', 'current_temp': 21, 'preset_temp': 38, 'error_code': False}'
2022-11-21 12:15:32.745 DEBUG (MainThread) [intex_spa.intex_spa] 'preset_temp' intent: new status is rendered
2022-11-21 12:15:32.745 DEBUG (MainThread) [custom_components.intex_spa] Manually updated intex_spa data
2022-11-21 12:16:02.001 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: Handling new intent...
2022-11-21 12:16:02.001 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: a spa query is needed
2022-11-21 12:16:02.001 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: new spa query...
2022-11-21 12:16:02.002 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Sending bytes to the spa: b'{"data": "8888060FEE0F01DA", "sid": "16690293620019", "type": 1}'
2022-11-21 12:16:02.185 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Receiving bytes from the spa: b'{"sid":"16690293620019","data":"FFFF110F010100150000000080808026000021","result":"ok","type":2}\n'
2022-11-21 12:16:02.186 DEBUG (MainThread) [intex_spa.intex_spa_object_status] Spa status: '{'power': True, 'filter': False, 'heater': False, 'jets': False, 'bubbles': False, 'sanitizer': False, 'unit': '°C', 'current_temp': 21, 'preset_temp': 38, 'error_code': False}'
2022-11-21 12:16:02.186 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: new status is rendered
2022-11-21 12:16:02.186 DEBUG (MainThread) [custom_components.intex_spa] Finished fetching intex_spa data in 0.186 seconds (success: True)
2022-11-21 12:16:32.001 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: Handling new intent...
2022-11-21 12:16:32.001 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: a spa query is needed
2022-11-21 12:16:32.001 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: new spa query...
2022-11-21 12:16:32.002 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Sending bytes to the spa: b'{"data": "8888060FEE0F01DA", "sid": "16690293920019", "type": 1}'
2022-11-21 12:16:32.284 DEBUG (MainThread) [intex_spa.intex_spa_network_layer] Receiving bytes from the spa: b'{"sid":"16690293920019","data":"FFFF110F010100150000000080808026000021","result":"ok","type":2}\n'
2022-11-21 12:16:32.284 DEBUG (MainThread) [intex_spa.intex_spa_object_status] Spa status: '{'power': True, 'filter': False, 'heater': False, 'jets': False, 'bubbles': False, 'sanitizer': False, 'unit': '°C', 'current_temp': 21, 'preset_temp': 38, 'error_code': False}'
2022-11-21 12:16:32.285 DEBUG (MainThread) [intex_spa.intex_spa] 'status' intent: new status is rendered
2022-11-21 12:16:32.285 DEBUG (MainThread) [custom_components.intex_spa] Finished fetching intex_spa data in 0.284 seconds (success: True)

@Geoff-Hz
Copy link
Author

here a historic
we see the change when i move commend set

image

@Elkropac
Copy link
Contributor

@mathieu-mp Hi, i think, it was the same for me, i forgot to report it. If i remember correctly, the spa unit itself keeps sending back the same temperature in it's status, until you send some new command and it updates.

@Geoff-Hz
Copy link
Author

Hi @Elkropac , thanks for your participation. So the only wait to have current temp is to make an automatition that change comment set every time I want a status...

@mathieu-mp
Copy link
Owner

Hi, thank you for the logs !

The logs you provided look fine: Network returned status from the spa provides current temperature every 30 seconds, and after each command set.

I identified a bug in the version displayed by the logs (opened as #43).
So, can you report your current homeassistant-intex-spa installed version, please ?
Can you confirm you installed the integration from HACS ?

The historic you provided shows obvious time ranges when spa current temp is not updated.
But it also shows at ~13:23 that spa temp has been updated. Did you send another command at that time, or did the update happen automatically ?

@mathieu-mp
Copy link
Owner

Hi @Elkropac,

@mathieu-mp Hi, i think, it was the same for me, i forgot to report it. If i remember correctly, the spa unit itself keeps sending back the same temperature in it's status, until you send some new command and it updates.

We had solved the issue #26. Didn't it solve the behavior you just described ?
Do you have the same kind of erratic historic given by Geoff-Hz ?

@mathieu-mp
Copy link
Owner

The only wait to have current temp is to make an automatition that change comment set every time I want a status...

@Geoff-Hz, you should not have to do that, let's try and solve this issue !

@Geoff-Hz
Copy link
Author

@mathieu-mp

I installed the integration from HACS
The version is V0.2.0

at 13:23 if I have good memory, I turn power On

Thanks for your help

image

@Geoff-Hz
Copy link
Author

The only wait to have current temp is to make an automatition that change comment set every time I want a status...

@Geoff-Hz, you should not have to do that, let's try and solve this issue !

Anyway, It's not possible to change command set by Automation ;-) I just try it now.

@mathieu-mp
Copy link
Owner

OK, and what if you graph current temperature from climate entity ?

@Geoff-Hz
Copy link
Author

@mathieu-mp If I understand well, it's the same graph

image

@Geoff-Hz
Copy link
Author

about 13:23, I confirm I turn it On

image

@mathieu-mp
Copy link
Owner

Is the first history from current temperature sensor entity, or from spa climate entity ?

@Geoff-Hz
Copy link
Author

Is the first history from current temperature sensor entity, or from spa climate entity ?

Is from spa climate entity.

I only active current temperature today
here is the graph
image

@Elkropac
Copy link
Contributor

Hi @Elkropac,

@mathieu-mp Hi, i think, it was the same for me, i forgot to report it. If i remember correctly, the spa unit itself keeps sending back the same temperature in it's status, until you send some new command and it updates.

We had solved the issue #26. Didn't it solve the behavior you just described ? Do you have the same kind of erratic historic given by Geoff-Hz ?

Sorry not sure. It's few months and i cannot test now, spa is disassembled in storage.

But i think, i did not get any errors after your fix in #26.
But the temperature was not updating either. I think, i was trying to query it from another machine, using the example scripts in your library and it showed, that spa unit keeps sending the same value.
So it seemed like no bug in this intergration but in unit itself.

@Geoff-Hz
Copy link
Author

Geoff-Hz commented Nov 22, 2022

Hi all,
If I understand, the issue come from the spa.
the intergration check every 30 sec.
What about if the intergration send 'ghost' modification? exemple: 1 sec of change commend set or filtering or ...

On my spa, Sanitizer look like doing nothing (I don't know what is it), but when I move this switch, spa update temp.

@mathieu-mp
Copy link
Owner

No, this looks like an integration issue. The spa answers correctly to commands and auto updates.
I have to investigate this.

Does the sensor.spa_current_temperature auto update ?

@mathieu-mp mathieu-mp added the Bug label Nov 22, 2022
@Geoff-Hz
Copy link
Author

Hi @mathieu-mp

Does the sensor.spa_current_temperature auto update ?

Nop, No update from sensor.
For the moment, I make an automation that active Sanitizer for 2 seconds every 10 minutes. This Update the current temp.

@Geoff-Hz
Copy link
Author

Hi,
whith the automatisation, it look like this
note that filtering start for few second and we see some different temperature between on and off. Maybe is for this case that spa doesn't send back current temp. when filter is off, temperature is not realy de reality.

image

@mathieu-mp
Copy link
Owner

Hi @Geoff-Hz ,
I set my spa back for the summer... but I can't reproduce the behavior you are describing.
Hence, reading the whole thread again, I assume you do power off your spa when unused. I never power it off, just stop features when I don't need them.
Could you test if spa temperature auto updates when no feature is enabled, but the spa stays powered on?

@Geoff-Hz
Copy link
Author

Geoff-Hz commented May 9, 2023

Hi @mathieu-mp
My spa is never power off too.
Like @Elkropac said, I noted that If no command change is made, the temp doesn't updated.

(Si je ne fais aucune action de modification quelconque, il n'y a pas de changement de température)

@rogerveijk
Copy link

I have the same issue with my Intex Greywood 2021 Spa. All controls work perfectly, but the current temperature (climate) isn’t auto-updated. I does update when i send a (any) command. I never turn the device off, only stop heating when not needed. While in heating it also doesn’t auto update the temperate in Home Asisstant so i don’t think it related to power status.

@mathieu-mp
Copy link
Owner

  1. When you enable heating, does the filter enables itself too?
  2. If not, what if the filter is enabled: does the temp auto-updates?
  3. Could you indicate which model you own, as per this message ?

@ec0li82
Copy link

ec0li82 commented May 25, 2023

Hello
Just installed the spa outside, and configured your integration, many thanks.
I also have the temperature not auto-updating.
To answer your previous question : if I start the heater only from HA, yes the filter turns on by itself on the spa and the state of it in HA as well.
My details
ID MCU : OK040210172020082000010526
Intex app : Bubble SPA0526
Manuel ref : PureSpa Greywood Deluxe SB-HWF20
Spa ref : 28440

@montgomeryb
Copy link

montgomeryb commented Jun 26, 2023

I am seeing a similar behaviour in the underlying python library mathieu-mp/aio-intex-spa#26 - I get around it by setting the temperature down one and then up one to force the updated temperature reading.

@mathieu-mp
Copy link
Owner

Hi @Geoff-Hz ,

I'm working on the assumption that the bug comes from the control panel firmware.
This would change the way we can circumvent the issue:

  • If it comes from the control panel, I can try to circumvent the issue
  • If it doesn't come from the control panel, then I'll have to find a bug in the python module or the integration code.

According to your logs, your Spa UID seems to be 0K040210172020082000014318.
Could you mention which is your Spa model please ?

I have to check back how the python integration behaves, so please :

  • Could you send logs on an extended period of time (~2h) while powered on and heating?
    • Please choose a period when the spa is actually heating, so that I know that I should see current_temperature increasing in the logs.
    • Please disable the automation sanitizer "bypass".
  • Could you provide the current_temp graph for this period, with the graph legend ?

Thank you very much, Mathieu.

@mathieu-mp mathieu-mp changed the title Current temperature auto up to date Stale temperature when heating (integration) Jul 1, 2023
@mathieu-mp mathieu-mp self-assigned this Jul 1, 2023
@karetaj
Copy link

karetaj commented Jul 8, 2023

Same in my setup. Temp is not refreshed withou command. My model is Pure Spa - Bubble Greywood Deluxe AP 4

@mathieu-mp
Copy link
Owner

Same in my setup. Temp is not refreshed withou command. My model is Pure Spa - Bubble Greywood Deluxe AP 4

Hi @karetaj ,

All model informations are useful, could you provide us with your:

  • Spa UID (See UID sensor from device)
  • Spa SKU (e.g. 28440EX) from intex spa website (FR/US/...)

Thanks

@karetaj
Copy link

karetaj commented Jul 8, 2023

Same in my setup. Temp is not refreshed withou command. My model is Pure Spa - Bubble Greywood Deluxe AP 4

Hi @karetaj ,

All model informations are useful, could you provide us with your:

  • Spa UID (See UID sensor from device)
  • Spa SKU (e.g. 28440EX) from intex spa website (FR/US/...)

Thanks

Where i can found UID? I am checki g it in home assistant and cannot found it

@mathieu-mp
Copy link
Owner

Where i can found UID? I am checki g it in home assistant and cannot found it

Please proceed as follows :
Settings > Device & Services > Intex Spa > your_spa > Diagnostics > Enable UID sensor

@karetaj
Copy link

karetaj commented Jul 8, 2023

Where i can found UID? I am checki g it in home assistant and cannot found it

Please proceed as follows : Settings > Device & Services > Intex Spa > your_spa > Diagnostics > Enable UID sensor

Uid: 01040210502021062800006040
SKU: 28439E

@gleanlux
Copy link

gleanlux commented Jan 27, 2024

Hello @mathieu-mp!
I just bought a new SPA and integrated it into HA.
I immediately noticed the problem that everyone else has.

What I experienced:
All functions work properly from HA!
The temperature value is not updated automatically!
The set temperature, or any other status change directly on the SPA's control is updated on the HA every 30sec, at the same time the current temperature is received.

In my opinion, only the temperature change does not trigger the status update in the 30sec time windows.

Device info:
UID: 01040220052022031800009469
Intex 128442 Pure-Spa Greywood Deluxe
SB-HWF20
021SB-HWF20**A0
Under the control panel: 20220423 (product date?)

HA info:
Core: 2023.11.3
OS: 11.1
HACS: 1.33.0
IntexSpa: 0.2.4

Anything I can do to help you with bug fixing, testing, please let me know!
Thank you for all the work you put into integration!

@gleanlux
Copy link

gleanlux commented Feb 6, 2024

@mathieu-mp
Can any progress be expected on the problem?

@montgomeryb
Copy link

I believe it is something with the underlying library as I am using this great library outside of home assistant. It's discussed over at mathieu-mp/aio-intex-spa#26 (comment)
My work around is to issue a command setting the temperature to 106 - which is outside the range. This returns the current temperature and leaves the preset temperature at the previous value.
Maybe this will help someone here try to fork or do a PR if it works for HA?

@mathieu-mp
Copy link
Owner

Hi @gleanlux,
Sorry I was not working on this issue any more, but @montgomeryb's comment on mathieu-mp/aio-intex-spa#26 seems to be a very nice lead.
Let's resume our discussions there, I have a few questions...

@gleanlux
Copy link

gleanlux commented Feb 7, 2024

Thank you very much!
We will continue to investigate the error there.

I have a question about the Home Assistant integration.
Why do we use Climate module for heating?
SPA's central unit contains a standalone thermostat function, we just need to set the target temperature and turn the heating on or off.
Would it be possible to replace the Climate module with a heating on/off switch and set the target temperature as an Input number?
This would also avoid the present error that if the temperature is not updated, the SPA unit keeps the set temperature.
Currently we use a thermostat to turn the thermostat on/off.

@mathieu-mp
Copy link
Owner

The climate entity is just a representation of the thermostat embedded in the spa. It is the standard way to expose such a device to Home Assistant. It is used to provide the setpoint to the spa, which regulates the water temperature and returns its status to the integration.
It is very similar to the solution you suggest with an input_number as the setpoint and a switch as the "allow heating" mode. But the climate entity is the way to go as an integration.

@gleanlux
Copy link

gleanlux commented Feb 7, 2024

I apologise if I asked a stupid question.

Then if I understand correctly, when the temperature reaches the desired value, the integration does not send a heating off command?
Because a custom climate entity will turn off the specified heating output (switch) at that time.

@mathieu-mp
Copy link
Owner

mathieu-mp commented Feb 7, 2024

I apologise if I asked a stupid question.

No need to apologie, that was a clever question to understand how it works under the hood.

Then if I understand correctly, when the temperature reaches the desired value, the integration does not send a heating off command?

You're right.

Because a custom climate entity will turn off the specified heating output (switch) at that time.

Yeah, a custom (template?) climate entity inherits from the higher-level climate entity and adds the whatever configured specific behavior.
The climate entity used by the integration does just pass the commands to the spa thermostat and does not directly drive the heater.

@idjul
Copy link

idjul commented Jul 4, 2024

Hi all,
Got the same issue, the temperature is not updated in HA.

UID: 01040220062022051000003950
Name on Intex app: Bubble SPA V23950
Model: 28442EX

EDIT: as a workaroud, as my SPA don't have the sanitizer functionality, i've enabled it anyway and use it in an automation to get the temperature updated, here's the yaml:

alias: Update SPA Temp
description: ""
trigger:
  - platform: state
    entity_id:
      - switch.spa_filter
    from: "off"
    to: "on"
condition:
  - condition: state
    entity_id: switch.spa_filter
    state: "on"
action:
  - repeat:
      sequence:
        - service: switch.turn_on
          target:
            entity_id: switch.spa_sanitizer
          data: {}
        - delay:
            hours: 0
            minutes: 0
            seconds: 2
            milliseconds: 0
        - service: switch.turn_off
          target:
            entity_id:
              - switch.spa_sanitizer
          data: {}
        - delay:
            hours: 0
            minutes: 5
            seconds: 0
            milliseconds: 0
      while:
        - condition: state
          entity_id: switch.spa_filter
          state: "on"
mode: single

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

9 participants