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

[shelly] Support for Plus RGBW PM #16405

Closed
markus7017 opened this issue Feb 14, 2024 · 6 comments · Fixed by #17692
Closed

[shelly] Support for Plus RGBW PM #16405

markus7017 opened this issue Feb 14, 2024 · 6 comments · Fixed by #17692
Assignees
Labels
enhancement An enhancement or new feature for an existing add-on work in progress A PR that is not yet ready to be merged

Comments

@markus7017
Copy link
Contributor

The Plus version of the RGBW2 is the RGBW PM

@markus7017 markus7017 added the enhancement An enhancement or new feature for an existing add-on label Feb 14, 2024
@markus7017 markus7017 self-assigned this Feb 14, 2024
@markus7017 markus7017 added the work in progress A PR that is not yet ready to be merged label May 11, 2024
@fd0cwp
Copy link
Contributor

fd0cwp commented Jun 14, 2024

Hi @markus7017,
I just bought such a device and did not have a look beforehand if OH supports it. 😔
Are there any news?
Could I use your changes in OH 4.1.1? If yes, I would be happy to test it. 😉
Otherwise, I have to search for another device.

@fd0cwp
Copy link
Contributor

fd0cwp commented Jul 26, 2024

Hi @markus7017,

Meanwhile I installed OH 4.2.0. The device is shown but obviously not available in the database:
image

Or did I something wrong?

@fd0cwp
Copy link
Contributor

fd0cwp commented Jul 27, 2024

Interesting is the error message which says that the IP address is not configured, but in the Thing Properties section, it is visible, correct and in browser accessible.
Unfortunately, I do not have the possibility to configure anything:
image

@fd0cwp
Copy link
Contributor

fd0cwp commented Aug 10, 2024

Hi @markus7017,

I had a closer look at the issue. The problem is that the binding tries to access a URL (http:///settings) which is not available on the device:

2024-08-10 20:40:43.738 [DEBUG] [shelly.internal.ShellyHandlerFactory] - Shelly RGBW2 White Mode: Create new thing of type shelly:shellyrgbw2-white using ShellyLightHandler
2024-08-10 20:40:43.778 [DEBUG] [shelly.internal.ShellyHandlerFactory] - Thing handler for uid shelly:shellyrgbw2-white:e923c3495d added, total things = 6
2024-08-10 20:40:43.781 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'shelly:shellyrgbw2-white:e923c3495d' changed from UNINITIALIZED (DISABLED) to INITIALIZING
2024-08-10 20:40:45.789 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyrgbw2-white-e923c3495d: Using default userId admin from binding config
2024-08-10 20:40:45.790 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyrgbw2-white-e923c3495d: Using default password from bindingConfig (userId=admin)
2024-08-10 20:40:45.791 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyrgbw2-white-e923c3495d: updateInterval = 60s -> skipCount = 20
2024-08-10 20:40:45.791 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyrgbw2-white-e923c3495d: Config: Device address=<IP-Address>, HTTP user/password=admin/***, update interval=60
2024-08-10 20:40:45.791 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyrgbw2-white-e923c3495d: Start initializing for thing Shelly RGBW2 White Mode, type shellyrgbw2-white, IP address <IP-Address>, Gen2: false, CoIoT: false
2024-08-10 20:40:45.822 [TRACE] [shelly.internal.api.ShellyHttpClient] - shellyrgbw2-white-e923c3495d: HTTP GET http://<IP-Address>/shelly
2024-08-10 20:40:45.837 [TRACE] [shelly.internal.api.ShellyHttpClient] - shellyrgbw2-white-e923c3495d: HTTP Response 200: {"name":"Lichtband Küche","id":"shellyplusrgbwpm-a0a3b35c7a28","mac":"A0A3B35C7A28","slot":1,"model":"SNDC-0D4P10WW","gen":2,"fw_id":"20240625-122911/1.3.3-gbdfd9b3","ver":"1.3.3","app":"PlusRGBWPM","auth_en":false,"auth_domain":null,"profile":"light"}
2024-08-10 20:40:45.838 [TRACE] [shelly.internal.api.ShellyHttpClient] - shellyrgbw2-white-e923c3495d: HTTP GET **http://<IP-Address>/settings**
2024-08-10 20:40:45.853 [TRACE] [shelly.internal.api.ShellyHttpClient] - shellyrgbw2-white-e923c3495d: HTTP Response 404: Not Found
2024-08-10 20:40:45.854 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyrgbw2-white-e923c3495d: Unexpected API result: 404/Not Found
2024-08-10 20:40:45.793 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'shelly:shellyrgbw2-white:e923c3495d' changed from INITIALIZING to UNKNOWN (CONFIGURATION_PENDING): Initialisierung oder Gerät im Schlafmodus.
2024-08-10 20:40:45.860 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'shelly:shellyrgbw2-white:e923c3495d' changed from UNKNOWN (CONFIGURATION_PENDING): Initialisierung oder Gerät im Schlafmodus. to OFFLINE (COMMUNICATION_ERROR): Es trat ein unerwartetes Problem beim API-Zugriff auf. Überprüfen Sie die Logdatei für genauere Informationen.

Do you have an idea why the binding tries to access http:///settings?

@openhab-bot
Copy link
Collaborator

This issue has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/shelly-binding/56862/4038

@fragment9
Copy link

fragment9 commented Oct 16, 2024

Do you have an idea why the binding tries to access http:///settings?

No, but it would need to be http:///#/settings.. Anyone with a quick and dirty fix to change this in the addon?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on work in progress A PR that is not yet ready to be merged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants