home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.9k stars 30.97k forks source link

Shelly RGBW2 in 'light' mode reports four temperature sensors instead of one #129176

Open NoRi2909 opened 4 weeks ago

NoRi2909 commented 4 weeks ago

The problem

Shelly RGBW2 Device Firmware: 1.4.4 (current)

When you add a Shelly RGBW2 in 'rgbw' mode it will show only a single temperature sensor under Diagnostic:

Screenshot 2024-10-25 19 54 03

But when you switch it to 'light' mode with four independent white channels it not only has three more light entities. It will also show four temperature sensors now which all report the same (obviously):

Screenshot 2024-10-25 19 55 44

As the sensor does measure the internal temperature of the Shelly RGBW and not of a connected light it does not make sense to duplicate this.

I assume this happens because the temperature is treated the same way as the voltage, current, power and energy sensors, which become separate for each channel once you switch from 'rgbw' to 'light'. And the temperature somehow got onto that list instead of remaining single like all other sensors.

What version of Home Assistant Core has the issue?

2024.10.3

What was the last working version of Home Assistant Core?

n/a

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Shelly

Link to integration documentation on our website

https://www.home-assistant.io/integrations/shelly

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 4 weeks ago

Hey there @balloob, @bieniu, @thecode, @chemelli74, @bdraco, mind taking a look at this issue as it has been labeled with an integration (shelly) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `shelly` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign shelly` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


shelly documentation shelly source (message by IssueLinks)

chemelli74 commented 4 weeks ago

Hi @NoRi2909, please access the following URL with your browser (where x.x.x.x is the ip address of the Shelly affected device):

http://x.x.x.x/rpc/Shelly.GetStatus

and paste here the result. Thx

NoRi2909 commented 4 weeks ago

Hi @chemelli74, here you go:

{"ble":{},"cloud":{"connected":true},"input:0":{"id":0,"state":null},"input:1":{"id":1,"state":null},"input:2":{"id":2,"state":null},"input:3":{"id":3,"state":null},"light:0":{"id":0,"source":"dim","output":false,"brightness":50,"temperature":{"tC":50.2, "tF":122.3},"aenergy":{"total":11.217,"by_minute":[0.000,0.000,0.000],"minute_ts":1729948980},"apower":0.0,"current":0.000,"voltage":27.5},"light:1":{"id":1,"source":"calibration","output":false,"brightness":50,"temperature":{"tC":50.2, "tF":122.3},"voltage":27.5,"flags":["no_load"]},"light:2":{"id":2,"source":"calibration","output":false,"brightness":50,"temperature":{"tC":50.2, "tF":122.3},"voltage":27.5,"flags":["no_load"]},"light:3":{"id":3,"source":"calibration","output":false,"brightness":50,"temperature":{"tC":50.2, "tF":122.3},"voltage":27.5,"flags":["no_load"]},"mqtt":{"connected":false},"plusrgbwpm":{},"sys":{"mac":"A0A3B35C7BCC","restart_required":false,"time":"15:23","unixtime":1729949037,"uptime":70172,"ram_size":251948,"ram_free":122112,"fs_size":393216,"fs_free":94208,"cfg_rev":54,"kvs_rev":0,"schedule_rev":9,"webhook_rev":7,"available_updates":{},"reset_reason":3},"wifi":{"sta_ip":"192.168.86.36","status":"got ip","ssid":"Rittel","rssi":-59},"ws":{"connected":false}}

Note that at the moment I have only channel 0 in use for a single light.

chemelli74 commented 4 weeks ago

can you switch back to the 4 channel/lights and provide the same output please ?

NoRi2909 commented 4 weeks ago

Here it comes:

{"ble":{},"cloud":{"connected":true},"input:0":{"id":0,"state":null},"input:1":{"id":1,"state":null},"input:2":{"id":2,"state":null},"input:3":{"id":3,"state":null},"mqtt":{"connected":false},"plusrgbwpm":{},"rgbw:0":{"id":0,"source":"overvoltage","output":false,"rgb":[0,0,128],"brightness":50,"white":128,"temperature":{"tC":50.2, "tF":122.3},"errors": ["overvoltage"],"aenergy":{"total":0.000,"by_minute":[0.000,0.000,0.000],"minute_ts":1729949340},"apower":0.0,"current":0.000,"voltage":27.6},"sys":{"mac":"A0A3B35C7BCC","restart_required":false,"time":"15:29","unixtime":1729949350,"uptime":14,"ram_size":252232,"ram_free":126240,"fs_size":393216,"fs_free":94208,"cfg_rev":55,"kvs_rev":0,"schedule_rev":10,"webhook_rev":8,"available_updates":{},"reset_reason":3},"wifi":{"sta_ip":"192.168.86.36","status":"got ip","ssid":"Rittel","rssi":-60},"ws":{"connected":false}}

NoRi2909 commented 3 weeks ago

@chemelli74 Any additional information you may need? I assume this is a bug on Shelly's side then?

chemelli74 commented 3 weeks ago

We need to speak with Shelly in order to fix the firmware