ich bin zurzeit dabei meinen Receiver etwas ausführlicher einzubinden.
Leider funktionieren nicht alle Einstellungen so wie ich mir das wünsche.
So kann ich z.B. die Lautstärke weder in dB verstellen noch anzeigen lassen, wie es eigentlich gehen sollte:
Binding-Info:
item:zone_channels#volumeDB Number Sets the receivers volume in dB.
Code: Alles auswählen
Number Yamaha_Volume_dB "Lautstärke in dB [%d dB]" <soundvolume> (Yamaha) { channel="yamahareceiver:zone:Receiver_Wohnzimmer:Main_Zone:zone_channels#volumeDB"}
Dimmer Yamaha_Volume_dB_Regler "Lautstärke in dB [%d dB]" <soundvolume> (Yamaha) { channel="yamahareceiver:zone:Receiver_Wohnzimmer:Main_Zone:zone_channels#volumeDB"}
Code: Alles auswählen
Slider item=Yamaha_Volume_dB_Regler
Text item=Yamaha_Volume_dB
Außerdem bekomme ich im LOG einen Fehler angezeigt, weil negative Zahlen wohl nicht akzeptiert werden.
Die Lautstärke hat allerdings eine Range von -80dB bis +12dB !2019-12-05 14:24:33.940 [WARN ] [mmon.WrappedScheduledExecutorService] - Scheduled runnable ended with an exception:
java.lang.IllegalArgumentException: Value must be between 0 and 100
at org.eclipse.smarthome.core.library.types.PercentType.validateValue(PercentType.java:58) ~[?:?]
at org.eclipse.smarthome.core.library.types.PercentType.<init>(PercentType.java:53) ~[?:?]
at org.eclipse.smarthome.core.library.types.DecimalType.as(DecimalType.java:160) ~[?:?]
at org.eclipse.smarthome.core.internal.items.ItemStateConverterImpl.convertToAcceptedState(ItemStateConverterImpl.java:58) ~[?:?]
at org.eclipse.smarthome.core.thing.internal.profiles.ProfileCallbackImpl.sendUpdate(ProfileCallbackImpl.java:135) ~[?:?]
at org.eclipse.smarthome.core.thing.internal.profiles.SystemDefaultProfile.onStateUpdateFromHandler(SystemDefaultProfile.java:54) ~[?:?]
at org.eclipse.smarthome.core.thing.internal.CommunicationManager.lambda$9(CommunicationManager.java:477) ~[?:?]
at org.eclipse.smarthome.core.thing.internal.CommunicationManager.lambda$11(CommunicationManager.java:497) ~[?:?]
at java.lang.Iterable.forEach(Iterable.java:75) ~[?:?]
at org.eclipse.smarthome.core.thing.internal.CommunicationManager.handleCallFromHandler(CommunicationManager.java:493) ~[?:?]
at org.eclipse.smarthome.core.thing.internal.CommunicationManager.stateUpdated(CommunicationManager.java:475) ~[?:?]
at org.eclipse.smarthome.core.thing.internal.ThingManagerImpl$1.stateUpdated(ThingManagerImpl.java:167) ~[?:?]
at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.updateState(BaseThingHandler.java:287) ~[?:?]
at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.updateState(BaseThingHandler.java:306) ~[?:?]
at org.openhab.binding.yamahareceiver.internal.handler.YamahaZoneThingHandler.zoneStateChanged(YamahaZoneThingHandler.java:504) ~[?:?]
at org.openhab.binding.yamahareceiver.internal.protocol.xml.ZoneControlXML.update(ZoneControlXML.java:301) ~[?:?]
at org.openhab.binding.yamahareceiver.internal.handler.YamahaZoneThingHandler.lambda$2(YamahaZoneThingHandler.java:687) ~[?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) ~[?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
at java.lang.Thread.run(Thread.java:748) [?:?]
Stelle ich die dB auf 5, funktioniert die Anzeige, dafür fliegen mir aber die Ohren weg!
Kennt einer das Phänomen und hat dazu einen Hinweis? Ich verzweifel hier grade ...
Vielen Dank.