core: Shelly RGBW2 light entities no longer available after 0.116 upgrade

The problem

After an update to 0.116 the 4 light entities of the rgbw2 are no longer available, the only sensor available is binary_sensor.shellyrgbw2_XXXXXX_overpowering. I have tried removing and re-adding the integration, I upgraded to 0.116.1, and rebooted the shelly device

Environment

  • Home Assistant Core release with the issue: 0.116
  • Last working Home Assistant Core release (if known): 0.115.X
  • Operating environment (OS/Container/Supervised/Core): HassOS 4.13
  • Integration causing this issue: Shelly
  • Link to integration documentation on our website: https://www.home-assistant.io/integrations/shelly

Problem-relevant configuration.yaml

N/a

Traceback/Error logs

N/a

Additional information

The Shelly is running the latest firmware available

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 17 (6 by maintainers)

Most upvoted comments

Success!

In order to edit files in core/homeassistant/ from the console in proxmox which puts you into the homeassistant cli.

  1. login as root (no password)
  2. Then type ‘login’ to get into the host system
  3. “docker ps | grep homeassistant:0.116” This is to get your container ID of homeassistant. It’s the first string of characters mine was ‘1166cf2a5c1a’ yours will be different.
  4. run 'docker exec -it ‘container ID’ bash (this opens a shell within the homeassistant container)
  5. ‘cd /usr/src/homeassistant/homeassistant/components/shelly’
  6. ‘vi entity.py’ , and make the changes @chemelli74 suggested

restarted homeassistant and the light entities came back! Thanks @chemelli74

{“device”:{“type”:“SHRGBW2”,“mac”:“XXXXXXXXXX”,“hostname”:“shellyrgbw2-6CD3B1”,“num_outputs”:4},“wifi_ap”:{“enabled”:false,“ssid”:“shellyrgbw2-6CD3B1”,“key”:“”},“wifi_sta”:{“enabled”:true,“ssid”:“XXXXXXX”,“ipv4_method”:“static”,“ip”:“192.168.2.16”,“gw”:“192.168.2.1”,“mask”:“255.255.255.0”,“dns”:null},“wifi_sta1”:{“enabled”:true,“ssid”:“XXXXXXX”,“ipv4_method”:“dhcp”,“ip”:null,“gw”:null,“mask”:null,“dns”:null},“mqtt”: {“enable”:true,“server”:“192.168.XXXX:1883”,“user”:“mqtt”,“id”:“shellyrgbw2-6CD3B1”,“reconnect_timeout_max”:60.000000,“reconnect_timeout_min”:2.000000,“clean_session”:true,“keep_alive”:60,“max_qos”:0,“retain”:false,“update_period”:30},“coiot”: {“update_period”:15},“sntp”:{“server”:“time.google.com”,“enabled”:true},“login”:{“enabled”:true,“unprotected”:false,“username”:“XXXXXX”},“pin_code”:“”,“name”:null,“fw”:“20200827-070232/v1.8.3@4a8bc427”,“factory_reset_from_switch”:true,“discoverable”:true,“build_info”:{“build_id”:“20200827-070232/v1.8.3@4a8bc427”,“build_timestamp”:“2020-08-27T07:02:32Z”,“build_version”:“1.0”},“cloud”:{“enabled”:false,“connected”:false},“timezone”:“Europe/Amsterdam”,“lat”:51.924400,“lng”:4.477730,“tzautodetect”:true,“tz_utc_offset”:7200,“tz_dst”:true,“tz_dst_auto”:true,“time”:“13:07”,“unixtime”:1602680851,“led_status_disable”:false,“fw_mode”:“SHRGBW2!white”,“actions”:{“active”:false,“names”:[“btn_on_url”,“btn_off_url”,“longpush_url”,“shortpush_url”,“out_on_url”,“out_off_url”,“out_on_url”,“out_off_url”,“out_on_url”,“out_off_url”,“out_on_url”,“out_off_url”]},“hwinfo”: {“hw_revision”:“prod-190822”,“batch_id”:1},“mode”:“white”,“dcpower”:0,“lights”:[{“name”:null,“ison”:false,“brightness”:100,“default_state”:“switch”,“auto_on”:0.00,“auto_off”:0.00,“schedule”:false,“btn_type”:“detached”,“btn_reverse”:0,“schedule_rules”:[],“out_on_url”:“”,“out_off_url”:“”},{“name”:null,“ison”:false,“brightness”:50,“default_state”:“switch”,“auto_on”:0.00,“auto_off”:0.00,“schedule”:false,“schedule_rules”:[],“out_on_url”:“”,“out_off_url”:“”},{“name”:null,“ison”:false,“brightness”:50,“default_state”:“switch”,“auto_on”:0.00,“auto_off”:0.00,“schedule”:false,“schedule_rules”:[],“out_on_url”:“”,“out_off_url”:“”},{“name”:null,“ison”:false,“brightness”:50,“default_state”:“switch”,“auto_on”:0.00,“auto_off”:0.00,“schedule”:false,“schedule_rules”:[],“out_on_url”:“”,“out_off_url”:“”}]}