Closed rumcajstr closed 1 month ago
More info here ... I was looking into the home-assistant.log and found, that if I choose to re-initialize the integration when my alarm is disarmed, it shows in the log this entity:
'sections': {'service-states': {'last-event-time': '2023-11-25T16:53:44+0100', 'service-name': 'ALARM'}, 'states': [{'cloud-component-id': 'SEC-493752363', 'state': 'DISARM'}], 'sections': [{'cloud-component-id': 'SEC-493752363', 'name': 'Rozkoš', 'can-control': True, 'need-authorization': True, 'partial-arm-enabled': False}]}, 'thermo': []}
If I do the same when my alarm is armed, I get this log:
'sections': {'service-states': {'last-event-time': '2023-11-25T16:56:24+0100', 'service-name': 'ALARM'}, 'states': [{'cloud-component-id': 'SEC-493752363', 'state': 'ARM'}], 'sections': [{'cloud-component-id': 'SEC-493752363', 'name': 'Rozkoš', 'can-control': True, 'need-authorization': True, 'partial-arm-enabled': False}]}, 'thermo': []}
So it is in fact getting the section info from the cloud, however for some unknown reason, the component is not introduced in the HA.
Oh thank you for reporting this and providing detailed logs. I've indeed discovered a bug in the integration. In your setup you have services that are not supported by the integration yet like recuperation and heating and they are being enumerated first and it fails and it will never get to your alarm section. I need to correctly skip unsupported sections. Will be fixed in next release.
Thanks a lot. Indeed, I have recuperation and heating from Jablotron LT (Living Technologies) https://www.jablotronlt.com/en/ These devices just appear in the cloud, they can't be controlled or read, just listed there. So to skip them is correct solution. Waiting for the update.
Thank you for you work!
@rumcajstr why this was reopened?
I see I forgot to push the fix. Now it is pushed and will be in next release 0.6
Hi, I used the Jablotron Cloud for the very first time today so maybe I am doing something wrong. I successfuly connect to my Jablotron Cloud account bu only PG outputs are discovered. I hoped I could see status of individual motion sensors or at least status Armed/DIsarmed for the alarm (section). But none of them is visible. I also have two other equipment under MyJablotron (Coolbreeze and Volta) but thouse are not connected to alarm (anly ventilation and heating). Thanks for the help. Ondrej
Here is the log:
2023-11-25 09:17:20.039 DEBUG (MainThread) [custom_components.jablotron_cloud] Preparing Jablotron data update coordinator 2023-11-25 09:17:20.693 DEBUG (MainThread) [custom_components.jablotron_cloud] Opened new session: ohnatpftsnormpn57f3aog1t21 2023-11-25 09:17:23.038 DEBUG (MainThread) [custom_components.jablotron_cloud] There was a problem receiving programmable gates for 2215009 2023-11-25 09:17:23.264 DEBUG (MainThread) [custom_components.jablotron_cloud] There was a problem receiving sections for 2215009 2023-11-25 09:17:23.501 DEBUG (MainThread) [custom_components.jablotron_cloud] There was a problem receiving thermo devices for 2215009 2023-11-25 09:17:23.501 DEBUG (MainThread) [custom_components.jablotron_cloud] Service 2215009 discovered. Data: {'service': {'service-id': 2215009, 'cloud-entity-id': 'SERVICE_FUTURA2:2215009', 'name': 'FUTURA', 'service-type': 'FUTURA2', 'icon': 'VENTILATION', 'index': 1000000, 'level': 'FULL', 'status': 'ENABLED', 'visible': True, 'message': 'OK', 'event-last-time': '2023-11-25T09:17:02+0100', 'share-status': 'OWNER_SHARED', 'service-blocked': 'NONE', 'extended-states': [{'type': 'RECUPERATION_MODE_AUTO'}, {'type': 'RECUPERATION'}], 'notifications': 0}, 'gates': {}, 'sections': {}, 'thermo': {}} 2023-11-25 09:17:23.759 DEBUG (MainThread) [custom_components.jablotron_cloud] There was a problem receiving programmable gates for 2215014 2023-11-25 09:17:24.045 DEBUG (MainThread) [custom_components.jablotron_cloud] There was a problem receiving sections for 2215014 2023-11-25 09:17:24.269 DEBUG (MainThread) [custom_components.jablotron_cloud] There was a problem receiving thermo devices for 2215014 2023-11-25 09:17:24.270 DEBUG (MainThread) [custom_components.jablotron_cloud] Service 2215014 discovered. Data: {'service': {'service-id': 2215014, 'cloud-entity-id': 'SERVICE_VOLTA:2215014', 'name': 'VOLTA-E', 'service-type': 'VOLTA', 'icon': 'HEATING', 'index': 1000000, 'level': 'FULL', 'status': 'ENABLED', 'visible': True, 'message': 'OK', 'event-last-time': '2023-11-25T09:17:05+0100', 'share-status': 'OWNER_SHARED', 'service-blocked': 'NONE', 'extended-states': [{}, {'type': 'STANDBY'}], 'notifications': 0}, 'gates': {}, 'sections': {}, 'thermo': {}} 2023-11-25 09:17:26.566 DEBUG (MainThread) [custom_components.jablotron_cloud] Service 2285638 discovered. Data: {'service': {'service-id': 2285638, 'cloud-entity-id': 'SERVICE_JA100F:2285638', 'name': 'ALARM', 'service-type': 'JA100F', 'icon': 'JA100F', 'index': 1000000, 'level': 'FULL', 'status': 'ENABLED', 'visible': True, 'message': 'OK', 'event-last-time': '2023-11-18T08:53:34+0100', 'share-status': 'OWNER_SHARED', 'service-blocked': 'NONE', 'extended-states': [{'type': 'ARM', 'value': '1'}, {'type': 'DISARM', 'value': '0'}], 'notifications': 0}, 'gates': {'service-states': {'last-event-time': '2023-11-25T08:41:22+0100', 'service-name': 'ALARM'}, 'states': [{'cloud-component-id': 'PG-493753463', 'state': 'OFF'}, {'cloud-component-id': 'PG-493753473', 'state': 'OFF'}, {'cloud-component-id': 'PG-493753488', 'state': 'OFF'}, {'cloud-component-id': 'PG-493753498', 'state': 'OFF'}, {'cloud-component-id': 'PG-493753508', 'state': 'OFF'}, {'cloud-component-id': 'PG-493753523', 'state': 'OFF'}, {'cloud-component-id': 'PG-493753533', 'state': 'OFF'}, {'cloud-component-id': 'PG-493753548', 'state': 'OFF'}, {'cloud-component-id': 'PG-493753558', 'state': 'OFF'}, {'cloud-component-id': 'PG-493753573', 'state': 'OFF'}, {'cloud-component-id': 'PG-493753583', 'state': 'OFF'}, {'cloud-component-id': 'PG-493753593', 'state': 'OFF'}, {'cloud-component-id': 'PG-493753603', 'state': 'OFF'}, {'cloud-component-id': 'PG-493753613', 'state': 'OFF'}], 'programmableGates': [{'cloud-component-id': 'PG-493753463', 'name': 'PG výstup 1', 'can-control': True, 'need-authorization': True}, {'cloud-component-id': 'PG-493753473', 'name': 'PG výstup 2', 'can-control': True, 'need-authorization': True}, {'cloud-component-id': 'PG-493753488', 'name': 'PG výstup 3', 'can-control': True, 'need-authorization': True}, {'cloud-component-id': 'PG-493753498', 'name': 'PG výstup 4', 'can-control': True, 'need-authorization': True}, {'cloud-component-id': 'PG-493753508', 'name': 'PG výstup 5', 'can-control': True, 'need-authorization': True}, {'cloud-component-id': 'PG-493753523', 'name': 'PG výstup 6', 'can-control': True, 'need-authorization': True}, {'cloud-component-id': 'PG-493753533', 'name': 'PG výstup 7', 'can-control': True, 'need-authorization': True}, {'cloud-component-id': 'PG-493753548', 'name': 'PG výstup 8', 'can-control': True, 'need-authorization': True}, {'cloud-component-id': 'PG-493753558', 'name': 'PG výstup 9', 'can-control': True, 'need-authorization': True}, {'cloud-component-id': 'PG-493753573', 'name': 'Žaluzie-vše nahoru', 'can-control': True, 'need-authorization': True}, {'cloud-component-id': 'PG-493753583', 'name': 'Žaluzie-sever dolu', 'can-control': True, 'need-authorization': True}, {'cloud-component-id': 'PG-493753593', 'name': 'Žaluzie-západ dolu', 'can-control': True, 'need-authorization': True}, {'cloud-component-id': 'PG-493753603', 'name': 'Žaluzie-jih dolu', 'can-control': True, 'need-authorization': True}, {'cloud-component-id': 'PG-493753613', 'name': 'Žaluzie-východ dolu', 'can-control': True, 'need-authorization': True}]}, 'sections': {'service-states': {'last-event-time': '2023-11-25T08:41:22+0100', 'service-name': 'ALARM'}, 'states': [{'cloud-component-id': 'SEC-493752363', 'state': 'ARM'}], 'sections': [{'cloud-component-id': 'SEC-493752363', 'name': 'Rozkoš', 'can-control': True, 'need-authorization': True, 'partial-arm-enabled': False}]}, 'thermo': []} 2023-11-25 09:17:26.567 DEBUG (MainThread) [custom_components.jablotron_cloud] Finished fetching Jablotron data in 6.528 seconds (success: True) 2023-11-25 09:17:26.568 DEBUG (MainThread) [custom_components.jablotron_cloud.alarm_control_panel] Jablotron discovered service: 2215009:FUTURA 2023-11-25 09:17:26.568 DEBUG (MainThread) [custom_components.jablotron_cloud.switch] Jablotron discovered controllable programmable gate: PG-493753463:PG výstup 1 2023-11-25 09:17:26.568 DEBUG (MainThread) [custom_components.jablotron_cloud.switch] Jablotron discovered controllable programmable gate: PG-493753473:PG výstup 2 2023-11-25 09:17:26.568 DEBUG (MainThread) [custom_components.jablotron_cloud.switch] Jablotron discovered controllable programmable gate: PG-493753488:PG výstup 3 2023-11-25 09:17:26.568 DEBUG (MainThread) [custom_components.jablotron_cloud.switch] Jablotron discovered controllable programmable gate: PG-493753498:PG výstup 4 2023-11-25 09:17:26.568 DEBUG (MainThread) [custom_components.jablotron_cloud.switch] Jablotron discovered controllable programmable gate: PG-493753508:PG výstup 5 2023-11-25 09:17:26.568 DEBUG (MainThread) [custom_components.jablotron_cloud.switch] Jablotron discovered controllable programmable gate: PG-493753523:PG výstup 6 2023-11-25 09:17:26.568 DEBUG (MainThread) [custom_components.jablotron_cloud.switch] Jablotron discovered controllable programmable gate: PG-493753533:PG výstup 7 2023-11-25 09:17:26.568 DEBUG (MainThread) [custom_components.jablotron_cloud.switch] Jablotron discovered controllable programmable gate: PG-493753548:PG výstup 8 2023-11-25 09:17:26.568 DEBUG (MainThread) [custom_components.jablotron_cloud.switch] Jablotron discovered controllable programmable gate: PG-493753558:PG výstup 9 2023-11-25 09:17:26.568 DEBUG (MainThread) [custom_components.jablotron_cloud.switch] Jablotron discovered controllable programmable gate: PG-493753573:Žaluzie-vše nahoru 2023-11-25 09:17:26.568 DEBUG (MainThread) [custom_components.jablotron_cloud.switch] Jablotron discovered controllable programmable gate: PG-493753583:Žaluzie-sever dolu 2023-11-25 09:17:26.568 DEBUG (MainThread) [custom_components.jablotron_cloud.switch] Jablotron discovered controllable programmable gate: PG-493753593:Žaluzie-západ dolu 2023-11-25 09:17:26.568 DEBUG (MainThread) [custom_components.jablotron_cloud.switch] Jablotron discovered controllable programmable gate: PG-493753603:Žaluzie-jih dolu 2023-11-25 09:17:26.568 DEBUG (MainThread) [custom_components.jablotron_cloud.switch] Jablotron discovered controllable programmable gate: PG-493753613:Žaluzie-východ dolu 2023-11-25 09:17:27.745 DEBUG (MainThread) [custom_components.jablotron_cloud] There was a problem receiving programmable gates for 2215009 2023-11-25 09:17:28.025 DEBUG (MainThread) [custom_components.jablotron_cloud] There was a problem receiving sections for 2215009 2023-11-25 09:17:28.622 DEBUG (MainThread) [custom_components.jablotron_cloud] There was a problem receiving thermo devices for 2215009 2023-11-25 09:17:28.821 DEBUG (MainThread) [custom_components.jablotron_cloud] There was a problem receiving programmable gates for 2215014 2023-11-25 09:17:29.041 DEBUG (MainThread) [custom_components.jablotron_cloud] There was a problem receiving sections for 2215014 2023-11-25 09:17:29.288 DEBUG (MainThread) [custom_components.jablotron_cloud] There was a problem receiving thermo devices for 2215014 2023-11-25 09:17:31.274 DEBUG (MainThread) [custom_components.jablotron_cloud] Finished fetching Jablotron data in 4.703 seconds (success: True) 2023-11-25 09:17:31.274 DEBUG (MainThread) [custom_components.jablotron_cloud.switch] Updating programmable gate with data: {'cloud-component-id': 'PG-493753473', 'state': 'OFF'} 2023-11-25 09:17:31.274 DEBUG (MainThread) [custom_components.jablotron_cloud.switch] Updating programmable gate with data: {'cloud-component-id': 'PG-493753488', 'state': 'OFF'} 2023-11-25 09:17:31.275 DEBUG (MainThread) [custom_components.jablotron_cloud.switch] Updating programmable gate with data: {'cloud-component-id': 'PG-493753498', 'state': 'OFF'} 2023-11-25 09:17:31.275 DEBUG (MainThread) [custom_components.jablotron_cloud.switch] Updating programmable gate with data: {'cloud-component-id': 'PG-493753508', 'state': 'OFF'} 2023-11-25 09:17:31.275 DEBUG (MainThread) [custom_components.jablotron_cloud.switch] Updating programmable gate with data: {'cloud-component-id': 'PG-493753523', 'state': 'OFF'} 2023-11-25 09:17:31.275 DEBUG (MainThread) [custom_components.jablotron_cloud.switch] Updating programmable gate with data: {'cloud-component-id': 'PG-493753533', 'state': 'OFF'} 2023-11-25 09:17:31.276 DEBUG (MainThread) [custom_components.jablotron_cloud.switch] Updating programmable gate with data: {'cloud-component-id': 'PG-493753548', 'state': 'OFF'} 2023-11-25 09:17:31.276 DEBUG (MainThread) [custom_components.jablotron_cloud.switch] Updating programmable gate with data: {'cloud-component-id': 'PG-493753558', 'state': 'OFF'} 2023-11-25 09:17:31.276 DEBUG (MainThread) [custom_components.jablotron_cloud.switch] Updating programmable gate with data: {'cloud-component-id': 'PG-493753573', 'state': 'OFF'} 2023-11-25 09:17:31.276 DEBUG (MainThread) [custom_components.jablotron_cloud.switch] Updating programmable gate with data: {'cloud-component-id': 'PG-493753583', 'state': 'OFF'} 2023-11-25 09:17:31.276 DEBUG (MainThread) [custom_components.jablotron_cloud.switch] Updating programmable gate with data: {'cloud-component-id': 'PG-493753593', 'state': 'OFF'} 2023-11-25 09:17:31.277 DEBUG (MainThread) [custom_components.jablotron_cloud.switch] Updating programmable gate with data: {'cloud-component-id': 'PG-493753603', 'state': 'OFF'} 2023-11-25 09:17:31.277 DEBUG (MainThread) [custom_components.jablotron_cloud.switch] Updating programmable gate with data: {'cloud-component-id': 'PG-493753613', 'state': 'OFF'}