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
72.59k stars 30.36k forks source link

Flux LED Magic Home 0x033 Firmware 8 do not turn on correctly/turn off. They stay on a dim red #59190

Closed nytram-md closed 2 years ago

nytram-md commented 2 years ago

The problem

Flux LED Magic Home Firmware 8 do not turn on correctly. They turn on a dim red when turned on but show as turned off in Home Assistant.

This issue has been since the original flux integration when you typed the yaml in but @bdraco said to log an issue as they are possibly not in the database. I asked on the main 2021.11 release notes if this new integration would fix this issue and I was told it should as the database was alot bigger than this HACS Addon but I got the old issue back.

I would love to be able to use the official integration.

For the last 2 years I have been using a HACS called Flux Fork LEDs where it modifies homeassistant/components/flux_led/light.py to fix issue where LED lightstrip using MagicHome controller lights turn off immediately after turning them on. I have attached the zip of the flux_led custom component

https://github.com/CorneliousJD/Flux_LED/

1636140577147 flux_led.zip

What version of Home Assistant Core has the issue?

core-2021.11.1

What was the last working version of Home Assistant Core?

Never worked

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Flux LED/MagicHome Integration

Link to integration documentation on our website

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

Example YAML snippet

Its all through the integration now. No Yaml needed

Anything in the logs that might be useful for us?

Nothing that I can see.

Additional information

No response

probot-home-assistant[bot] commented 2 years ago

Hey there @icemanch, mind taking a look at this issue as it has been labeled with an integration (flux_led) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)


flux_led documentation flux_led source (message by IssueLinks)

bdraco commented 2 years ago

We will need some more information about which model you are using. Example:

Please post the model number from the devices screen

Screen_Shot_2021-11-04_at_6_03_03_PM

.

Please post screenshots of the light panel

Screen Shot 2021-11-04 at 6 04 26 PM

Also photos of the controller itself with readable labels of the pins would help.

Screen Shot 2021-11-04 at 6 06 08 PM

Thanks 👍

nytram-md commented 2 years ago

image

image

image

flux_led.zip

The zip file attached is from the HACS addon that fixes the situation

This is mainly when the they are turning on via automation.

I have to reset the power (unplug the LEDs) and then I can turn them on manually in Home Assistant OK

Thanks

Martyn

bdraco commented 2 years ago

This is mainly when the they are turning on via automation.

Can you clarify if it works without turning on via an automation?

Can you post the automation as well?

nytram-md commented 2 years ago

Since I reset the power on the lights. I can turn them on and off fine.

I've had both node red and big timer turning on my lights on for last 2 years but I did try an automation in Home Assistant 2 years ago when this first happened and it made no difference.

Where is the best place to find log files for this light ?

It probably won't happen again now till tomorrow sunset.

Thanks

Martyn

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: J. Nick Koston @.> Sent: Friday, November 5, 2021 8:26:00 PM To: home-assistant/core @.> Cc: nytram-md @.>; Author @.> Subject: Re: [home-assistant/core] Flux LED Magic Home Firmware 8 do not turn on correctly/turn off. They stay on a dim red (Issue #59190)

This is mainly when the they are turning on via automation.

Can you clarify if it works without turning on via an automation?

Can you post the automation as well?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/home-assistant/core/issues/59190#issuecomment-962198943, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANHZVQGSDOEZSA4LY5JUEXTUKRDWRANCNFSM5HOSHJVQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

bdraco commented 2 years ago

You can enable debug logging for ‘flux_led’ and ‘homeassistant.components.flux_led’ with https://www.home-assistant.io/integrations/logger/

Sent from my iPhone

On Nov 5, 2021, at 3:33 PM, nytram-md @.***> wrote:

 Since I reset the power on the lights. I can turn them on and off fine.

I've had both node red and big timer turning on my lights on for last 2 years but I did try an automation in Home Assistant 2 years ago when this first happened and it made no difference.

Where is the best place to find log files for this light ?

It probably won't happen again now till tomorrow sunset.

Thanks

Martyn

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: J. Nick Koston @.> Sent: Friday, November 5, 2021 8:26:00 PM To: home-assistant/core @.> Cc: nytram-md @.>; Author @.> Subject: Re: [home-assistant/core] Flux LED Magic Home Firmware 8 do not turn on correctly/turn off. They stay on a dim red (Issue #59190)

This is mainly when the they are turning on via automation.

Can you clarify if it works without turning on via an automation?

Can you post the automation as well?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/home-assistant/core/issues/59190#issuecomment-962198943, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANHZVQGSDOEZSA4LY5JUEXTUKRDWRANCNFSM5HOSHJVQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

nytram-md commented 2 years ago

home-assistant.log

Everything is working all OK currently.

I turned the LEDS off and on also, I think this is all in the file.

Thanks

Martyn

bdraco commented 2 years ago

I’m going to try to pickup one of those with the v8 firmware. Do you know how to get it in the state where you have the red light only at turn on?

Sent from my iPhone

On Nov 5, 2021, at 4:10 PM, nytram-md @.***> wrote:

 home-assistant.log

Everything is working all OK currently.

I turned the LEDS off and on also, I think this is all in the file.

Thanks

Martyn

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

nytram-md commented 2 years ago

I have only ever had the issue when it turns on at sunset.

Once I remove the power, it's like it's reset and all OK. Till next sunset.

I'll send the logs tomorrow from sunset, just incase there is any other info in there.

Thanks again for your help

Martyn

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: J. Nick Koston @.> Sent: Friday, November 5, 2021 9:12:14 PM To: home-assistant/core @.> Cc: nytram-md @.>; Author @.> Subject: Re: [home-assistant/core] Flux LED Magic Home Firmware 8 do not turn on correctly/turn off. They stay on a dim red (Issue #59190)

I’m going to try to pickup one of those with the v8 firmware. Do you know how to get it in the state where you have the red light only at turn on?

Sent from my iPhone

On Nov 5, 2021, at 4:10 PM, nytram-md @.***> wrote:

 home-assistant.log

Everything is working all OK currently.

I turned the LEDS off and on also, I think this is all in the file.

Thanks

Martyn

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/home-assistant/core/issues/59190#issuecomment-962223031, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANHZVQFW63LNTT7AD2DWTPTUKRCC5ANCNFSM5HOSHJVQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

bdraco commented 2 years ago

Thanks. It turns out I had one with the v8 firmware.

Screen Shot 2021-11-05 at 4 29 40 PM

I haven't been able to get the problem to happen though

nytram-md commented 2 years ago

It's weird as I found a few people with this issue. Not sure what the cause is.

If you leave them turned off and wait for a timer to turn them on tomorrow. Hopefully it reproduces the issue.

Thanks for everything

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: J. Nick Koston @.> Sent: Friday, November 5, 2021 9:31:05 PM To: home-assistant/core @.> Cc: nytram-md @.>; Author @.> Subject: Re: [home-assistant/core] Flux LED Magic Home Firmware 8 do not turn on correctly/turn off. They stay on a dim red (Issue #59190)

Thanks. It turns out I had one with the v8 firmware.

[Screen Shot 2021-11-05 at 4 29 40 PM]https://user-images.githubusercontent.com/663432/140580822-f450bf88-610d-46be-b5a8-2b5782ba0306.png

I haven't been able to get the problem to happen though

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/home-assistant/core/issues/59190#issuecomment-962233524, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANHZVQCYM2THH7U2PW6TO2LUKRLKTANCNFSM5HOSHJVQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

nytram-md commented 2 years ago

Hi.

Does the HACS add-on that I uploaded in the zip file have any different code to fix my issue as it's worked the last 2 years ?

If you can't recreate it, you may see the fix in the code.

Thanks again

Martyn

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: J. Nick Koston @.> Sent: Friday, November 5, 2021 9:31:05 PM To: home-assistant/core @.> Cc: nytram-md @.>; Author @.> Subject: Re: [home-assistant/core] Flux LED Magic Home Firmware 8 do not turn on correctly/turn off. They stay on a dim red (Issue #59190)

Thanks. It turns out I had one with the v8 firmware.

[Screen Shot 2021-11-05 at 4 29 40 PM]https://user-images.githubusercontent.com/663432/140580822-f450bf88-610d-46be-b5a8-2b5782ba0306.png

I haven't been able to get the problem to happen though

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/home-assistant/core/issues/59190#issuecomment-962233524, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANHZVQCYM2THH7U2PW6TO2LUKRLKTANCNFSM5HOSHJVQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

bdraco commented 2 years ago

I finally got the bad state to happen. When it does, I can't even turn it on from the magic home pro app either.

nytram-md commented 2 years ago

Great stuff. That's what happens but if you pull the power, it's all OK again.

If you can find what they did in that HACS code, it's worked flawlessly.

Really appreciated and glad you managed to get it to do it

Martyn

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: J. Nick Koston @.> Sent: Friday, November 5, 2021 11:30:46 PM To: home-assistant/core @.> Cc: nytram-md @.>; Author @.> Subject: Re: [home-assistant/core] Flux LED Magic Home Firmware 8 do not turn on correctly/turn off. They stay on a dim red (Issue #59190)

I finally got the bad state to happen. When it does, I can't even turn it on from the magic home pro app either.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/home-assistant/core/issues/59190#issuecomment-962278087, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANHZVQCGIYTHY2WU2OHUQ23UKRZLNANCNFSM5HOSHJVQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

bdraco commented 2 years ago

If you can find what they did in that HACS code, it's worked flawlessly.

The problem with that solution is it will break other devices which is why it never got merged (or did and was eventually reverted).

The strip is actually sending back a strip has turned off message after sending the turn on command when it gets in this state. Sending turn off and then turn on seems to get it out of the bad state.

https://github.com/Danielhiversen/flux_led/pull/154

nytram-md commented 2 years ago

Totally understand, you see the bigger picture 👍

Will it be solvable this issue ?

👍

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: J. Nick Koston @.> Sent: Friday, November 5, 2021 11:39:46 PM To: home-assistant/core @.> Cc: nytram-md @.>; Author @.> Subject: Re: [home-assistant/core] Flux LED Magic Home Firmware 8 do not turn on correctly/turn off. They stay on a dim red (Issue #59190)

If you can find what they did in that HACS code, it's worked flawlessly.

The problem with that solution is it will break other devices which is why it never got merged.

The strip is actually sending back a strip has turn off message after sending the turn on command when it gets in this state. Turning the strip off and then on again seems to get it out of the bad state.

Danielhiversen/flux_led#154https://github.com/Danielhiversen/flux_led/pull/154

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/home-assistant/core/issues/59190#issuecomment-962280494, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANHZVQHGU5WNXXQ2J47Z2NTUKR2NFANCNFSM5HOSHJVQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

bdraco commented 2 years ago

Totally understand, you see the bigger picture 👍 Will it be solvable this issue ? 👍

I opened https://github.com/home-assistant/core/pull/59211 After that change, I'm no longer able to replicate the issue. The catch is that mine didn't turn on dim red, it turned off right after it turned on which is the behavior described on the forums so 🤞 that its the same issue.