StyraHem / ShellyForHASS

Shelly smart home platform for Home Assistant
MIT License
615 stars 110 forks source link

[BUG] config.yaml > "light_switch: true" being ignored #633

Closed mossc001 closed 11 months ago

mossc001 commented 2 years ago

Environment

Describe the bug

Override settings written into the config.yaml are being ignored; Shelly 1's and 2.5's which were configured as "light_switch" are now configured as a standard switch, and the configuration seems to be ignored.

` shelly: sensors:

Steps to Reproduce

Update to Shelly 3.x and reboot.

Expected behavior

The device/switch is recognised as a light.

Screenshots

Screenshots attached.

2021-12-17 08_28_42-Configuration - Home Assistant

2021-12-17 08_35_37-File editor - Home Assistant

Traceback/Error logs

Additional context

nanni85 commented 2 years ago

Same problem for me with 0.3.3

nanni85 commented 2 years ago

@mossc001 you have solved? i have lost all automations with this bug...

mossc001 commented 2 years ago

@nanni85 , same, every automation relating to the light entity is not working. I tried everything, upper case entity ID, lower case, changing some settings around, but it still does not work.

I cannot see any errors either. How about you?

nanni85 commented 2 years ago

Hello, @hakana can you help us?

b2eboy commented 2 years ago

Same here. Lost all controls and related automations.

mossc001 commented 2 years ago

@nanni85 & @b2eboy , any success or have you changed your automations now?

b2eboy commented 2 years ago

I was not able to make it work. There's too many shellies on my network to change it manually everywhere. I downgraded back to old version until it will be more clear based on this discussion.

SLeopold1986 commented 2 years ago

Same here.

jsole commented 2 years ago

Is there any work arround yet? Should I remove the yaml configuration to get the lights automatically? Thanks!

mossc001 commented 2 years ago

I'm not sure that this is being maintained anymore as it's been almost 3 months; look at the other issue. I'm personally planning a migration to the main HA integration.

hakana commented 2 years ago

It is maintained but my time is limited so I'm trying to fix things as fast as possible. I will spend some time coming days and this is an issue I will try to fix.

jsole commented 2 years ago

Hi hakana, thanks! It will be great to get those shellys as lights again. It's hard to get the google assistant working if they're not lights anymore.

If I can help you in some way just tell me. I've got a bunch of shelly 1 and a shelly 2.5

SLeopold1986 commented 2 years ago

What can I do to fix this issue? It is really bad that there is no fix for that for so a long time.