Hello,
I recently purchased a Homey Pro with the intention of transferring my home automation from Smartthings. I am trying to create a Flow that sets a raw zwave parameter on a when clause. The devices I’m using are a Third Reality Contact sensor and a GE Motion Occupancy Dimmer Switch.The switch supports three occupancy settings, Manual, Vacancy, Occupancy. In manual mode the status of the motion sensor is ignored. Vacancy mode turns off the light if there is no motion. Occupancy mode turns the light on with motion and off when it detects no motion. I am looking to change the Occupancy setting via sending a raw zwave command.
The switch is in a bathroom. I have the switch set to occupancy mode, so it turns the light on when I walk in and off after five minutes of no motion. If I want to take a shower the motion sensor is blocked so the light turns off after five minutes. To get around this I have a contact sensor stuck to the door. I want to use the status of the contact sensor to modify the Occupancy setting value and change it to manual when the door is closed, then change it back to occupancy when the door is open.
I found an OpenZwave Github repo that provided the raw values I need to modify. Based on this, the configuration ID I need to modify is 3, with a size of 1 byte and value of 1, 2, or 3 corresponding to manual, vacancy or occupancy respectively.
If I open the switch device settings, scroll down to zwave raw device configuration parameters and type in 3,1,1 then click save, it correctly sets the occupancy setting to manual, disabling the motion sensor from controlling the light. If I change the parameter to 3,1,3 and save it, the setting is changed back to occupancy and the motion sensor again controls the light.
To replicate this behavior in a Flow I set up a basic flow with a When clause set to “Contact alarm turned off” and a Then clause set to Send zwave raw command 5 3,1,1 Five is the node ID obtained from the settings for the switch.
This set up does not work. Given I can set the same raw command within the switch device settings and it performs as expected I am unsure what I’m doing wrong when sending raw zwave commands in a flow. I’m hoping someone here can provide guidance.