Closed hubecker closed 5 months ago
Thanks Hubert, I'll have a look next week.
The output for a Sonos Roam is the same:
<?xml version="1.0" ?>
<?xml-stylesheet type="text/xsl" href="/xml/review.xsl"?>
<ZPSupportInfo>
<LocalBatteryStatus>
<Data name="Health">GREEN</Data>
<Data name="Level">100</Data>
<Data name="Temperature">NORMAL</Data>
<Data name="PowerSource">SONOS_CHARGING_RING</Data>
</LocalBatteryStatus>
<!-- SDT: 0 ms -->
</ZPSupportInfo>
Of course only when WLAN connected, not in bluetooth mode.
Don't know how to handle this one: Would be also great to handle the mode meaning switching from WLAN to bluetooth and back. But i don't know if there is an API, because even in the APP it is not possible.
Any updates for this request?
Anyone who wants can create a pr for this, I don't own such a device so cannot test it myself.
Battery status feature request
I like to get the battery status of my Sonos Move
With the following URL
http://<IP>:1400/status/batterystatus
you get the battery status
the Browser shows the follwing:
The HTTPBody of the request:
<?xml version="1.0" ?><?xml-stylesheet type="text/xsl" href="/xml/review.xsl"?><ZPSupportInfo><LocalBatteryStatus><Data name="Health">UNKNOWN_batteryHealth</Data><Data name="Level">100</Data><Data name="Temperature">NORMAL</Data><Data name="PowerSource">SONOS_CHARGING_RING</Data></LocalBatteryStatus><!-- SDT: 0 ms --></ZPSupportInfo>