opus
(Jürgen Baginski)
July 3, 2016, 11:04am
1
Hi,
I have a working SetUp including some Sonos Players. The players have been discovered and added as Items using custom names(“PlayKueche”).
In the .Items files I have set serveral controls which are connected to the Players like:
Switch PlayKueche_Save "Save"(EG_Kueche) {channel="sonos:PLAY1:RINCON_xx1400:save"}
If I do restart OpenHAB the players get dircovered and I get for each used channels following log entries:
12:45:17.779 [INFO ] [smarthome.event.ItemAddedEvent ] - Item 'PlayKueche_Save' has been added.
12:45:17.783 [INFO ] [home.event.ItemChannelLinkAddedEvent] - Link 'PlayKueche_Save-sonos:PLAY1:RINCON_xx1400:save' has been added.
followed shortly by:
12:45:18.678 [INFO ] [smarthome.event.ItemRemovedEvent ] - Item 'PlayKueche_Volume' has been removed.
However the last reported is omitted for all the “_Save” and “_Restore” channels, resulting in the following warning (which is repeated whenever a rule-file gets updated):
12:45:50.105 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 'PlayKueche_Save'. Ignoring 'org.eclipse.smarthome.core.library.items.SwitchItem'.
Am I on a wrong track?
BTW Item Linking simple mode is OFF.
Lolodomo
(Lolodomo)
July 5, 2016, 2:28pm
2
It looks like a bug I have already declared.
opened 06:00PM - 30 May 16 UTC
closed 10:02PM - 26 Jul 16 UTC
When I define a rules file, I get this kind of errors at startup:
```
2016-05-3… 0 19:48:58.493 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 'Freebox_call_duration'. Ignoring 'org.eclipse.smarthome.core.library.items.NumberItem'.
2016-05-30 19:48:58.498 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 'Freebox_accepted_call_name'. Ignoring 'org.eclipse.smarthome.core.library.items.StringItem'.
2016-05-30 19:48:58.499 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 'Freebox_accepted_call_duration'. Ignoring 'org.eclipse.smarthome.core.library.items.NumberItem'.
2016-05-30 19:48:58.502 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 'Freebox_missed_call_name'. Ignoring 'org.eclipse.smarthome.core.library.items.StringItem'.
2016-05-30 19:48:58.504 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 'Freebox_missed_call_duration'. Ignoring 'org.eclipse.smarthome.core.library.items.NumberItem'.
2016-05-30 19:48:58.508 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 'Freebox_outcall_name'. Ignoring 'org.eclipse.smarthome.core.library.items.StringItem'.
2016-05-30 19:48:58.511 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 'Freebox_outcall_duration'. Ignoring 'org.eclipse.smarthome.core.library.items.NumberItem'.
2016-05-30 19:48:58.518 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 'Freebox_cs_bytes_up'. Ignoring 'org.eclipse.smarthome.core.library.items.NumberItem'.
2016-05-30 19:48:58.519 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 'Freebox_cs_bytes_down'. Ignoring 'org.eclipse.smarthome.core.library.items.NumberItem'.
2016-05-30 19:48:59.620 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 'Freebox_call_duration'. Ignoring 'org.eclipse.smarthome.core.library.items.NumberItem'.
2016-05-30 19:48:59.625 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 'Freebox_accepted_call_name'. Ignoring 'org.eclipse.smarthome.core.library.items.StringItem'.
2016-05-30 19:48:59.641 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 'Freebox_accepted_call_duration'. Ignoring 'org.eclipse.smarthome.core.library.items.NumberItem'.
2016-05-30 19:48:59.647 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 'Freebox_missed_call_name'. Ignoring 'org.eclipse.smarthome.core.library.items.StringItem'.
2016-05-30 19:48:59.653 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 'Freebox_missed_call_duration'. Ignoring 'org.eclipse.smarthome.core.library.items.NumberItem'.
```
These items are even not used in my rules.
If I remove my rules file and restart OH, these warnings disappear.
Occurred with OH2 beta 3.
opus
(Jürgen Baginski)
July 5, 2016, 2:51pm
3
Thanks for the information