Hi,
I've tried out you binding on OpenHAB 1.8.1.
It appears OpenHAB can connect to my serial gateway and receives the messages from my node, but doesn't know what to do with it.
This is en excerpt of my log:
2016-02-13 15:05:52.548 [INFO ] [.b.m.internal.MySensorsBinding] - New MySensor node found: node-id=20
* Example item: 20;255;I_BATTERY_LEVEL - Use this to report the battery level 0-100 (%)
* Example item: 20;255;I_SKETCH_NAME - Sketch name that can be used to identify sensor
* Example item: 20;255;I_SKETCH_VERSION - Sketch version that can be reported to keep track of the version of sensor
2016-02-13 15:05:54.479 [INFO ] [.b.m.internal.MySensorsBinding] - Unknown: MySensors message: node-id=20, child-sensor-id=255, message-type=internal, ack=false, sub-type=I_SKETCH_NAME, payload=Temp/Hum/Motion
2016-02-13 15:05:54.486 [INFO ] [.b.m.internal.MySensorsBinding] - Unknown: MySensors message: node-id=20, child-sensor-id=255, message-type=internal, ack=false, sub-type=I_SKETCH_VERSION, payload=1.0
2016-02-13 15:05:54.498 [INFO ] [.b.m.internal.MySensorsBinding] - New MySensor sensor found (Humidity sensor): node-id=20, sensor-id=0 with type S_HUM
* Example item: 20;0;V_HUM - Humidity
2016-02-13 15:05:54.521 [INFO ] [.b.m.internal.MySensorsBinding] - New MySensor sensor found (Temperature sensor): node-id=20, sensor-id=1 with type S_TEMP
* Example item: 20;1;V_TEMP - Temperature
* Example item: 20;1;V_ID - Optional unique sensor id (e.g. OneWire DS1820b ids)
2016-02-13 15:05:54.545 [INFO ] [.b.m.internal.MySensorsBinding] - New MySensor sensor found (Motion sensor): node-id=20, sensor-id=2 with type S_MOTION
* Example item: 20;2;V_TRIPPED - Tripped status of a security sensor. (Tripped/Untripped)
* Example item: 20;2;V_ARMED - Armed status of a security sensor. (Armed/Bypassed)
2016-02-13 15:05:54.567 [INFO ] [.b.m.internal.MySensorsBinding] - Unknown: MySensors message: node-id=20, child-sensor-id=2, message-type=set, ack=false, sub-type=V_TRIPPED, payload=1
2016-02-13 15:05:55.537 [INFO ] [.b.m.internal.MySensorsBinding] - Unknown: MySensors message: node-id=20, child-sensor-id=1, message-type=set, ack=false, sub-type=V_TEMP, payload=19.0
2016-02-13 15:05:55.551 [INFO ] [.b.m.internal.MySensorsBinding] - Unknown: MySensors message: node-id=20, child-sensor-id=0, message-type=set, ack=false, sub-type=V_HUM, payload=48.0
All the sensors get declared and recognized as their type, but the messages are not being interpreted correctly.
This is my .items-file:
Number Humidity "Livingsensor [%s %%Rh]" <water> (GF_Living) {mysensors="20;0;V_HUM"}
Number Temperature "Livingsensor [%s ยฐC]" <temperature> (GF_Living) {mysensors="20;1;V_TEMP"}
Switch Motion "Livingsensor [%s]" <motion> (GF_Living) {mysensors="20;2;V_TRIPPED"}
And the sitemap (which of course doesn't update anything yet):
sitemap default label="Main Menu"
{
Frame label="Systeem"{
Group item=System label="Systeeminfo" icon="computer" {
Text item=uptime icon="computer"
Text item=Raspi_CPU icon="computer"
Switch item=wakingup
}
}
Frame label="MySensors" {
Switch item=Motion
Text item=Humidity
Text item=Temperature
}
}
It's been a while since I used OpenHAB and went looking for something more lightweight that had better integration for MySensors, but with your binding, I could revert to include everything I've built for OpenHAB in the past.
Thanks for your initial work and I hope you can help me out.