Creating a virtual lock for fibaro roller shutter 2 controlled shutters

Hi,

for some time I’ve been looking into options to create a virtual lock in HA for my shutters. I have 3 kids, the youngest still being a toddler. The latter is obsessed with the wall switches and he keeps rolling my shutters up and down. After giving this a thought for sometime, today I came to think that instead of adding logic in the front-end the key could be the fibaro device itself instead. And luckily enough, it turns out that Fibaro ships a local control that could be leveraged for this purpose.

Anybody knows how do send module control parameters from the front-end??

many thanks!!

zwave.set_config_parameter service call. https://www.home-assistant.io/docs/z-wave/services/

@freshcoast thanks for that! do you have fibaro rollershuters too? I may be missing something of course, but I’m under the impression that zwave.set_config_parameter is not properly applying the configuration that I want. Not sure if this specific parameter is protected and can only be changed via the front-end? Thing is: I configure one of my fibaro rollershutters by means of that service call, I see in the logfile that it has been indeed applied but then the next line in the logfile suggests that my configuration did not go through…

Screen Shot 2020-06-15 at 23.19.22 Screen Shot 2020-06-15 at 23.19.30

2020-06-15 23:15:57 ERROR (MainThread) [homeassistant.core] Error doing job: Unclosed client session
2020-06-15 23:16:09 INFO (SyncWorker_12) [homeassistant.components.zwave] Setting configuration parameter 1 on Node 7 with list selection Local protection active. Roller Shutter does not respond to push buttons
2020-06-15 23:16:27 INFO (SyncWorker_15) [homeassistant.components.zwave] Config parameter 1 on Node 7: No protection. Roller Shutter responds to push buttons
2020-06-15 23:16:30 INFO (SyncWorker_13) [PyTado.interface] api call result: {"access_token":"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsicGFydG5lciJdLCJzdWIiOiI1YzAzMDRlNTRjZWRmZDAwMDg4

What does the OZW_Log.txt show when you set that config parameter? That would answer a lot of questions.

I don’t have the device, but I’ve looked at the manuals and config files before. It looks like you have the FGRM-222 device, right?

I was a little confused by that config parameter. The roller shutter manuals don’t mention that parameter anywhere, and the two other config files (fgr-221/223). I think the config file is wrong, and those config parameters don’t exist.

Does the protection work if you use Node Protection section?

Yes, I have managed to disable the wall switch by using the configuration options in the Z-Wave menu in the Configuration section.

I’ve just set Node Protection to “No Operation Possible” and this is the output that I see

Screen Shot 2020-06-16 at 23.08.46

2020-06-16 23:05:54.837 Info, Node003, Value::Set - COMMAND_CLASS_PROTECTION - Protection - 0 - 1 - No Operation Possible
2020-06-16 23:05:54.837 Info, Node003, Protection::Set - Setting protection state to 'No Operation Possible'
2020-06-16 23:05:54.838 Detail, Node003, Queuing (Send) ProtectionCmd_Set (Node=3): 0x01, 0x0a, 0x00, 0x13, 0x03, 0x03, 0x75, 0x01, 0x02, 0x25, 0x98, 0x2d
2020-06-16 23:05:54.838 Detail, Node003, Queuing (Send) ProtectionCmd_Get (Node=3): 0x01, 0x09, 0x00, 0x13, 0x03, 0x02, 0x75, 0x02, 0x25, 0x99, 0x2f
2020-06-16 23:05:54.838 Detail, 
2020-06-16 23:05:54.838 Info, Node003, Sending (Send) message (Callback ID=0x98, Expected Reply=0x13) - ProtectionCmd_Set (Node=3): 0x01, 0x0a, 0x00, 0x13, 0x03, 0x03, 0x75, 0x01, 0x02, 0x25, 0x98, 0x2d
2020-06-16 23:05:54.847 Detail, Node003,   Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
2020-06-16 23:05:54.847 Detail, Node003,   ZW_SEND_DATA delivered to Z-Wave stack
2020-06-16 23:05:54.886 Detail, Node003,   Received: 0x01, 0x07, 0x00, 0x13, 0x98, 0x00, 0x00, 0x05, 0x76
2020-06-16 23:05:54.886 Detail, Node003,   ZW_SEND_DATA Request with callback ID 0x98 received (expected 0x98)
2020-06-16 23:05:54.886 Info, Node003, Request RTT 47 Average Request RTT 140
2020-06-16 23:05:54.886 Detail,   Expected callbackId was received
2020-06-16 23:05:54.886 Detail,   Expected reply was received
2020-06-16 23:05:54.886 Detail,   Message transaction complete
2020-06-16 23:05:54.886 Detail, 
2020-06-16 23:05:54.886 Detail, Node003, Removing current message
2020-06-16 23:05:54.887 Detail, 
2020-06-16 23:05:54.887 Info, Node003, Sending (Send) message (Callback ID=0x99, Expected Reply=0x04) - ProtectionCmd_Get (Node=3): 0x01, 0x09, 0x00, 0x13, 0x03, 0x02, 0x75, 0x02, 0x25, 0x99, 0x2f
2020-06-16 23:05:54.896 Detail, Node003,   Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
2020-06-16 23:05:54.896 Detail, Node003,   ZW_SEND_DATA delivered to Z-Wave stack
2020-06-16 23:05:54.936 Detail, Node003,   Received: 0x01, 0x07, 0x00, 0x13, 0x99, 0x00, 0x00, 0x05, 0x77
2020-06-16 23:05:54.936 Detail, Node003,   ZW_SEND_DATA Request with callback ID 0x99 received (expected 0x99)
2020-06-16 23:05:54.936 Info, Node003, Request RTT 49 Average Request RTT 94
2020-06-16 23:05:54.936 Detail,   Expected callbackId was received
2020-06-16 23:05:54.982 Detail, Node003,   Received: 0x01, 0x0a, 0x00, 0x04, 0x00, 0x03, 0x04, 0x75, 0x03, 0x02, 0x00, 0x82
2020-06-16 23:05:54.982 Detail, 
2020-06-16 23:05:54.982 Info, Node003, Response RTT 94 Average Response RTT 356
2020-06-16 23:05:54.982 Info, Node003, Received a Protection report: No Operation Possible
2020-06-16 23:05:54.982 Detail, Node003, Refreshed Value: old value=0, new value=2, type=list
2020-06-16 23:05:54.982 Detail, Node003, Changes to this value are not verified
2020-06-16 23:05:54.982 Detail, Node003,   Expected reply and command class was received
2020-06-16 23:05:54.983 Detail, Node003,   Message transaction complete
2020-06-16 23:05:54.983 Detail, 
2020-06-16 23:05:54.983 Detail, Node003, Removing current message
2020-06-16 23:05:54.983 Detail, Node003, Notification: ValueChanged

however, if I now run this from the Developer menu

Screen Shot 2020-06-16 at 23.11.44

this is what I see in home-assistant.log (OZW_Log.txt is not modified when I run this command):

2020-06-16 23:10:29 INFO (SyncWorker_11) [homeassistant.components.zwave] Config parameter 1 on Node 3: No protection. Roller Shutter responds to push buttons

has someone get this working.
I want to protect my roller shutter node when the door is open.
But i looks like lokal protection is not working