[ERLEDIGT] FHEM lädt die config beim Start eines Gerätes (Sonos) nicht richtig

Begonnen von t1me2die, 04 April 2019, 14:40:44

Vorheriges Thema - Nächstes Thema

t1me2die

Moin liebes Forum,

ich habe ein für mich bis dato unerklärliches Phänomen.
Ich weise einem Device (in diesem Fall einem Sonos Device, list folgt unten) verschiedene Räume zu.
Folgende Räume füge ich über das Webinterface hinzu:
attr Sonos_Bad room Bla456,Bla123,Sonos
Das Device landet in den jeweiligen Räumen.
Ich mache ein "save config", wie es sich gehört.

Ein list des Devices gibt mir dieselben Info's aus:

Internals:
   DEF        RINCON_949F3E13E9C801400_MR
   FUUID      5ca49ed2-f33f-5a17-52e0-11985c8b35c3d721
   NAME       Sonos_Bad
   NOTIFYDEV  Sonos_Bad
   NR         201
   NTFY_ORDER 50-Sonos_Bad
   STATE      appeared ~ 0.0% (0:00:00 / 0:00:00)
   TYPE       SONOSPLAYER
   UDN        RINCON_949F3E13E9C801400_MR
   READINGS:
     2019-04-04 14:18:53   AlarmList       {}
     2019-04-04 14:18:53   AlarmListIDs   
     2019-04-04 14:18:53   AlarmListVersion RINCON_949F3E0249A401400:0
     2018-02-14 22:50:05   AlarmRunning    0
     2018-02-14 22:50:05   AlarmRunningID 
     2019-04-03 21:41:04   AvailablePlayer ['Sonos_Kueche']
     2018-03-21 05:31:01   Balance         30
     2018-02-14 22:50:05   Bass            0
     2018-02-14 22:50:05   CrossfadeMode   0
     2018-02-14 22:50:05   DailyIndexRefreshTime
     2018-08-20 16:56:57   DirectControlAccountID
     2018-08-20 16:56:57   DirectControlClientID
     2018-08-20 16:56:57   DirectControlIsSuspended 0
     2019-04-03 21:41:27   FavouritesVersion RINCON_949F3E0249A401400,10
     2018-02-14 22:50:05   GroupMute       0
     2019-04-01 05:30:06   GroupVolume     20
     2018-02-14 22:50:05   HeadphoneConnected 0
     2018-02-14 22:49:46   IsBonded        0
     2018-03-04 16:55:03   IsMaster        1
     2018-09-21 06:19:36   IsZoneBridge    0
     2019-04-04 14:18:41   LastActionResult ~~NotLoadedMarker~~
     2018-02-14 22:50:05   Loudness        1
     2018-03-13 06:08:07   MasterPlayer    Sonos_Bad
     2018-02-14 22:50:05   Mute            0
     2018-03-11 11:26:41   Orientation     0
     2018-02-14 22:50:05   OutputFixed     0
     2018-02-14 22:50:05   PlaylistsVersion RINCON_949F3E0249A401400,0
     2018-07-06 15:39:24   QueueHash       80994e92704578ca02843f15d709f485
     2018-07-06 15:39:24   QueueVersion    2
     2019-04-03 21:41:27   RadiosVersion   RINCON_949F3E0249A401400,10
     2018-02-14 22:50:05   Repeat          0
     2018-02-14 22:50:05   RepeatOne       0
     2019-03-29 19:07:21   SenderNr        4
     2018-02-14 22:50:05   Shuffle         0
     2018-02-14 22:49:46   SlavePlayer     []
     2018-02-14 22:49:46   SlavePlayerNotBonded []
     2018-02-14 22:50:05   SleepTimer      off
     2018-02-14 22:50:05   SleepTimerVersion
     2018-02-14 22:50:05   SubEnable       1
     2018-02-14 22:50:05   SubGain         0
     2018-02-14 22:50:05   SubPolarity     0
     2018-02-14 22:50:05   Treble          0
     2018-02-14 22:50:05   TruePlay        1
     2019-04-01 05:30:06   Volume          20
     2018-03-11 11:26:41   WifiEnabled     1
     2018-03-11 11:26:41   WirelessMode    1
     2018-03-04 16:55:03   ZoneGroupID     RINCON_949F3E13E9C801400:__
     2018-03-04 16:47:59   ZoneGroupName   Bad
     2018-03-04 16:55:03   ZoneGroupNameDetails
     2018-03-04 16:55:03   ZonePlayerUUIDsInGroup RINCON_949F3E13E9C801400
     2019-03-29 19:06:42   currentAlbum   
     2019-04-04 05:30:05   currentAlbumArtURL /fhem/sonos/cover/empty.jpg
     2019-03-29 19:06:42   currentAlbumArtist
     2019-03-29 19:06:42   currentArtist   
     2019-04-04 05:30:05   currentEnqueuedTransportHandle x-rincon-mp3radio://www.ndr.de/resources/metadaten/audio/m3u/n-joy.m3u|<DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"><item id="" parentID="" restricted="true"><dc:title></dc:title><upnp:class>object.item.audioItem.musicTrack</upnp:class><desc id="cdudn" nameSpace="urn:schemas-rinconnetworks-com:metadata-1-0/">RINCON_AssociatedZPUDN</desc></item></DIDL-Lite>
     2019-04-04 05:30:05   currentEnqueuedTransportURI x-rincon-mp3radio://www.ndr.de/resources/metadaten/audio/m3u/n-joy.m3u
     2018-02-14 22:50:05   currentFavouriteName
     2019-04-04 14:18:52   currentNormalAudio
     2019-03-29 19:06:42   currentOriginalTrackNumber
     2018-02-14 22:50:05   currentPlaylistName
     2018-02-14 22:50:05   currentRadioName
     2018-02-14 22:50:05   currentSender   
     2018-02-14 22:50:05   currentSenderCurrent
     2019-04-04 06:19:28   currentSenderInfo
     2019-03-29 19:06:42   currentSource   
     2019-03-29 19:06:42   currentStreamAudio 1
     2019-03-29 19:06:42   currentTitle   
     2019-03-20 05:30:05   currentTrack    1
     2019-03-29 19:06:42   currentTrackDuration 0:00:00
     2019-03-29 19:06:42   currentTrackDurationSec 0
     2019-04-04 06:19:28   currentTrackHandle http://http://dg-ndr-http-fra-dtag-cdn.cast.addradio.de/ndr/njoy/live/mp3/128/stream.mp3|<DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"><item id="-1" parentID="-1" restricted="true"><res protocolInfo="x-rincon-mp3radio:*:*:*">x-rincon-mp3radio://http://dg-ndr-http-fra-dtag-cdn.cast.addradio.de/ndr/njoy/live/mp3/128/stream.mp3</res><r:streamContent></r:streamContent><r:radioShowMd></r:radioShowMd><dc:title>stream.mp3</dc:title><upnp:class>object.item</upnp:class></item></DIDL-Lite>
     2019-04-04 14:18:52   currentTrackPosition 0:00:00
     2019-04-04 14:18:52   currentTrackPositionSec 0
     2019-04-04 06:19:29   currentTrackPositionSimulated 0:00:00
     2019-03-29 19:06:42   currentTrackPositionSimulatedPercent 0.0
     2019-04-04 06:19:29   currentTrackPositionSimulatedSec 0
     2019-03-20 05:30:05   currentTrackProvider Radio
     2019-03-20 05:30:05   currentTrackProviderIconQuadraticURL /fhem/sonos/cover/tunein_quadratic.jpg
     2019-03-20 05:30:05   currentTrackProviderIconRoundURL /fhem/sonos/cover/tunein_round.png
     2019-04-04 14:25:58   currentTrackURI http://http://dg-ndr-http-fra-dtag-cdn.cast.addradio.de/ndr/njoy/live/mp3/128/stream.mp3
     2018-02-14 22:49:46   fieldType       
     2019-04-04 06:19:28   infoSummarize1 
     2019-04-04 06:19:28   infoSummarize2  STOPPED
     2019-04-01 05:30:06   infoSummarize3  Lautstärke: 20 ~ Ton An ~ Balance: 30 ~ Kein Kopfhörer
     2018-02-14 22:50:05   infoSummarize4 
     2018-02-14 22:49:46   location        http://192.168.178.37:1400/xml/device_description.xml
     2018-08-19 17:51:32   nextAlbum       
     2018-08-20 16:56:57   nextAlbumArtURL /fhem/sonos/cover/empty.jpg
     2018-08-19 17:51:32   nextAlbumArtist
     2018-08-19 17:51:32   nextArtist     
     2018-02-14 22:50:05   nextOriginalTrackNumber
     2018-08-19 17:51:32   nextTitle       
     2018-08-19 17:51:32   nextTrackDuration
     2018-08-19 17:51:32   nextTrackDurationSec
     2018-08-20 16:56:57   nextTrackHandle |
     2018-08-19 17:51:32   nextTrackProvider
     2018-08-19 17:51:32   nextTrackProviderIconQuadraticURL
     2018-08-19 17:51:32   nextTrackProviderIconRoundURL
     2018-08-19 17:51:32   nextTrackURI   
     2019-03-20 05:30:05   numberOfTracks  1
     2018-02-14 22:49:46   playerType      S12
     2019-04-04 14:18:52   presence        appeared
     2018-02-14 22:50:05   roomIcon        bathroom
     2018-02-14 22:49:46   roomName        Bad
     2018-02-14 22:49:46   roomNameAlias   Bad
     2018-02-14 22:49:46   saveRoomName    Bad
     2018-02-14 22:49:46   serialNum       94-9F-3E-13-E9-C8:4
     2019-04-04 14:18:52   softwareRevision 10.1
     2019-04-03 16:08:21   softwareRevisionAvailable 10.1
     2019-04-04 14:18:52   softwareRevisionInternal 49.2-63270
     2019-04-03 16:08:21   softwareRevisionInternalAvailable 49.2-63270
     2019-04-04 14:18:53   state           appeared
     2019-04-04 06:19:28   transportState  STOPPED
     2019-04-04 05:30:20   try             0
   helper:
     simulateCurrentTrackPosition 0
Attributes:
   DbLogExclude .*
   VolumeStep 2
   alias      Bad
   event-on-change-reading state,transportState
   generateInfoSummarize1 <NormalAudio><Artist prefix="(" suffix=")"/><Title prefix=" '" suffix="'" ifempty="[Keine Musikdatei]"/><Album prefix=" vom Album '" suffix="'"/></NormalAudio> <StreamAudio><Sender suffix=":"/><SenderCurrent prefix=" '" suffix="' -"/><SenderInfo prefix=" "/></StreamAudio>
   generateInfoSummarize2 <TransportState/><InfoSummarize1 prefix=" => "/>
   generateInfoSummarize3 <Volume prefix="Lautstärke: "/><Mute instead=" ~ Kein Ton" ifempty=" ~ Ton An" emptyval="0"/> ~ Balance: <Balance ifempty="Mitte" emptyval="0"/><HeadphoneConnected instead=" ~ Kopfhörer aktiv" ifempty=" ~ Kein Kopfhörer" emptyval="0"/>
   generateVolumeSlider 1
   genericDeviceType switch
   getAlarms  1
   getTitleInfoFromMaster 1
   group      Bad
   icon       icoSONOSPLAYER_icon-S12.png
   minVolume  0
   model      Sonos_S12
   room       Bla456,Bla123,Sonos
   simulateCurrentTrackPosition 1
   sortby     1
   stateFormat presence ~ currentTrackPositionSimulatedPercent% (currentTrackPositionSimulated / currentTrackDuration)
   stateVariable Presence
   userReadings Favourites:LastActionResult.*?GetFavouritesWithCovers.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1; } }, Radios:LastActionResult.*?GetRadiosWithCovers.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1; } }, Playlists:LastActionResult.*?GetPlaylistsWithCovers.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1; } }, Queue:LastActionResult.*?GetQueueWithCovers.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1; } }, currentTrackPosition:LastActionResult.*?GetCurrentTrackPosition.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1; } }
   webCmd     Volume


Aus Interesse schaue ich in die fhem.cfg und finde die Einstellungen wieder:

define Sonos_Bad SONOSPLAYER RINCON_949F3E13E9C801400_MR
setuuid Sonos_Bad 5ca49ed2-f33f-5a17-52e0-11985c8b35c3d721
attr Sonos_Bad DbLogExclude .*
attr Sonos_Bad VolumeStep 2
attr Sonos_Bad alias Bad
attr Sonos_Bad event-on-change-reading state,transportState
attr Sonos_Bad generateInfoSummarize1 <NormalAudio><Artist prefix="(" suffix=")"/><Title prefix=" '" suffix="'" ifempty="[Keine Musikdatei]"/><Album prefix=" vom Album '" suffix="'"/></NormalAudio> <StreamAudio><Sender suffix=":"/><SenderCurrent prefix=" '" suffix="' -"/><SenderInfo prefix=" "/></StreamAudio>
attr Sonos_Bad generateInfoSummarize2 <TransportState/><InfoSummarize1 prefix=" => "/>
attr Sonos_Bad generateInfoSummarize3 <Volume prefix="Lautstärke: "/><Mute instead=" ~ Kein Ton" ifempty=" ~ Ton An" emptyval="0"/> ~ Balance: <Balance ifempty="Mitte" emptyval="0"/><HeadphoneConnected instead=" ~ Kopfhörer aktiv" ifempty=" ~ Kein Kopfhörer" emptyval="0"/>
attr Sonos_Bad generateVolumeSlider 1
attr Sonos_Bad genericDeviceType switch
attr Sonos_Bad getAlarms 1
attr Sonos_Bad getTitleInfoFromMaster 1
attr Sonos_Bad group Bad
attr Sonos_Bad icon icoSONOSPLAYER_icon-S12.png
attr Sonos_Bad minVolume 0
attr Sonos_Bad model Sonos_S12
attr Sonos_Bad room Bla456,Bla123,Sonos
attr Sonos_Bad simulateCurrentTrackPosition 1
attr Sonos_Bad sortby 1
attr Sonos_Bad stateFormat presence ~ currentTrackPositionSimulatedPercent% (currentTrackPositionSimulated / currentTrackDuration)
attr Sonos_Bad stateVariable Presence
attr Sonos_Bad userReadings Favourites:LastActionResult.*?GetFavouritesWithCovers.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1;; } }, Radios:LastActionResult.*?GetRadiosWithCovers.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1;; } }, Playlists:LastActionResult.*?GetPlaylistsWithCovers.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1;; } }, Queue:LastActionResult.*?GetQueueWithCovers.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1;; } }, currentTrackPosition:LastActionResult.*?GetCurrentTrackPosition.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1;; } }
attr Sonos_Bad webCmd Volume


Nachdem ich FHEM per SSH gestoppt und anschließend gestartet habe mit:
service fhem stop
&
service fhem start


Startet FHEM wie gewohnt neu.
Die beiden Räume "Bla123" und "Bla456" sind nun aber auf einmal verschwunden.
Hier ein List direkt nach dem Neustart

Internals:
   DEF        RINCON_949F3E13E9C801400_MR
   FUUID      5ca49ed2-f33f-5a17-52e0-11985c8b35c3d721
   NAME       Sonos_Bad
   NOTIFYDEV  Sonos_Bad
   NR         201
   NTFY_ORDER 50-Sonos_Bad
   STATE      appeared ~ 0.0% (0:00:00 / 0:00:00)
   TYPE       SONOSPLAYER
   UDN        RINCON_949F3E13E9C801400_MR
   READINGS:
     2019-04-04 14:34:06   AlarmList       {}
     2019-04-04 14:34:06   AlarmListIDs   
     2019-04-04 14:34:06   AlarmListVersion RINCON_949F3E0249A401400:0
     2018-02-14 22:50:05   AlarmRunning    0
     2018-02-14 22:50:05   AlarmRunningID 
     2019-04-03 21:41:04   AvailablePlayer ['Sonos_Kueche']
     2018-03-21 05:31:01   Balance         30
     2018-02-14 22:50:05   Bass            0
     2018-02-14 22:50:05   CrossfadeMode   0
     2018-02-14 22:50:05   DailyIndexRefreshTime
     2018-08-20 16:56:57   DirectControlAccountID
     2018-08-20 16:56:57   DirectControlClientID
     2018-08-20 16:56:57   DirectControlIsSuspended 0
     2019-04-03 21:41:27   FavouritesVersion RINCON_949F3E0249A401400,10
     2018-02-14 22:50:05   GroupMute       0
     2019-04-01 05:30:06   GroupVolume     20
     2018-02-14 22:50:05   HeadphoneConnected 0
     2018-02-14 22:49:46   IsBonded        0
     2018-03-04 16:55:03   IsMaster        1
     2018-09-21 06:19:36   IsZoneBridge    0
     2019-04-04 14:33:54   LastActionResult ~~NotLoadedMarker~~
     2018-02-14 22:50:05   Loudness        1
     2018-03-13 06:08:07   MasterPlayer    Sonos_Bad
     2018-02-14 22:50:05   Mute            0
     2018-03-11 11:26:41   Orientation     0
     2018-02-14 22:50:05   OutputFixed     0
     2018-02-14 22:50:05   PlaylistsVersion RINCON_949F3E0249A401400,0
     2018-07-06 15:39:24   QueueHash       80994e92704578ca02843f15d709f485
     2018-07-06 15:39:24   QueueVersion    2
     2019-04-03 21:41:27   RadiosVersion   RINCON_949F3E0249A401400,10
     2018-02-14 22:50:05   Repeat          0
     2018-02-14 22:50:05   RepeatOne       0
     2019-03-29 19:07:21   SenderNr        4
     2018-02-14 22:50:05   Shuffle         0
     2018-02-14 22:49:46   SlavePlayer     []
     2018-02-14 22:49:46   SlavePlayerNotBonded []
     2018-02-14 22:50:05   SleepTimer      off
     2018-02-14 22:50:05   SleepTimerVersion
     2018-02-14 22:50:05   SubEnable       1
     2018-02-14 22:50:05   SubGain         0
     2018-02-14 22:50:05   SubPolarity     0
     2018-02-14 22:50:05   Treble          0
     2018-02-14 22:50:05   TruePlay        1
     2019-04-01 05:30:06   Volume          20
     2018-03-11 11:26:41   WifiEnabled     1
     2018-03-11 11:26:41   WirelessMode    1
     2018-03-04 16:55:03   ZoneGroupID     RINCON_949F3E13E9C801400:__
     2018-03-04 16:47:59   ZoneGroupName   Bad
     2018-03-04 16:55:03   ZoneGroupNameDetails
     2018-03-04 16:55:03   ZonePlayerUUIDsInGroup RINCON_949F3E13E9C801400
     2019-03-29 19:06:42   currentAlbum   
     2019-04-04 05:30:05   currentAlbumArtURL /fhem/sonos/cover/empty.jpg
     2019-03-29 19:06:42   currentAlbumArtist
     2019-03-29 19:06:42   currentArtist   
     2019-04-04 05:30:05   currentEnqueuedTransportHandle x-rincon-mp3radio://www.ndr.de/resources/metadaten/audio/m3u/n-joy.m3u|<DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"><item id="" parentID="" restricted="true"><dc:title></dc:title><upnp:class>object.item.audioItem.musicTrack</upnp:class><desc id="cdudn" nameSpace="urn:schemas-rinconnetworks-com:metadata-1-0/">RINCON_AssociatedZPUDN</desc></item></DIDL-Lite>
     2019-04-04 05:30:05   currentEnqueuedTransportURI x-rincon-mp3radio://www.ndr.de/resources/metadaten/audio/m3u/n-joy.m3u
     2018-02-14 22:50:05   currentFavouriteName
     2019-04-04 14:18:52   currentNormalAudio
     2019-03-29 19:06:42   currentOriginalTrackNumber
     2018-02-14 22:50:05   currentPlaylistName
     2018-02-14 22:50:05   currentRadioName
     2018-02-14 22:50:05   currentSender   
     2018-02-14 22:50:05   currentSenderCurrent
     2019-04-04 06:19:28   currentSenderInfo
     2019-03-29 19:06:42   currentSource   
     2019-03-29 19:06:42   currentStreamAudio 1
     2019-03-29 19:06:42   currentTitle   
     2019-03-20 05:30:05   currentTrack    1
     2019-03-29 19:06:42   currentTrackDuration 0:00:00
     2019-03-29 19:06:42   currentTrackDurationSec 0
     2019-04-04 06:19:28   currentTrackHandle http://http://dg-ndr-http-fra-dtag-cdn.cast.addradio.de/ndr/njoy/live/mp3/128/stream.mp3|<DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"><item id="-1" parentID="-1" restricted="true"><res protocolInfo="x-rincon-mp3radio:*:*:*">x-rincon-mp3radio://http://dg-ndr-http-fra-dtag-cdn.cast.addradio.de/ndr/njoy/live/mp3/128/stream.mp3</res><r:streamContent></r:streamContent><r:radioShowMd></r:radioShowMd><dc:title>stream.mp3</dc:title><upnp:class>object.item</upnp:class></item></DIDL-Lite>
     2019-04-04 14:34:06   currentTrackPosition 0:00:00
     2019-04-04 14:34:06   currentTrackPositionSec 0
     2019-04-04 06:19:29   currentTrackPositionSimulated 0:00:00
     2019-03-29 19:06:42   currentTrackPositionSimulatedPercent 0.0
     2019-04-04 06:19:29   currentTrackPositionSimulatedSec 0
     2019-03-20 05:30:05   currentTrackProvider Radio
     2019-03-20 05:30:05   currentTrackProviderIconQuadraticURL /fhem/sonos/cover/tunein_quadratic.jpg
     2019-03-20 05:30:05   currentTrackProviderIconRoundURL /fhem/sonos/cover/tunein_round.png
     2019-04-04 14:34:06   currentTrackURI http://http://dg-ndr-http-fra-dtag-cdn.cast.addradio.de/ndr/njoy/live/mp3/128/stream.mp3
     2018-02-14 22:49:46   fieldType       
     2019-04-04 06:19:28   infoSummarize1 
     2019-04-04 06:19:28   infoSummarize2  STOPPED
     2019-04-01 05:30:06   infoSummarize3  Lautstärke: 20 ~ Ton An ~ Balance: 30 ~ Kein Kopfhörer
     2018-02-14 22:50:05   infoSummarize4 
     2018-02-14 22:49:46   location        http://192.168.178.37:1400/xml/device_description.xml
     2018-08-19 17:51:32   nextAlbum       
     2018-08-20 16:56:57   nextAlbumArtURL /fhem/sonos/cover/empty.jpg
     2018-08-19 17:51:32   nextAlbumArtist
     2018-08-19 17:51:32   nextArtist     
     2018-02-14 22:50:05   nextOriginalTrackNumber
     2018-08-19 17:51:32   nextTitle       
     2018-08-19 17:51:32   nextTrackDuration
     2018-08-19 17:51:32   nextTrackDurationSec
     2018-08-20 16:56:57   nextTrackHandle |
     2018-08-19 17:51:32   nextTrackProvider
     2018-08-19 17:51:32   nextTrackProviderIconQuadraticURL
     2018-08-19 17:51:32   nextTrackProviderIconRoundURL
     2018-08-19 17:51:32   nextTrackURI   
     2019-03-20 05:30:05   numberOfTracks  1
     2018-02-14 22:49:46   playerType      S12
     2019-04-04 14:34:06   presence        appeared
     2018-02-14 22:50:05   roomIcon        bathroom
     2018-02-14 22:49:46   roomName        Bad
     2018-02-14 22:49:46   roomNameAlias   Bad
     2018-02-14 22:49:46   saveRoomName    Bad
     2018-02-14 22:49:46   serialNum       94-9F-3E-13-E9-C8:4
     2019-04-04 14:18:52   softwareRevision 10.1
     2019-04-03 16:08:21   softwareRevisionAvailable 10.1
     2019-04-04 14:18:52   softwareRevisionInternal 49.2-63270
     2019-04-03 16:08:21   softwareRevisionInternalAvailable 49.2-63270
     2019-04-04 14:34:06   state           appeared
     2019-04-04 06:19:28   transportState  STOPPED
     2019-04-04 05:30:20   try             0
   helper:
     simulateCurrentTrackPosition 0
Attributes:
   DbLogExclude .*
   VolumeStep 2
   alias      Bad
   event-on-change-reading state,transportState
   generateInfoSummarize1 <NormalAudio><Artist prefix="(" suffix=")"/><Title prefix=" '" suffix="'" ifempty="[Keine Musikdatei]"/><Album prefix=" vom Album '" suffix="'"/></NormalAudio> <StreamAudio><Sender suffix=":"/><SenderCurrent prefix=" '" suffix="' -"/><SenderInfo prefix=" "/></StreamAudio>
   generateInfoSummarize2 <TransportState/><InfoSummarize1 prefix=" => "/>
   generateInfoSummarize3 <Volume prefix="Lautstärke: "/><Mute instead=" ~ Kein Ton" ifempty=" ~ Ton An" emptyval="0"/> ~ Balance: <Balance ifempty="Mitte" emptyval="0"/><HeadphoneConnected instead=" ~ Kopfhörer aktiv" ifempty=" ~ Kein Kopfhörer" emptyval="0"/>
   generateVolumeSlider 1
   genericDeviceType switch
   getAlarms  1
   getTitleInfoFromMaster 1
   group      Bad
   icon       icoSONOSPLAYER_icon-S12.png
   minVolume  0
   model      Sonos_S12
   room       Sonos
   simulateCurrentTrackPosition 1
   sortby     1
   stateFormat presence ~ currentTrackPositionSimulatedPercent% (currentTrackPositionSimulated / currentTrackDuration)
   stateVariable Presence
   userReadings Favourites:LastActionResult.*?GetFavouritesWithCovers.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1; } }, Radios:LastActionResult.*?GetRadiosWithCovers.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1; } }, Playlists:LastActionResult.*?GetPlaylistsWithCovers.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1; } }, Queue:LastActionResult.*?GetQueueWithCovers.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1; } }, currentTrackPosition:LastActionResult.*?GetCurrentTrackPosition.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1; } }
   webCmd     Volume


In der fhem.cfg in /opt/fhem schaut es weiterhin wie folgt aus:

define Sonos_Bad SONOSPLAYER RINCON_949F3E13E9C801400_MR
setuuid Sonos_Bad 5ca49ed2-f33f-5a17-52e0-11985c8b35c3d721
attr Sonos_Bad DbLogExclude .*
attr Sonos_Bad VolumeStep 2
attr Sonos_Bad alias Bad
attr Sonos_Bad event-on-change-reading state,transportState
attr Sonos_Bad generateInfoSummarize1 <NormalAudio><Artist prefix="(" suffix=")"/><Title prefix=" '" suffix="'" ifempty="[Keine Musikdatei]"/><Album prefix=" vom Album '" suffix="'"/></NormalAudio> <StreamAudio><Sender suffix=":"/><SenderCurrent prefix=" '" suffix="' -"/><SenderInfo prefix=" "/></StreamAudio>
attr Sonos_Bad generateInfoSummarize2 <TransportState/><InfoSummarize1 prefix=" => "/>
attr Sonos_Bad generateInfoSummarize3 <Volume prefix="Lautstärke: "/><Mute instead=" ~ Kein Ton" ifempty=" ~ Ton An" emptyval="0"/> ~ Balance: <Balance ifempty="Mitte" emptyval="0"/><HeadphoneConnected instead=" ~ Kopfhörer aktiv" ifempty=" ~ Kein Kopfhörer" emptyval="0"/>
attr Sonos_Bad generateVolumeSlider 1
attr Sonos_Bad genericDeviceType switch
attr Sonos_Bad getAlarms 1
attr Sonos_Bad getTitleInfoFromMaster 1
attr Sonos_Bad group Bad
attr Sonos_Bad icon icoSONOSPLAYER_icon-S12.png
attr Sonos_Bad minVolume 0
attr Sonos_Bad model Sonos_S12
attr Sonos_Bad room Bla456,Bla123,Sonos
attr Sonos_Bad simulateCurrentTrackPosition 1
attr Sonos_Bad sortby 1
attr Sonos_Bad stateFormat presence ~ currentTrackPositionSimulatedPercent% (currentTrackPositionSimulated / currentTrackDuration)
attr Sonos_Bad stateVariable Presence
attr Sonos_Bad userReadings Favourites:LastActionResult.*?GetFavouritesWithCovers.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1;; } }, Radios:LastActionResult.*?GetRadiosWithCovers.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1;; } }, Playlists:LastActionResult.*?GetPlaylistsWithCovers.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1;; } }, Queue:LastActionResult.*?GetQueueWithCovers.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1;; } }, currentTrackPosition:LastActionResult.*?GetCurrentTrackPosition.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1;; } }
attr Sonos_Bad webCmd Volume


Nun muss ich herausbekommen, warum nur bei diesem Gerät die beiden Räume nach einem Neustart von FHEM verschwinden?!

Gruß
Mathze

RaspiLED

Hi,
Gibt es Hinweise im log, dass die failsafe config geladen wurde? Sind es die zuletzt geänderten Devices die nicht stimmen oder alte? Gibt es genug Speicherplatz?
Gruß Arnd


Gesendet von iPhone mit Tapatalk
Raspberry Pi mit FHEM, CUL, Signalduino, MySensors, HomeBridge, Presence, WifiLight2, Bravia, ...

t1me2die

Zitat von: RaspiLED am 04 April 2019, 16:27:16
Hi,
Gibt es Hinweise im log, dass die failsafe config geladen wurde? Sind es die zuletzt geänderten Devices die nicht stimmen oder alte? Gibt es genug Speicherplatz?
Gruß Arnd


Gesendet von iPhone mit Tapatalk

Übeltäter augenscheinlich gefunden!
Mein Sonos Lautsprecher aus der Küche war Schuld!
Er war dem Raum "Küche" innerhalb der Sonos App zugeordnet, das Sonos Modul machte aus dem Device dann "Sonos_Kche", war augenscheinlich ein Problem bei den Umlauten.
Ich habe nun den Raum innerhalb der Sonos App geändert und habe das Sonos Device neu angelegt.
Die Sonos Geräte wurden nun korrekt angelegt, auch der Name passte.
Seitdem habe ich mehrere Neustarts / Shutdowns vollzogen, ohne Änderungen an den Räumen zu haben.

Nein, gab keine Hinweise im Log.
Speicherplatz ist auch reichlich vorhanden.

Gruß
Mathze