nagyrobi / home-assistant-custom-components-linkplay

LinkPlay based media devices integration for Home Assistant. Supports multiroom, Media Browser, and snapshot and restore functionality for TTS. Compatible with Mini Media Player card.
163 stars 29 forks source link

add feature: reboot device #105

Closed jahegu closed 1 year ago

jahegu commented 1 year ago

Not sure if it's available for all devices but acording Arylic API documentation it is possible to force a reboot device:

GET /httpapi.asp?command=reboot

https://developer.arylic.com/httpapi/#reboot-device

is it possible to add this feature on the component?

nagyrobi commented 1 year ago

Reboot has been removed from the API a few years ago...

jahegu commented 1 year ago

Ok, On my case i have Ayrlic DIY board and it is still supported... And needed sometimes

BR,

nagyrobi commented 1 year ago

it's not a real reboot, it just kills the linkplay process in the board. The linux system behind it doesn't really reboot, just restarts the process.

jahegu commented 1 year ago

Thank you very much for the info. In my case it's been enough to fix online radio streaming issues. I scheduled a daily reboot API and this device rarely fails again. It's also sure that I check a ping /t on the device and rarely it loses any packet so it should, as you say, just a light service reboot.

A part of power off-on I understand that there is no better way to restart the device?

BR,

El vie, 27 ene 2023 a las 8:08, H. Árkosi Róbert @.***>) escribió:

it's not a real reboot, it just kills the linkplay process in the board. The linux system behind it doesn't really reboot, just restarts the process.

— Reply to this email directly, view it on GitHub https://github.com/nagyrobi/home-assistant-custom-components-linkplay/issues/105#issuecomment-1406106474, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFUGHJRUDFZQIQHWNGDFUODWUNX5HANCNFSM6AAAAAAUH7PMKY . You are receiving this because you authored the thread.Message ID: <nagyrobi/home-assistant-custom-components-linkplay/issues/105/1406106474@ github.com>

nagyrobi commented 1 year ago

add a Sonoff switch in front of it...