tobof / openhab-addons

The next-generation open Home Automation Bus (openHAB)
Eclipse Public License 2.0
39 stars 30 forks source link

RGBW node definition via things file doesn't work #88

Closed OliverHi closed 7 years ago

OliverHi commented 7 years ago

I am running openhab 2.1.0 and the version 2.2.0.201707241115 of the MySensors binding on a raspberry pi.

I have defined several things via a *.things file.

Bridge mysensors:bridge-ser:gwSerial [ serialPort="/dev/ttyUSB0", sendDelay=100 ] {

    /** Lights */
    rgbwLight       LichtKuecheUnten    [nodeID=4, childId=1, requestAck=true]
    rgbwLight       LichtFenster        [nodeID=5, childId=1, requestAck=true]
    rgbwLight       LichtSchrank        [nodeID=6, childId=1, requestAck=true]
    rgbwLight       LichtWand           [nodeID=7, childId=1, requestAck=true]

    /** Sensors */  
    temperature     tempBad             [nodeId=8, childId=0]
    humidity        humBad              [nodeId=8, childId=1]
    temperature     tempWohnzimmer      [nodeId=1, childId=0]
    humidity        humWohnzimmer       [nodeId=1, childId=1]
    light-level     lightWohnzimmer     [nodeId=17, childId=1]
}

All sensors are working just fine. They show up in the paperUI, initialize and show the updated values. The rgbw nodes don't. They don't get initialized. The nodeID and childId settings are correct, I use the same values with domoticz. image

The items do pop up as new things in the inbox though (after restarting the nodes so that they present themselves). I can add them there and use them. This should be the thing "LichtKuecheUnten" from above. image

tobof commented 7 years ago

It's nodeId, not nodeID! :smiley:

Should work with that change.

I've tested it with:

Bridge mysensors:bridge-ser:MySGWRFM [ serialPort="/dev/pts/6", sendDelay=60, startupCheckEnabled=false ] {
    rgbwLight       LichtKuecheUnten    [ nodeId=4, childId=1, requestAck=false]
}
OliverHi commented 7 years ago

Ups that's embarrassing. Thanks for the hint. I tested it with nodeId and it's working just fine now.