nodes that changed 2013-09-11T07:48:09+00:00

HOME Forums Gateways Raspberry Pi nodes that changed

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • Anonymous
    Post count: 19
    #40386 |

    Ok, next question:
    I would like to find out which nodes have changed value, like a button that was pushed or something similar (I am trying to build an automation that requires input from several sensors,which can’t be done with a scene or association). Do I need to retrieve the info on all the nodes for this, or is there some kind of signal or something similar that I can use to get a list of only the nodes that got changed?

    Post count: 259

    Which nodes are you using? Zigbee, Insteon, X10?
    Insteon and Zigbee nodes report on change, so you get a zbppacketsignal XML packet every time their state change.

    You can also poll the state of the node to check if it changed.

    Post count: 19

    right now I’m only interested in the zigbee part (as I only have zigbee devices). Maybe in the future I can have a look at the other 2 protocols.
    So those packets are send asynchronously by the server (without me doing a specific call)? Let me try that out (a bit more work…)

    Post count: 19

    I think I’m still doing something wrong. I have added a device to my zigbee controller (a ZBWS3) using the harmony gateway. I can see this device when I query for all the registered devices (currently using Node_GetNode). This returns me:





    But when I press a button on the ZBWS3, I get 2 messages:


    But no info about the fact that a button was pressed.
    Is my device not registered correctly or something? What am I missing?


    Post count: 259


    What you see is the expected behaviour. The 3 buttons send On/Off command when the device has a binding with another device.

    For e.g You can Bind a Button to control a Zigbee SmartPlug. Once you have a binding, every time you press the button, the ZBWS3 sends a Toggle command to the SmartPlug.

    So what you want to do is create a binding in the ZBWS3 for the SmartPlug. On the Gateway you will be able to see the SmartPlug turn On/Off, but not anything from the ZBWS3.

    You can create bindings through API or manually.

    1. Manually: Explained in the ZBWS3 QuickStart Guide:

    2. Through API:
    u16DestAdd = ZBWS3 address
    u8SrcEP = 1 for Button1, 2 for Button 2 and Button 3.
    u16ClusterID = 0x0006
    u16BndgDest = Smartplug
    u8DestEP = 1

    Let me know if you have any other questions.

    Post count: 19

    On the Gateway you will be able to see the SmartPlug turn On/Off, but not anything from the ZBWS3.

    Does this mean I can not see the values of devices like push buttons (like the ZBWS3), but only from devices that can receive commands like a smartplug?
    Or is there perhaps another way that I can query for the current value of each button on the ZBWS3?
    Or can I perhaps bind all the buttons to the gateway or a virtual device?

    Post count: 259

    The buttons do not have a state. So there is no value to be read from them. When you press the button, a Toggle command is sent to the bound device. Its like a remote control with 3 Toggle buttons. Feel free to call/email me if you need help setting this up.

    Post count: 19

    Ok, thanks. I’ll have to try out a few things then.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.