Closed stefaanv closed 7 years ago
The definition looks good. Please attach the debug output of a light-level message received by the binding.
Hi Tim,
I got the configuration of the things and the items correct now. Everything is updating, config files below.
However, I get some warnings in the log that refer to channels that I have not defined.
How can I get rid of these warnings ?
16:43:59.524 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Node 3 found in gateway
16:43:59.525 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Child 1 found in node 3
16:43:59.527 [DEBUG] [ensors.handler.MySensorsThingHandler] - Updating channel: temp(0) value to: 24.3
**16:43:59.530 [WARN ] [ome.core.thing.internal.ThingManager] - Cannot delegate update '24.3' for item 'keuken_temp' to handler for channel 'mysensors:temperature:gateway:temperature_3_1:temp', because no thing with the UID 'mysensors:temperature:gateway:temperature_3_1' could be found**
16:43:59.531 [DEBUG] [ensors.handler.MySensorsThingHandler] - Setting last update for node/child 3/1 to 2017-06-17T16:43:59.000+0200
16:43:59.628 [DEBUG] [rsAbstractConnection$MySensorsReader] - 3;2;1;0;1;66
16:43:59.631 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Node 3 found in gateway
16:43:59.640 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Child 2 found in node 3
16:43:59.642 [DEBUG] [ensors.handler.MySensorsThingHandler] - Updating channel: hum(1) value to: 66
16:43:59.647 [DEBUG] [ensors.handler.MySensorsThingHandler] - Setting last update for node/child 3/2 to 2017-06-17T16:43:59.000+0200
16:44:19.088 [DEBUG] [rsAbstractConnection$MySensorsReader] - 1;2;1;0;38;13.47
16:44:19.093 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Node 1 found in gateway
16:44:19.106 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Child 2 found in node 1
16:44:19.110 [DEBUG] [ensors.handler.MySensorsThingHandler] - Updating channel: volt(38) value to: 13.47
**16:44:19.129 [WARN ] [ome.core.thing.internal.ThingManager] - Cannot delegate update '13.47' for item 'kippenhok_batterijSpanning' to handler for channel 'mysensors:multimeter:gateway:multimeter_1_2:volt', because no thing with the UID 'mysensors:multimeter:gateway:multimeter_1_2' could be found.**
16:44:19.152 [DEBUG] [ensors.handler.MySensorsThingHandler] - Setting last update for node/child 1/2 to 2017-06-17T16:44:19.000+0200
16:44:19.194 [DEBUG] [rsAbstractConnection$MySensorsReader] - 1;3;1;0;0;36.62
16:44:19.201 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Node 1 found in gateway
16:44:19.203 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Child 3 found in node 1
16:44:19.204 [DEBUG] [ensors.handler.MySensorsThingHandler] - Updating channel: temp(0) value to: 36.62
16:44:19.208 [INFO ] [marthome.event.ItemStateChangedEvent] - kippenhok_temp changed from 36.59 to 36.62
items configuration
Number keuken_vocht "Vochtigheid [%f %%Rh]" <humidity> (gKeuken, gVochtigheid) { channel="mysensors:humidity:gateway:keuken_vochtigheid:hum" }
Number keuken_temp "Temperatuur [%.1f °C]" <temperature> (gKeuken, gTemperatuur) { channel="mysensors:temperature:gateway:keuken_temperatuur:temp" }
Number kippenhok_temp "Temperatuur [%.1f °C]" <temperature> (gKippenhok, gTemperatuur) { channel="mysensors:temperature:gateway:kippenhok_temperatuur:temp" }
Number kippenhok_lichtSensor "Omgevingslicht [%f Lux]" <sun_clouds> (gKippenhok) { channel="mysensors:light-level:gateway:kippenhok_lichtSensor:licht-level" }
Number kippenhok_batterijSpanning "Spanning [%.1f V]" <battery> (gKippenhok) { channel="mysensors:multimeter:gateway:kippenhok_multimeter:volt" }
Number kippenhok_batterijStroom "Stroom [%f mA]" <energy> (gKippenhok) { channel="mysensors:multimeter:gateway:kippenhok_multimeter:current" }
Switch kippenhok_deurtje "Deurtje" <frontdoor-closed> (gKippenhok) {channel="mysensors:lock:gateway:kippenhok_deurtje:lock-status"}
things configuration
Bridge mysensors:bridge-eth:gateway [ ipAddress="192.168.0.7", tcpPort=5003, sendDelay=200, skipStartupCheck=true ]
{
humidity keuken_vochtigheid [ nodeId="3", childId="2"]
temperature keuken_temperatuur [ nodeId="3", childId="1"]
lock kippenhok_deurtje [ nodeId="1", childId="5"]
temperature kippenhok_temperatuur [ nodeId="1", childId="3"]
multimeter kippenhok_multimeter [ nodeId="1", childId="2"]
light-level kippenhok_lichtSensor [ nodeId="1", childId="1"]
}
Ok, that's a little bit weird. :smile:
My guess: there are old definitions in the "cache" from a thing configuration where you configured the things and items with PaperUI. I suppose you deleted those items? The channel definitions should be deleted by OpenHab, but something went wrong. mysensors:temperature:gateway:temperature_3_1:temp
looks like autodiscovery.
You did restart OpenHab2 to try if this will fixes the problem?
If you have defined everything within things and items file you may stop OpenHab, delete the cache and start OpenHab again. But: everything you configured with PaperUI will be lost.
/var/lib/openhab2/mapdb/
and /var/lib/openhab2/jsondb/
are the cache directories.
Hi, I have a light-level sensor which I'm trying to configure in openHab, but its values isn't being refreshed. Any idea what's going wrong ?
These are the configuration files things
items
sitemap