StyraHem / ShellyForHASS

Shelly smart home platform for Home Assistant
MIT License
621 stars 111 forks source link

[BUG] Shelly 2.5/1PM configured as light Load cause duplicate entity switch & light #462

Closed HawkUser closed 3 years ago

HawkUser commented 3 years ago

Environment

Describe the bug

I have a few shelly devices that are configured as Light load type instead of the socket option (attached print screen), those devices represented in the HA as switch and light, while the switch entity seems to be "not responding", also, these devices are represented as not responding in homekit

Steps to Reproduce

Configure shelly device as Light load type.

Expected behavior

No duplicate should exist, only a light entity or switch.

Screenshots

image image

Traceback/Error logs

Additional context

filmgarage commented 3 years ago

This is actually a 'feature' in Home Assistant. As you can see from the icon to the right the switch entity is offline. HA will keep these old entities so it will be able to reconnect if it was to come back online. This is very helpful if you integrate the entities in HomeKit or otherwise. The very simple suolution to get rid of old entities is to delete them in HA. Just highlight all entities you want to remove and a dialog will come up asking what you want to do with them. Choose to remove selected entities. BTW you cannot delete entities if they are still present in your setup!

  1. Select entities:

    Entities
  2. Options at top of screen:

    Options
  3. Warning dialog:

    Dialog
hakana commented 3 years ago

Yes, that is like it should. I will close this issue now.