- First up close the gap between what the doc claims the nodes do and what they actually do. This is mainly the WeMo Out node which claimed to support an input object that could set both the state and the brightness at the same time for light bulbs and groups. In actuality it only set the state. This update fixes this along with supporting setting colour and colour temperature as well if the bulb supports those capabilities.
- The WeMo in node (event node) now includes the capability name as well as it’s code when a bulb or group changes.
- Fixed Light groups to actually work
- Automatically set the node name to the discovered device name to stop you having to set it via the name field in the config
The biggest change is the addition on the new WeMo Lookup node. This node queries a given device for it’s current state.
For Sockets the node sets the msg.payload to something very similar to the event node’s staus field, so 0 for off and 1 for on (and 8 for on/standby in the case of the insight socket.). For lights/light groups it outputs an object similar to the Event node, with keys for each capability the light/group has. At the moment the color field is still in X,Y values not RGB.
This makes it possible to implement flows that carry out relative changes without having to keep a permanent record of the state of the device in the context. This let’s you do fun things like this:
This flow looks up the current brightness level and then increases or decreases it based on the direction the Powermate is turned and toggles the light on/off when it’s pressed.
Version 0.1.11 should have gone live on npmjs.org today.