mattsaxon / HASS-SpeakercraftMediaPlayer

Speakercraft Platform for Home Assistant
4 stars 1 forks source link

Status in Home Assistant Shows as Off if Speakercraft is Turned off then back on #47

Open bigscience12 opened 2 years ago

bigscience12 commented 2 years ago

I don't leave my Speakercraft unit on all the time as it seems to generate heat even if no channels are on but if I manually turn it off, I need to reboot Home Assistant to get it to correctly recognize the state when turned back on. Is there a way to "refresh" Home Assistant or the addon without a restart?

sjeffrey101 commented 2 years ago

how have you got it connected, between the unit and HA. i cut the power to the controller contantly (using a smart switch and our built in functionality) and havent experienced this issue.

bigscience12 commented 2 years ago

I have this setup: network switch > ethernet cable > RS232 to Ethernet Converter > null modem

gender changer > serial MZC cable > Control Port

I have the 2.2.8 firmware as well.

This and HACS are my only custom components so I'm not as familiar with them. Maybe if there's a way I could script HA to reload the SpeakerCraftMediaPlayer with a button that would solve the issue.

Here are the errors I'm seeing in the logs:

2022-06-19 17:44:37 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration speakercraft_media which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2022-06-19 17:44:58 WARNING (MainThread) [custom_components.speakercraft_media.speakercraft_media] throw away early trim 00 2022-06-19 17:44:58 WARNING (MainThread) [custom_components.speakercraft_media.speakercraft_media] throw away early trim 28 2022-06-19 17:44:58 WARNING (MainThread) [custom_components.speakercraft_media.speakercraft_media] throw away early trim 32 2022-06-19 17:45:09 WARNING (MainThread) [custom_components.speakercraft_media.speakercraft_media] throw away early trim 00 2022-06-19 17:45:09 WARNING (MainThread) [custom_components.speakercraft_media.speakercraft_media] throw away early trim 00 2022-06-19 17:45:13 WARNING (MainThread) [custom_components.speakercraft_media.speakercraft_media] throw away early trim 00 2022-06-19 17:45:19 WARNING (MainThread) [homeassistant.components.button] Setup of button platform speakercraft_media is taking over 10 seconds. 2022-06-19 17:45:19 WARNING (MainThread) [homeassistant.components.number] Setup of number platform speakercraft_media is taking over 10 seconds. 2022-06-19 17:45:20 WARNING (MainThread) [homeassistant.components.switch] Setup of switch platform speakercraft_media is taking over 10 seconds.

Let me know if you need any other information. I can try to do some other testing as well if that helps.

On Wed, Jun 22, 2022 at 2:29 PM sjeffrey101 @.***> wrote:

how have you got it connected, between the unit and HA. i cut the power to the controller contantly (using a smart switch and our built in functionality) and havent experienced this issue.

— Reply to this email directly, view it on GitHub https://github.com/mattsaxon/HASS-SpeakercraftMediaPlayer/issues/47#issuecomment-1163622643, or unsubscribe https://github.com/notifications/unsubscribe-auth/AX3AFX7HEFZU5CSDRE4THPLVQOATZANCNFSM5ZOYIVFA . You are receiving this because you authored the thread.Message ID: @.***>