All ID’s in the Items file link back to what is set per device in PaperUI, just cannot understand why they do not work, I can see them being called in the logs - from Alexa and from BasicUi though nothing happens, could someone hint at whats up?
2017-11-19 07:53:28.049 [.ItemChannelLinkAddedEvent] - Link ‘BedRoom_Light-rfxcom:lighting5:usb0:010302_1:command’ has been added.
2017-11-19 07:53:28.053 [.ItemChannelLinkAddedEvent] - Link ‘BedRoom_Dimmer-rfxcom:lighting5:usb0:010302_2:DimmingLevel’ has been added.
When using PaperUI
2017-11-19 08:03:51.962 [vent.ItemStateChangedEvent] - rfxcom_lighting5_9ae9b72a_command changed from ON to OFF
When using basicUI/Alexa
2017-11-19 08:04:41.281 [ome.event.ItemCommandEvent] - Item ‘BedRoom_Light’ received command ON
2017-11-19 08:04:41.303 [vent.ItemStateChangedEvent] - BedRoom_Light changed from NULL to ON
OH, hah hold on, I copied and pasted - different "
With that change:
2017-11-19 08:44:07.180 [ome.event.ItemCommandEvent] - Item ‘BedRoom_Light’ received command ON
2017-11-19 08:44:07.201 [vent.ItemStateChangedEvent] - BedRoom_Light changed from NULL to ON
Though nothing happens - I’m really perplexed, seems its just not linked and the command goes into a black hole.
Pali, happy to grant you shell access if you would like to take a look, - its odd and all looks “right”, bug maybe?
I would try to create an Switch Item without any channel linkage ( no curly brackets). After the item files is saved I’d link this item manually via PaperUI to the channel.
After that compare the log with the previous ones.
Just changed the Name to Bedroom_Light (in PaperUI) and removed the {channel… line. in the .items file - still the same unfortunately.
I think that’s what you asked me to try right?
In the Channels view you should be able to expand each channel (up and down arrows). In the expanded view to plus sign for linking an item should be visible.
Edit : I’m sorry you need to click on the blue dot of the channel not the arrows.
Linked to which item? That should be the one that triggers the channel, in other words using this item it should work. What does the log say using this item?
Telling Alexa to turn on/off works fine though i get this exception when trying to dim:
2017-11-19 10:03:50.863 [ERROR] [binding.rfxcom.handler.RFXComHandler] - Transmitting error
org.openhab.binding.rfxcom.internal.exceptions.RFXComException: Can’t convert 100 to Command
at org.openhab.binding.rfxcom.internal.messages.RFXComLighting5Message.convertFromState(RFXComLighting5Message.java:377) ~[?:?]
at org.openhab.binding.rfxcom.handler.RFXComHandler.handleCommand(RFXComHandler.java:81) ~[?:?]
at org.eclipse.smarthome.core.thing.internal.profiles.DefaultMasterProfile$1.call(DefaultMasterProfile.java:54) ~[?:?]
at org.eclipse.smarthome.core.thing.internal.profiles.DefaultMasterProfile$1.call(DefaultMasterProfile.java:1) ~[?:?]
at org.eclipse.smarthome.core.common.SafeMethodCaller.executeDirectly(SafeMethodCaller.java:218) ~[?:?]
at org.eclipse.smarthome.core.common.SafeMethodCaller.callAsynchronous(SafeMethodCaller.java:189) ~[?:?]
at org.eclipse.smarthome.core.common.SafeMethodCaller.call(SafeMethodCaller.java:83) ~[?:?]
at org.eclipse.smarthome.core.common.SafeMethodCaller.call(SafeMethodCaller.java:67) ~[?:?]
at org.eclipse.smarthome.core.thing.internal.profiles.DefaultMasterProfile.onCommand(DefaultMasterProfile.java:51) ~[?:?]
at org.eclipse.smarthome.core.thing.internal.CommunicationManager.lambda$2(CommunicationManager.java:223) ~[?:?]
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184) [?:?]
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) [?:?]
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) [?:?]
at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) [?:?]
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580) [?:?]
at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:270) [?:?]
at java.util.concurrent.ConcurrentHashMap$ValueSpliterator.forEachRemaining(ConcurrentHashMap.java:3566) [?:?]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) [?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) [?:?]
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) [?:?]
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) [?:?]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) [?:?]
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418) [?:?]
at org.eclipse.smarthome.core.thing.internal.CommunicationManager.receiveCommand(CommunicationManager.java:218) [105:org.eclipse.smarthome.core.thing:0.9.0.201710101404]
at org.eclipse.smarthome.core.thing.internal.CommunicationManager.receive(CommunicationManager.java:95) [105:org.eclipse.smarthome.core.thing:0.9.0.201710101404]
at org.eclipse.smarthome.core.internal.events.OSGiEventManager$1.call(OSGiEventManager.java:207) [98:org.eclipse.smarthome.core:0.9.0.201710101404]
at org.eclipse.smarthome.core.internal.events.OSGiEventManager$1.call(OSGiEventManager.java:1) [98:org.eclipse.smarthome.core:0.9.0.201710101404]
at org.eclipse.smarthome.core.common.SafeMethodCaller$CallableWrapper.call(SafeMethodCaller.java:181) [98:org.eclipse.smarthome.core:0.9.0.201710101404]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:?]
at java.lang.Thread.run(Thread.java:745) [?:?]
I know its trying command a dimming level via command though I do have the right dimming call there, slightly confused - again
Edited the main line:
Dimmer BedRoom_Light “Master Bed Room Light [%d %%]” (Glights) [ “Lighting” ]
Adding the [%d %%] has got rid of the error though does not dim the lights, one step forward same step back xD
I have tried without the Command line and just DimmingLevel though this has the same outcome, no dimming and does not switch on/off either.
I remember with the 1.X Binding that we had to add a .num etc. if adding another control layer, how does one do this with 2.x or is it just not necessary.
{channel=“rfxcom:lighting5:9ae9b72a:command”,
channel=“rfxcom:lighting5:9ae9b72a:DimmingLevel” <----- DimmingLevel breaks it - correct format should read dimmingLevel
Even though the logs showed the callback:
2017-11-19 10:32:57.275 [vent.ItemStateChangedEvent] - BedRoom_Light changed from 10 to 0
It went into a back hole until correct format was used (bangs head against the wall).
Hope this helps someone less stupid than I