Baldhor / Homey-ESPhome-Enhanced

This is an Homey app which adds support for ESPHome devices. ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems. More information on their homepage: https://www.esphome.io/
GNU General Public License v3.0
4 stars 3 forks source link

[BUG] Latest Homey update app unavailable error messages #70

Closed Dest1n7 closed 8 months ago

Dest1n7 commented 8 months ago

Since the latest homey update (earlier today) the devices have error messages reading “app unavailable”.

Baldhor commented 8 months ago

Can you retrieve the log info for the physical device concerned ?

From the manage your physical devices page in the wizard.

I'm sorry for the issue, looking at it I believe youu are not alone with this issue

Le lun. 23 oct. 2023, 14:49, Dest1n7 @.***> a écrit :

Assigned #70 https://github.com/Baldhor/Homey-ESPhome-Enhanced/issues/70 to @Baldhor https://github.com/Baldhor.

— Reply to this email directly, view it on GitHub https://github.com/Baldhor/Homey-ESPhome-Enhanced/issues/70#event-10740322992, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANXYPVJ2D5MB35TJU6XGW43YAZRV5AVCNFSM6AAAAAA6MAS646VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJQG42DAMZSGI4TSMQ . You are receiving this because you were assigned.Message ID: @.*** com>

Baldhor commented 8 months ago

Reading it again, the app doesn't even start correctly!

Damn it, I can't do anything from work .. need wait a few hours for a fix.

Le lun. 23 oct. 2023, 15:04, baldhor s @.***> a écrit :

Can you retrieve the log info for the physical device concerned ?

From the manage your physical devices page in the wizard.

I'm sorry for the issue, looking at it I believe youu are not alone with this issue

Le lun. 23 oct. 2023, 14:49, Dest1n7 @.***> a écrit :

Assigned #70 https://github.com/Baldhor/Homey-ESPhome-Enhanced/issues/70 to @Baldhor https://github.com/Baldhor.

— Reply to this email directly, view it on GitHub https://github.com/Baldhor/Homey-ESPhome-Enhanced/issues/70#event-10740322992, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANXYPVJ2D5MB35TJU6XGW43YAZRV5AVCNFSM6AAAAAA6MAS646VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJQG42DAMZSGI4TSMQ . You are receiving this because you were assigned.Message ID: @.*** com>

Baldhor commented 8 months ago

Ok so I found the issue, I added a piece of code to clean up the options of the capabilities. Because of a past bug, it could contains null or empty ("") values ...

The problem now is that sometimes, a capability doesn't have any options ... and the getCapabilityOptions of Homey returns an "invalid capability" error. This function is called in many places through the code, so I need to implement my own function which will catch the error and returns an empty object (instead of an error) ... then modify all the code to call the new function instead of the Homey one ...

Like 10 minutes to fix and test ...

But I need my computer to do so.

I will publish the fix in about 4/5 hours (cannot from work).

Baldhor commented 8 months ago

@Dest1n7 see above, sorry for the inconvenience

Dest1n7 commented 8 months ago

Appreciate it @Baldhor !!

Baldhor commented 8 months ago

Working on it, but I had to fix a bug related to #41 first (otherwise I cannot reproduce) ...

Baldhor commented 8 months ago

I cannot reproduce it, my setup imply that capabilities always have options ...

I still made a fix, and verified that it doesn't make new issue ...

@Dest1n7 Sorry for it, but please can you check if it fix the issue ? => https://tools.developer.homey.app/apps/app/nl.inversion.esphome/build/75

Dest1n7 commented 8 months ago

Good morning @Baldhor everything seems to work again after the latest update. Thank you so so much for the super quick turnaround!!!

Baldhor commented 8 months ago

Closing