That is what Paper UI, Confguration, items looks like.
And everything beginning with zwave is something from your zwave network, most of which you are not interested in monitoring or controlling.
ok. System is back up.
Hmmm…?
System came back pretty quick, but could be due to only a couple of items in the system.
Is this how it show look - from the above screen shot? More to follow…
Dave
Good Day,
Well, I reinstalled OpenHab in total. I redownloaded, used Etcher to reinstall on the SD card.
Then I installed / configured this new install of OpenHab.
I installed the Network Binding. I installed the Z-Wave USB Stick Binding. I did not use Simple Linking.
I “Discovered” the one wall out via the Z-Wave Binding. I also “Discovered” my cell phone via the Network Binding.
I linked the cell phone, Z-Wave controller and wall outlet via the channels listed for each.
All three show as online.
I can, via the basic “My First Sitemap”, turn off the cell phone and the wall plug goes off. Turn on the cell phone and the wall plug comes on.
However, when I turnoff my actual cell phone, the Paper UI reflects the phone going off…but not My First Sitemap.
So my troubleshooting tells me there is a problem(s) with the link between the cell phone actually going off (network binding?) and the rules / items files.
The Openhab log viewer shows no errors and seems to reflect all my actions…except the wall plug does not react to the actual cell phone going on and off.
I am confused. What is miss-configured?
default.items file contents:
Switch Presence_Mobile_Dave “Dave’s Mobile” { channel=“network:device:192.168.0.17:online” }
Switch Wallplug_OF_WindowWall “Office Window Wall Plug” <poweroutlet_us> { channel=“zwave:device:a3b690b0:node7:switch_binary” }
default.rules file contents:
#rule “Wallplug_OF_WindowWall ON”
#when
Item Presence_Mobile_Dave changed from OFF to ON
#then
Wallplug_OF_WindowWall.sendCommand(ON)
#end
#rule “Wallplug_OF_WindowWall OFF”
#when
Item Presence_Mobile_Dave changed from ON to OFF
#then
Wallplug_OF_WindowWall.sendCommand(OFF)
#end
Thoughts on what might be the error?
Dave
We cannot easily troubleshoot your configuration. Please use code fences so the forum does not mess up the important spacing.
I don’t really see the error in your rules but it could be coded a bit different.
rule "Wallplug ON OFF"
when
Item Presence_Mobile_Dave changed
then
if(Presence_Mobile_Dave.state == ON){
Wallplug_OF_WindowWall.sendCommand(ON)
}
else {
Wallplug_OF_WindowWall.sendCommand(OFF)
}
end
You can try this rule and see if that makes a difference as Rules DSL can sometimes be finicky.
Also in the logs when the Wallplug changes ON/OFF does it say ON, OFF or use a number e.g. 0 for ON 1 for OFF? I ask b/c the channel switch is binary and may need to use a number in the rule instead of ON/OFF.
One liner…
Wallplug_OF_WindowWall.sendCommand(Presence_Mobile_Dave.state.toString)
… but you could also use a profile and eliminate the rule altogether!
Good point but trying small steps first, with hopes of learning more about rules and items.
BTW @TripleD the link for profiles can be found here:
Many, many thanks ! Now I understand how to post code…!! My apologies. Thanks!
In answer to your question about does it say “ON OFF”. yes it does. (Note: In the reinstall - I altered the name of the wall plug from OF to OFF. I am making the update in your suggestions).
Following is from the events log:
2020-02-05 17:35:51.969 [vent.ItemStateChangedEvent] - zwave_device_54528bc7_node7_switch_binary changed from NULL to OFF
2020-02-05 17:36:03.308 [ome.event.ItemCommandEvent] - Item ‘Wallplug_OFF_Window’ received command ON
2020-02-05 17:36:03.331 [nt.ItemStatePredictedEvent] - Wallplug_OFF_Window predicted to become ON
2020-02-05 17:36:03.366 [vent.ItemStateChangedEvent] - Wallplug_OFF_Window changed from OFF to ON
2020-02-05 17:36:03.377 [vent.ItemStateChangedEvent] - zwave_serial_zstick_54528bc7_serial_ack changed from 100 to 101
2020-02-05 17:36:03.381 [vent.ItemStateChangedEvent] - zwave_serial_zstick_54528bc7_serial_sof changed from 207 to 208
2020-02-05 17:36:03.389 [vent.ItemStateChangedEvent] - zwave_serial_zstick_54528bc7_serial_sof changed from 208 to 209
2020-02-05 17:36:04.874 [vent.ItemStateChangedEvent] - zwave_serial_zstick_54528bc7_serial_ack changed from 101 to 102
2020-02-05 17:36:04.881 [vent.ItemStateChangedEvent] - zwave_serial_zstick_54528bc7_serial_sof changed from 209 to 210
2020-02-05 17:36:04.894 [vent.ItemStateChangedEvent] - zwave_serial_zstick_54528bc7_serial_sof changed from 210 to 211
2020-02-05 17:36:04.906 [vent.ItemStateChangedEvent] - zwave_serial_zstick_54528bc7_serial_sof changed from 211 to 212
2020-02-05 17:36:04.919 [vent.ItemStateChangedEvent] - zwave_device_54528bc7_node7_switch_binary changed from OFF to ONPreformatted text
BTW: Rules DSL? For this novice, what is DSL?
More to follow - I am testing.
Use code fences for logs too
Apologize, long post follows.
Hmmm. When I use the new rule code (Thank you H102), I get from the event log:
2020-02-05 17:56:51.729 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'default.rules'
==> /var/log/openhab2/events.log <==
2020-02-05 17:57:08.240 [vent.ItemStateChangedEvent] - network_pingdevice_192_168_0_17_latency changed from 104.0 ms to 604.0 ms
2020-02-05 17:57:09.036 [vent.ItemStateChangedEvent] - network_pingdevice_192_168_0_17_lastseen changed from 2020-02-05T17:56:07.608+0000 to 2020-02-05T17:57:09.018+0000
2020-02-05 17:58:14.138 [vent.ItemStateChangedEvent] - network_pingdevice_192_168_0_17_online changed from ON to OFF
2020-02-05 17:58:14.142 [vent.ItemStateChangedEvent] - network_pingdevice_192_168_0_17_latency changed from 604.0 ms to UNDEF
2020-02-05 17:59:14.168 [vent.ItemStateChangedEvent] - network_pingdevice_192_168_0_17_online changed from OFF to ON
2020-02-05 17:59:14.176 [vent.ItemStateChangedEvent] - network_pingdevice_192_168_0_17_latency changed from UNDEF to 25.0 ms
2020-02-05 17:59:14.486 [vent.ItemStateChangedEvent] - network_pingdevice_192_168_0_17_lastseen changed from 2020-02-05T17:57:09.018+0000 to 2020-02-05T17:59:14.468+0000
2020-02-05 18:00:14.578 [vent.ItemStateChangedEvent] - network_pingdevice_192_168_0_17_latency changed from 25.0 ms to 84.0 ms
In observing the Paper UI: the Online indicator for Dave’s Mobile moves from on to off, when i turnoff the cell phone within 15-30 seconds and when I turn on the cell phone, the sam indicator moves from off to on within 15-40 seconds.
In also observing the “My First Sitemap”, there is change in either the Daves Mobile or Office Window Plug indicators.
Also - the actual wall plug indicator does not change.
If, on the My First Sitemap, I manual move the Daves Mobile switch, the Office Window Plug indicator automatically moves to off and the actual wall plug turns off.
Event log follows for this manual effort Turning on to off:
2020-02-05 18:20:37.756 [vent.ItemStateChangedEvent] - network_pingdevice_192_168_0_17_lastseen changed from 2020-02-05T18:19:37.328+0000 to 2020-02-05T18:20:37.738+0000
2020-02-05 18:21:37.889 [vent.ItemStateChangedEvent] - network_pingdevice_192_168_0_17_latency changed from 88.0 ms to 125.0 ms
2020-02-05 18:21:38.194 [vent.ItemStateChangedEvent] - network_pingdevice_192_168_0_17_lastseen changed from 2020-02-05T18:20:37.738+0000 to 2020-02-05T18:21:38.178+0000
2020-02-05 18:21:51.884 [ome.event.ItemCommandEvent] - Item 'Presence_Mobile_Dave' received command OFF
2020-02-05 18:21:51.893 [vent.ItemStateChangedEvent] - Presence_Mobile_Dave changed from ON to OFF
2020-02-05 18:21:52.092 [ome.event.ItemCommandEvent] - Item 'Wallplug_OFF_Window' received command OFF
2020-02-05 18:21:52.101 [nt.ItemStatePredictedEvent] - Wallplug_OFF_Window predicted to become OFF
2020-02-05 18:21:52.118 [vent.ItemStateChangedEvent] - Wallplug_OFF_Window changed from ON to OFF
2020-02-05 18:21:52.120 [vent.ItemStateChangedEvent] - zwave_serial_zstick_54528bc7_serial_ack changed from 104 to 105
2020-02-05 18:21:52.126 [vent.ItemStateChangedEvent] - zwave_serial_zstick_54528bc7_serial_sof changed from 217 to 218
2020-02-05 18:21:52.140 [vent.ItemStateChangedEvent] - zwave_serial_zstick_54528bc7_serial_sof changed from 218 to 219
Event log follows for this manual effort Turning off to on:
2020-02-05 18:21:53.655 [vent.ItemStateChangedEvent] - zwave_serial_zstick_54528bc7_serial_sof changed from 220 to 221
2020-02-05 18:21:53.666 [vent.ItemStateChangedEvent] - zwave_serial_zstick_54528bc7_serial_sof changed from 221 to 222
2020-02-05 18:21:53.687 [vent.ItemStateChangedEvent] - zwave_device_54528bc7_node7_switch_binary changed from ON to OFF
2020-02-05 18:22:34.143 [ome.event.ItemCommandEvent] - Item 'Presence_Mobile_Dave' received command ON
2020-02-05 18:22:34.149 [vent.ItemStateChangedEvent] - Presence_Mobile_Dave changed from OFF to ON
2020-02-05 18:22:34.162 [ome.event.ItemCommandEvent] - Item 'Wallplug_OFF_Window' received command ON
2020-02-05 18:22:34.180 [nt.ItemStatePredictedEvent] - Wallplug_OFF_Window predicted to become ON
2020-02-05 18:22:34.201 [vent.ItemStateChangedEvent] - Wallplug_OFF_Window changed from OFF to ON
2020-02-05 18:22:34.213 [vent.ItemStateChangedEvent] - zwave_serial_zstick_54528bc7_serial_ack changed from 106 to 107
2020-02-05 18:22:34.221 [vent.ItemStateChangedEvent] - zwave_serial_zstick_54528bc7_serial_sof changed from 222 to 223
2020-02-05 18:22:34.233 [vent.ItemStateChangedEvent] - zwave_serial_zstick_54528bc7_serial_sof changed from 223 to 224
2020-02-05 18:22:35.717 [vent.ItemStateChangedEvent] - zwave_serial_zstick_54528bc7_serial_ack changed from 107 to 108
2020-02-05 18:22:35.725 [vent.ItemStateChangedEvent] - zwave_serial_zstick_54528bc7_serial_sof changed from 224 to 225
2020-02-05 18:22:35.739 [vent.ItemStateChangedEvent] - zwave_serial_zstick_54528bc7_serial_sof changed from 225 to 226
2020-02-05 18:22:35.750 [vent.ItemStateChangedEvent] - zwave_serial_zstick_54528bc7_serial_sof changed from 226 to 227
2020-02-05 18:22:35.763 [vent.ItemStateChangedEvent] - zwave_device_54528bc7_node7_switch_binary changed from OFF to ON
2020-02-05 18:22:39.046 [vent.ItemStateChangedEvent] - network_pingdevice_192_168_0_17_latency changed from 125.0 ms to 844.0 ms
2020-02-05 18:22:39.635 [vent.ItemStateChangedEvent] - network_pingdevice_192_168_0_17_lastseen changed from 2020-02-05T18:21:38.178+0000 to 2020-02-05T18:22:39.618+0000
2020-02-05 18:23:40.021 [vent.ItemStateChangedEvent] - network_pingdevice_192_168_0_17_latency changed from 844.0 ms to 331.0 ms
I appreciate the profile suggestion…and I will no doubt get there…but for now, I can not seem to get a simple rule to work. Profiles will be my next adventure. All help is appreciated !
Ok…now that I am a bit more familiar with the event log data, I am going to put the old (my first rule attempt code) back and rerun the process (for comparison) and post the event log data.
Here we go.
For clarity:
default.items file code is
Switch Presence_Mobile_Dave "Dave's Mobile" <network> { channel="network:device:192.168.0.17:online" }
Switch Wallplug_OFF_WindowWall "Office Window Wall Plug" <poweroutlet_us> { channel="zwave:device:a3b690b0:node7:switch_binary" }
default.rules file code is:
rule "Wallplug_OFF_Window ON"
when
Item Presence_Mobile_Dave changed from OFF to ON
then
Wallplug_OFF_Window.sendCommand(ON)
end
rule "Wallplug_OFF_Window OFF"
when
Item Presence_Mobile_Dave changed from ON to OFF
then
Wallplug_OFF_Window.sendCommand(OFF)
end
ok. Repeating the same process as above: turn off the cell phone, then turn it back on. Log shows no errors or warnings from Item or Rule file edits. Event Log data is:
Turned Cellphone off…then on:
2020-02-05 19:23:14.726 [vent.ItemStateChangedEvent] - network_pingdevice_192_168_0_17_lastseen changed from 2020-02-05T19:22:14.278+0000 to 2020-02-05T19:23:14.717+0000
2020-02-05 19:24:19.832 [vent.ItemStateChangedEvent] - network_pingdevice_192_168_0_17_online changed from ON to OFF
2020-02-05 19:24:19.835 [vent.ItemStateChangedEvent] - network_pingdevice_192_168_0_17_latency changed from 88.0 ms to UNDEF
2020-02-05 19:27:30.085 [vent.ItemStateChangedEvent] - network_pingdevice_192_168_0_17_online changed from OFF to ON
2020-02-05 19:27:30.093 [vent.ItemStateChangedEvent] - network_pingdevice_192_168_0_17_latency changed from UNDEF to 40.0 ms
2020-02-05 19:27:30.525 [vent.ItemStateChangedEvent] - network_pingdevice_192_168_0_17_lastseen changed from 2020-02-05T19:23:14.717+0000 to 2020-02-05T19:27:30.508+0000
so - do I understand the above - the cell went off…I waited a bit…then turned the cell back on…and the only change was on the Paper UI, where the Dave’s Mobile went from on to off and then back to on…in as reflected in the log.
So - now, the rules and items files seem to be having no effect.
I am confused…why is this happening?
I replaced the default.rules file with your suggestion H102. Turned phone off…and then on. Log file shows:
2020-02-05 19:41:47.586 [vent.ItemStateChangedEvent] - network_pingdevice_192_168_0_17_latency changed from 81.0 ms to 193.0 ms
2020-02-05 19:41:47.795 [vent.ItemStateChangedEvent] - network_pingdevice_192_168_0_17_lastseen changed from 2020-02-05T19:40:47.368+0000 to 2020-02-05T19:41:47.778+0000
2020-02-05 19:42:52.897 [vent.ItemStateChangedEvent] - network_pingdevice_192_168_0_17_online changed from ON to OFF
2020-02-05 19:42:52.899 [vent.ItemStateChangedEvent] - network_pingdevice_192_168_0_17_latency changed from 193.0 ms to UNDEF
2020-02-05 19:44:58.147 [vent.ItemStateChangedEvent] - network_pingdevice_192_168_0_17_online changed from OFF to ON
2020-02-05 19:44:58.159 [vent.ItemStateChangedEvent] - network_pingdevice_192_168_0_17_latency changed from UNDEF to 141.0 ms
2020-02-05 19:44:58.405 [vent.ItemStateChangedEvent] - network_pingdevice_192_168_0_17_lastseen changed from 2020-02-05T19:41:47.778+0000 to 2020-02-05T19:44:58.388+0000
Same results.
hmm. Something is wrong. This is not how the system behaved yesterday. The log from yesterday show:
2020-02-05 18:21:37.889 [vent.ItemStateChangedEvent] - network_pingdevice_192_168_0_17_latency changed from 88.0 ms to 125.0 ms
2020-02-05 18:21:38.194 [vent.ItemStateChangedEvent] - network_pingdevice_192_168_0_17_lastseen changed from 2020-02-05T18:20:37.738+0000 to 2020-02-05T18:21:38.178+0000
2020-02-05 18:21:51.884 [ome.event.ItemCommandEvent] - Item 'Presence_Mobile_Dave' received command OFF
2020-02-05 18:21:51.893 [vent.ItemStateChangedEvent] - Presence_Mobile_Dave changed from ON to OFF
2020-02-05 18:21:52.092 [ome.event.ItemCommandEvent] - Item 'Wallplug_OFF_Window' received command OFF
2020-02-05 18:21:52.101 [nt.ItemStatePredictedEvent] - Wallplug_OFF_Window predicted to become OFF
2020-02-05 18:21:52.118 [vent.ItemStateChangedEvent] - Wallplug_OFF_Window changed from ON to OFF
2020-02-05 18:21:52.120 [vent.ItemStateChangedEvent] - zwave_serial_zstick_54528bc7_serial_ack changed from 104 to 105
2020-02-05 18:21:52.126 [vent.ItemStateChangedEvent] - zwave_serial_zstick_54528bc7_serial_sof changed from 217 to 218
2020-02-05 18:21:52.140 [vent.ItemStateChangedEvent] - zwave_serial_zstick_54528bc7_serial_sof changed from 218 to 219
2020-02-05 18:21:53.632 [vent.ItemStateChangedEvent] - zwave_serial_zstick_54528bc7_serial_ack changed from 105 to 106
2020-02-05 18:21:53.640 [vent.ItemStateChangedEvent] - zwave_serial_zstick_54528bc7_serial_sof changed from 219 to 220
2020-02-05 18:21:53.655 [vent.ItemStateChangedEvent] - zwave_serial_zstick_54528bc7_serial_sof changed from 220 to 221
2020-02-05 18:21:53.666 [vent.ItemStateChangedEvent] - zwave_serial_zstick_54528bc7_serial_sof changed from 221 to 222
2020-02-05 18:21:53.687 [vent.ItemStateChangedEvent] - zwave_device_54528bc7_node7_switch_binary changed from ON to OFF
2020-02-05 18:22:34.143 [ome.event.ItemCommandEvent] - Item 'Presence_Mobile_Dave' received command ON
2020-02-05 18:22:34.149 [vent.ItemStateChangedEvent] - Presence_Mobile_Dave changed from OFF to ON
2020-02-05 18:22:34.162 [ome.event.ItemCommandEvent] - Item 'Wallplug_OFF_Window' received command ON
2020-02-05 18:22:34.180 [nt.ItemStatePredictedEvent] - Wallplug_OFF_Window predicted to become ON
2020-02-05 18:22:34.201 [vent.ItemStateChangedEvent] - Wallplug_OFF_Window changed from OFF to ON
2020-02-05 18:22:34.213 [vent.ItemStateChangedEvent] - zwave_serial_zstick_54528bc7_serial_ack changed from 106 to 107
I verified the file names and contents.
Maybe I need to reboot the system?
Any advice would help.
Timely advice ! Thanks 5iver !
In my long post above, this line:
In also observing the “My First Sitemap”, there is change in either the Daves Mobile or Office Window Plug indicators.
should read:
In also observing the “My First Sitemap”, there is NO
change in either the Daves Mobile or Office Window Plug indicators.
I have rebooted the RPi4 twice…and see the same errors in the log. Perhaps the attached file will help…if the system would let me upload a file…
well, here are the lines…
2020-02-05 13:54:09.060 [vent.ItemStateChangedEvent] - network_pingdevice_192_168_0_17_lastseen changed from 2020-02-05T13:53:54.384-0800 to 2020-02-05T13:54:09.039-0800
2020-02-05 13:54:25.490 [vent.ItemStateChangedEvent] - network_pingdevice_192_168_0_17_latency changed from 333.0 ms to 1060.0 ms
2020-02-05 13:54:25.850 [vent.ItemStateChangedEvent] - network_pingdevice_192_168_0_17_lastseen changed from 2020-02-05T13:54:09.039-0800 to 2020-02-05T13:54:25.834-0800
2020-02-05 13:54:53.266 [hingStatusInfoChangedEvent] - 'network:pingdevice:192_168_0_17' changed from ONLINE to UNINITIALIZED
2020-02-05 13:54:53.289 [hingStatusInfoChangedEvent] - 'network:pingdevice:192_168_0_17' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)
2020-02-05 13:54:53.355 [hingStatusInfoChangedEvent] - 'zwave:device:54528bc7:node7' changed from ONLINE to UNINITIALIZED
2020-02-05 13:54:53.444 [hingStatusInfoChangedEvent] - 'zwave:device:54528bc7:node7' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)
2020-02-05 13:54:53.446 [hingStatusInfoChangedEvent] - 'zwave:serial_zstick:54528bc7' changed from ONLINE to UNINITIALIZED
2020-02-05 13:54:53.544 [hingStatusInfoChangedEvent] - 'zwave:serial_zstick:54528bc7' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)
2020-02-05 13:54:55.478 [temChannelLinkRemovedEvent] - Link 'Wallplug_OFF_Window => zwave:device:54528bc7:node7:switch_binary' has been removed.
2020-02-05 13:54:55.481 [temChannelLinkRemovedEvent] - Link 'zwave_serial_zstick_54528bc7_serial_oof => zwave:serial_zstick:54528bc7:serial_oof' has been removed.
2020-02-05 13:54:55.482 [temChannelLinkRemovedEvent] - Link 'zwave_device_54528bc7_node7_switch_binary => zwave:device:54528bc7:node7:switch_binary' has been removed.
2020-02-05 13:54:55.484 [temChannelLinkRemovedEvent] - Link 'network_pingdevice_192_168_0_17_online => network:pingdevice:192_168_0_17:online' has been removed.
2020-02-05 13:54:55.486 [temChannelLinkRemovedEvent] - Link 'zwave_serial_zstick_54528bc7_serial_nak => zwave:serial_zstick:54528bc7:serial_nak' has been removed.
2020-02-05 13:54:55.488 [temChannelLinkRemovedEvent] - Link 'zwave_serial_zstick_54528bc7_serial_sof => zwave:serial_zstick:54528bc7:serial_sof' has been removed.
2020-02-05 13:54:55.489 [temChannelLinkRemovedEvent] - Link 'zwave_serial_zstick_54528bc7_serial_ack => zwave:serial_zstick:54528bc7:serial_ack' has been removed.
2020-02-05 13:54:55.491 [temChannelLinkRemovedEvent] - Link 'zwave_serial_zstick_54528bc7_serial_cse => zwave:serial_zstick:54528bc7:serial_cse' has been removed.
2020-02-05 13:54:55.493 [temChannelLinkRemovedEvent] - Link 'zwave_device_54528bc7_node7_scene_number => zwave:device:54528bc7:node7:scene_number' has been removed.
2020-02-05 13:54:55.495 [temChannelLinkRemovedEvent] - Link 'zwave_serial_zstick_54528bc7_serial_can => zwave:serial_zstick:54528bc7:serial_can' has been removed.
2020-02-05 13:54:55.496 [temChannelLinkRemovedEvent] - Link 'network_pingdevice_192_168_0_17_latency => network:pingdevice:192_168_0_17:latency' has been removed.
2020-02-05 13:54:55.498 [temChannelLinkRemovedEvent] - Link 'network_pingdevice_192_168_0_17_lastseen => network:pingdevice:192_168_0_17:lastseen' has been removed.
==> /var/log/openhab2/openhab.log <==
2020-02-05 13:55:38.685 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'default.items'
2020-02-05 13:55:39.642 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'default.sitemap'
2020-02-05 13:55:39.669 [ERROR] [el.item.internal.GenericItemProvider] - Binding configuration of type 'channel' of item 'Presence_Mobile_Dave' could not be parsed correctly.
org.eclipse.smarthome.model.item.BindingConfigParseException: ID segment '192.168.0.17' contains invalid characters. Each segment of the ID must match the pattern [A-Za-z0-9_-]*.
at org.eclipse.smarthome.model.thing.internal.GenericItemChannelLinkProvider.createItemChannelLink(GenericItemChannelLinkProvider.java:82) ~[?:?]
at org.eclipse.smarthome.model.thing.internal.GenericItemChannelLinkProvider.processBindingConfiguration(GenericItemChannelLinkProvider.java:72) ~[?:?]
at org.eclipse.smarthome.model.item.internal.GenericItemProvider.internalDispatchBindings(GenericItemProvider.java:369) [bundleFile:?]
at org.eclipse.smarthome.model.item.internal.GenericItemProvider.dispatchBindingsPerType(GenericItemProvider.java:325) [bundleFile:?]
Thanks.
Stop OH and clean the cache to see if that helps as you’ve made some changes that may still exist in either tmp or cache.
sudo systemctl stop openhab2
sudo openhab-cli clean-cache
sudo systemctl start openhab2
Also please post your sitemap file to see if there are errors as you should see a change when the item changes. Or try a different browser.
ok…
Stopped OH and cleaned cache with commands provided. Stopped and restarted with no apparent issues.
Opened events log and saw…
2020-02-06 14:57:58.953 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'default.sitemap'
2020-02-06 14:57:59.077 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'default.items'
2020-02-06 14:58:01.365 [ERROR] [el.item.internal.GenericItemProvider] - Binding configuration of type 'channel' of item 'Presence_Mobile_Dave' could not be parsed correctly.
org.eclipse.smarthome.model.item.BindingConfigParseException: ID segment '192.168.0.17' contains invalid characters. Each segment of the ID must match the pattern [A-Za-z0-9_-]*.
at org.eclipse.smarthome.model.thing.internal.GenericItemChannelLinkProvider.createItemChannelLink(GenericItemChannelLinkProvider.java:82) ~[?:?]
at org.eclipse.smarthome.model.thing.internal.GenericItemChannelLinkProvider.processBindingConfiguration(GenericItemChannelLinkProvider.java:72) ~[?:?]
at org.eclipse.smarthome.model.item.internal.GenericItemProvider.internalDispatchBindings(GenericItemProvider.java:369) ~[?:?]
at org.eclipse.smarthome.model.item.internal.GenericItemProvider.dispatchBindingsPerItemType(GenericItemProvider.java:304) ~[?:?]
at org.eclipse.smarthome.model.item.internal.GenericItemProvider.addItemFactory(GenericItemProvider.java:132) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_222]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_222]
Here is post of default.sitemap file:
sitemap default label="My First Sitemap"
{
Switch item=Presence_Mobile_Dave label="Daves Mobile"
Switch item=Wallplug_OFF_Window label="Office Window Plug"
}
Please confirm, the default sitemap file name is: default.sitemap Singular in nature - not plural. I have noticed the rule and item file names are plural…with an “s”.
Also noted, when I started Paper UI, Control, showed the three items: Dave’s Mobile (online), Office Wall Outlet ( switch on) and the Z-Wave Controller.
When I then look at “My First Sitemap”, Daves Mobile switch is off and Office Window Plug switch is on.
Just for clarity, here is default.items file:
Switch Presence_Mobile_Dave "Daves Mobile" <network> { channel="network:device:192.168.0.17:online" }
Switch Wallplug_OFF_Window "Office Window Wallplug" <poweroutlet> { channel="zwave:device:54528bc7:node7:switch_binary" }
and default.rules file:
rule "Wallplug ON OFF"
when
Item Presence_Mobile_Dave changed
then
if(Presence_Mobile_Dave.state == ON){
Wallplug_OFF_Window.sendCommand(ON)
}
else {
Wallplug_OFF_Window.sendCommand(OFF)
}
end
Question - does the Item name: Office Wall Outlet (Z-Wave Node 007: 14288 In-Wall Outlet) need to be consistent throughout the program?
Thanks!
I do not see this item in your item files but yes all item names need to be consistent.
Also the Presence_Mobile_Dave item does not have the correct channel syntax. Looking at the screen shot above the channel should match whats in the pic. and you can copy and paste it to the items file. It’s kinda hard to read but it looked like network:pingdevice:192_168_0_17:online
I do not see that Item
name in your configuration. That appears to be a Thing
name and path. Item
names need to be consistent in rules but can be overrided by Labels for display purposes.