-
SummaryI'm using Kasa devices (HS110, HP115, KP125/EP25, HS300) to monitor power consumption and/or provide remote reboot (power cycle) capability in case a connected device becomes unresponsive. I'd like to be able to monitor for Kasa device reboots, since that results in an unexpected power loss for the connected load. I'm looking to see anyone has any better ideas/solutions to this than I've come up with so far. The problemWhen Kasa devices reboot the connected device will briefly lose power. The reboot can be caused by a firmware update or the Kasa device crashing and rebooting. Unexpected firmware updates can be prevented by blocking Kasa devices from internet access, but that has some side effects. While I've had a number of years of very reliable performance with devices like the HS110s, I've had problems with recent KP125/EP25 devices spontaneously rebooting. The result is I've spent time investigating why connected computers have rebooted, but couldn't find anything in the logs because the cause was power loss to only that device. Note: kp125/ep25 firmware issue(NOTE: This may have been related to the problem KP125 reboots if it can't call home. Firmware 1.0.10 only. I've recently upgraded to 1.0.13, but it will take time to see if that fixes things.) Question(s)Is there a way to query a Kasa device to get the uptime (how long since last reboot) or the time it was booted? Any way to query any sort of device logs or debugging info? What I've found so far
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, There is no real uptime you could check to our knowledge, so the closest you get at the moment is by using the You can check out the fixture files to see what other data is available, e.g., https://github.com/python-kasa/python-kasa/blob/master/kasa/tests/fixtures/smart/EP25(US)_2.6_1.0.2.json for the authenticated EP25 variant or using the json output just like you already did. If you find something that should be made available as a sensor, let us know :-) |
Beta Was this translation helpful? Give feedback.
Hi,
There is no real uptime you could check to our knowledge, so the closest you get at the moment is by using the
on_time
information like you mentioned. This information is not at the moment exposed to homeassistant, but you can track #741 which aims to make more information accessible to homeassistant.You can check out the fixture files to see what other data is available, e.g., https://github.com/python-kasa/python-kasa/blob/master/kasa/tests/fixtures/smart/EP25(US)_2.6_1.0.2.json for the authenticated EP25 variant or using the json output just like you already did. If you find something that should be made available as a sensor, let us know :-)