# Inconsistent state reported by Sonos ‘State’ channels

**URL:** <https://community.openhab.org/t/inconsistent-state-reported-by-sonos-state-channels/137983>\
**Category:** Bindings\
**Tags:** sonos\
**Created:** [August 8, 2022, 10:34pm UTC](https://community.openhab.org/t/inconsistent-state-reported-by-sonos-state-channels/137983 "2022-08-08T22:34:53Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![ecser99](https://community.openhab.org/letter_avatar_proxy/v4/letter/e/d6d6ee/32.png) [@ecser99](https://community.openhab.org/u/ecser99)\
**Post date:** [June 4, 2023, 5:51am UTC](https://community.openhab.org/t/inconsistent-state-reported-by-sonos-state-channels/137983/21 "2023-06-04T05:51:40Z")

</div>

I still have this bug, I can reproduce it exactly in the way described here:

> [@Inconsistent state reported by Sonos ‘State’ channels](https://community.openhab.org/t/inconsistent-state-reported-by-sonos-state-channels/137983/6):
>
> All my previous tests were using Apple Music, initiated via the Sonos App. I’ve just repeated the steps to reproduce this with Amazon Music, TuneIn and Sonos Radio, and the results are the same. Here are the steps broken down. Once again I’ve made sure to disable all rules for this test: Note: In the screenshots below, the Sonos app always exhibits the expected behaviour (i.e. it accurately reflects the reality of whether speakers are grouped or playing etc.) Start playing music in Kitchen …

The wrong state corrects itself after some time between 40 sec and 3 minutes.

I have disabled all rules for testing. I have sonos:connects and connect:amps, and a SYMFONISK, latest firmware, I use the Sonos S1 controller. All players use a wired LAN connection.  
OH 3.4.4 is running on a NUC (backup OH 3.4.4 on a Synology NAS in a docker container) both produce the same issue.  
Currently I use a workaround, a rule which refreshes all the sonos things whenever one of the players local\_coordinator changes to ON. This way the states get corrected in a few seconds after any ungroup action:

```php
rule sonos_refresh
when
 Item Sonos_ConnectAmp_Konyha_Local_Coordinator changed to ON or
 Item Sonos_ConnectAmp_Furdo_Local_Coordinator changed to ON or
...
then

//The sonos things get switched off and on again
  sendHttpPutRequest("http://a:b@localhost:8080/rest/things/sonos:CONNECTAMP:RINCON_xxxxxxx/enable", "text/plain", "false") 
  sendHttpPutRequest("http://a:b@localhost:8080/rest/things/sonos:CONNECTAMP:RINCON_xxxxxxx/enable", "text/plain", "true") 

  sendHttpPutRequest("http://a:b@localhost:8080/rest/things/sonos:CONNECTAMP:RINCON_yyyyyyy/enable", "text/plain", "false") 
  sendHttpPutRequest("http://a:b@localhost:8080/rest/things/sonos:CONNECTAMP:RINCON_yyyyyyy/enable", "text/plain", "true") 
...
end

```

Maybe the binding could be adjusted to handle this better?  
Thanks  
ecser

---

<div class="post-metadata">

**Author:** ![stamate\_viorel](https://community.openhab.org/letter_avatar_proxy/v4/letter/s/41988e/32.png) [@stamate\_viorel](https://community.openhab.org/u/stamate_viorel)\
**Post date:** [June 4, 2023, 7:42am UTC](https://community.openhab.org/t/inconsistent-state-reported-by-sonos-state-channels/137983/22 "2023-06-04T07:42:14Z")

</div>

I also have this problem after upgrading to 3.4.4.

[Previous page](https://community.openhab.org/t/inconsistent-state-reported-by-sonos-state-channels/137983.md?page=1)
