Closed pijix closed 11 months ago
Hey, you can enable debugg loggind and restart HA. Then we could see what Jablotron discovered for you. Maybe even some errors.
Hi, I only view this lines related to component:
2023-08-28 18:21:00.514 DEBUG (MainThread) [custom_components.jablotron_cloud] Preparing Jablotron data update coordinator
2023-08-28 18:21:04.714 DEBUG (MainThread) [custom_components.jablotron_cloud] Finished fetching Jablotron data in 4.199 seconds (success: True)
Alright. That means that addon succesfully recieved data from jablotron cloud but you have no device there. If you are convinced you have your devices in your cloud account you can try following. Try to login into the jablotron cloud directly using web browser. Sometimes you need to do it at leasat once and confirm GDPR or something like this. If that won't help you can try to enumerate your devices using jablotronpy in commandline to see what exactly jablotron clound provides through API we are using in this intergration.
Hi, this is the output:
It looks like it works just fine. Makes me a bit puzzled what could be the problem. But to make sure could you provide output of get_services()? This is the main entry point which created device in the integration. What you printed is I think get_sections which is nice but only used if we have actually the device.
Hi, nice job, that would be very useful. However I've got the same problem. No devices and entities.
Hi, this is the get_services() response, can you check it?
Right, everything is alsmost equal as with my own alarm. I have no clue why your installation does not see any devices at all. I'm planing to add more logs to be able to debug another issue in next release so then we can resurect this. But it will take some time as I'm currently quite overloaded.
I'm new in HA, but not in developement, if I have a time, I investigate a little bit, and perhaps I try to make some changes in your code. Thank's
Hi, I found the problem. We don't have any Gates/Thermo sensors. Commented some lines from init.py
#gates = await self.hass.async_add_executor_job(
# self.bridge.get_programmable_gates, service_id, service_type
#)
#thermo_devices = await self.hass.async_add_executor_job(
# self.bridge.get_thermo_devices, service_id, service_type
#)
#_LOGGER.debug("Thermo data: %s", str(thermo_devices))
And now works fine !!
Can you add a control for errors on web service response if they don't found any Gates and/or Thermo devices ?
I also don't have any thermo devices and I see no problem. It returns empy response and this is ok. What do you get as return value for get_thermo_devices ? Any error?
Response from get_programmable_gates (this is the problem) I'm getting an error.
Resoponse from get_thermo_devices (I didn't test it, but I comented because didn't needed) No return error, it seems an empty array
Alright. This helps a lot. I epxected that every call behaves the same but I never tried to test get_programmable_gates without gates. I checked the code in the meantime and I see several problems connected with incorrect error handling. Will fix it soon. Thanks for your help.
Perfect! We look forward to the new version. Thank you very much for the work!
I discover the same issue! Also I don't have any entities - thats my debug: 2023-09-06 12:04:54.215 DEBUG (MainThread) [custom_components.jablotron_cloud] Preparing Jablotron data update coordinator 2023-09-06 12:05:00.692 DEBUG (MainThread) [custom_components.jablotron_cloud] Finished fetching Jablotron data in 6.477 seconds (success: True)
also tried to put the comments # like in the previous solution
Possible fix in latest 0.5.0 release. Please @pijix try and report here. Thanks
Hi! Installed and works fine!! Thank you!
Hi! Installed and works fine!! Thank you!
same here - now ok - thank you!
Hello, first of all thank's for your job.
I was able to install the integration and enter the credentials correctly without problems. But there is no way to show the devices and identities. Some help?