Re: zwavejs2mqtt
Posted: Monday 09 August 2021 23:20
That should do it.
Sent from my SM-G980F using Tapatalk
Sent from my SM-G980F using Tapatalk
I will try another name then, to make it possible to switch back.IanDury wrote: ↑Monday 16 August 2021 10:38
- Had the same issue with dzVents as @AllesVanZelf. The log complained about not being able to switch disabled devices. Apparently if you just disable your OZW controlled hardware and add the Zwave-MQTT plugin using the same device names this will cause confusion for dzVents. After deleting the OZW controller and restarting Domoticz, dzVents works fine.
I do not understand what you mean by this. Could you explain this to me? How do you "add the controller to the 4th association group"?
Code: Select all
2021-08-16 13:18:20.730 DEBUG MQTT: Publishing to zwave/31/113/0/Home_Security/Motion_sensor_status: {
time: 1629119900729,
value: 8,
nodeName: 'MS Trap',
nodeLocation: ''
} with options { qos: 1, retain: true }
2021-08-16 13:18:20.731 INFO ZWAVE: Node 31: value updated: 113-0-Home Security-Motion sensor status 0 => 8
I think adding the below at the bottom of the 113 section in device_types.yml should do it (ie just before the /128/:):IanDury wrote: ↑Monday 16 August 2021 15:42 Thanks @heggink,
Will further investigate how to modify device_types.yml when I have more time and contribute if I'm succesfull. If I set the zwavejs2mqtt log level to Debug I see this:
Node 31 is a Fibaro FGMS-001-ZW5 motion sensor.Code: Select all
2021-08-16 13:18:20.730 DEBUG MQTT: Publishing to zwave/31/113/0/Home_Security/Motion_sensor_status: { time: 1629119900729, value: 8, nodeName: 'MS Trap', nodeLocation: '' } with options { qos: 1, retain: true } 2021-08-16 13:18:20.731 INFO ZWAVE: Node 31: value updated: 113-0-Home Security-Motion sensor status 0 => 8
@AllesVanZelf, To enable the binary sensor command class on this device I've added the following groups next to lifeline:
Screenshot from 2021-08-16 15-32-39.png
Code: Select all
Home_Security/Motion_sensor_status:
DeviceType: 244
Enabled: true
Primary_device: true
SubType: 62
SwitchType: 8
Type: DeviceType
nValue: 1
sValue: OnOff
Code: Select all
19:48:20 zwave/31/113/0/Home_Security/Motion_sensor_status b'{"time":1629136100201,"value":8,"nodeName":"MS Trap","nodeLocation":""}'
19:48:31 zwave/31/113/0/Home_Security/Motion_sensor_status b'{"time":1629136111020,"value":0,"nodeName":"MS Trap","nodeLocation":""}'
Code: Select all
2021-08-16 19:48:20.202 ZW: (ZW) Pushing 'ReadEvent' on to queue
2021-08-16 19:48:20.227 (ZW) Processing 'ReadEvent' message
2021-08-16 19:48:20.227 ZW: (ZW) Received 124 bytes of data
2021-08-16 19:48:20.227 ZW: (ZW) 30 7a 00 31 7a 77 61 76 65 2f 33 31 2f 31 31 33 2f 30 2f 48 0z.1zwave/31/113/0/H
2021-08-16 19:48:20.227 ZW: (ZW) 6f 6d 65 5f 53 65 63 75 72 69 74 79 2f 4d 6f 74 69 6f 6e 5f ome_Security/Motion_
2021-08-16 19:48:20.227 ZW: (ZW) 73 65 6e 73 6f 72 5f 73 74 61 74 75 73 7b 22 74 69 6d 65 22 sensor_status{"time"
2021-08-16 19:48:20.227 ZW: (ZW) 3a 31 36 32 39 31 33 36 31 30 30 32 30 31 2c 22 76 61 6c 75 :1629136100201,"valu
2021-08-16 19:48:20.227 ZW: (ZW) 65 22 3a 38 2c 22 6e 6f 64 65 4e 61 6d 65 22 3a 22 4d 53 20 e":8,"nodeName":"MS.
2021-08-16 19:48:20.227 ZW: (ZW) 54 72 61 70 22 2c 22 6e 6f 64 65 4c 6f 63 61 74 69 6f 6e 22 Trap","nodeLocation"
2021-08-16 19:48:20.227 ZW: (ZW) 3a 22 22 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. :""}
2021-08-16 19:48:20.227 ZW: (ZW) Pushing 'onMessageCallback' on to queue
2021-08-16 19:48:20.227 (ZW) Processing 'onMessageCallback' message
2021-08-16 19:48:20.227 ZW: (ZW) Calling message handler 'onMessage' on 'module' type object.
2021-08-16 19:48:20.227 ZW: (ZW) onMessage called: Verb: PUBLISH
2021-08-16 19:48:20.227 ZW: (ZW) zwave/31/113/0/Home_Security/Motion_sensor_status
2021-08-16 19:48:20.228 ZW: (ZW) updateDevice called with topic: zwave/31/113/0/Home_Security/Motion_sensor_status and payload b'{"time":1629136100201,"value":8,"nodeName":"MS Trap","nodeLocation":""}'
2021-08-16 19:48:20.228 ZW: (ZW) zwave/31/113/0/Home_Security/Motion_sensor_status
2021-08-16 19:48:20.228 ZW: (ZW) Updating unit 61 as device /31/113/0/Home_Security/Motion_sensor_status of type Home_Security/Motion_sensor_status with {'time': 1629136100201, 'value': 8, 'nodeName': 'MS Trap', 'nodeLocation': ''}
2021-08-16 19:48:20.228 ZW: (ZW) Updating with typedef: {'DeviceType': 244, 'Enabled': True, 'Primary_device': True, 'SubType': 73, 'SwitchType': 8, 'Type': 'DeviceType', 'nValue': 1, 'sValue': 'OnOff'}
???????? 2021-08-16 19:48:20.228 ZW: (ZW) nValue: 0 sValue: Off
021-08-16 19:48:23.033 ZW: (ZW) Pushing 'onHeartbeatCallback' on to queue
2021-08-16 19:48:23.084 (ZW) Processing 'onHeartbeatCallback' message
2021-08-16 19:48:23.084 ZW: (ZW) Calling message handler 'onHeartbeat' on 'module' type object.
2021-08-16 19:48:23.084 ZW: (ZW) onHeartbeat called
2021-08-16 19:48:23.084 ZW: (ZW) Pushing 'WriteDirective' on to queue
2021-08-16 19:48:23.084 (ZW) Processing 'WriteDirective' message
2021-08-16 19:48:23.084 ZW: (ZW) Sending 2 bytes of data
2021-08-16 19:48:23.084 ZW: (ZW) c0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. �
2021-08-16 19:48:23.085 ZW: (ZW) Pushing 'ReadEvent' on to queue
2021-08-16 19:48:23.135 (ZW) Processing 'ReadEvent' message
2021-08-16 19:48:23.135 ZW: (ZW) Received 2 bytes of data
2021-08-16 19:48:23.135 ZW: (ZW) d0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Ю
2021-08-16 19:48:23.135 ZW: (ZW) Pushing 'onMessageCallback' on to queue
2021-08-16 19:48:23.135 (ZW) Processing 'onMessageCallback' message
2021-08-16 19:48:23.135 ZW: (ZW) Calling message handler 'onMessage' on 'module' type object.
2021-08-16 19:48:23.135 ZW: (ZW) onMessage called: Verb: PINGRESP
021-08-16 19:48:31.022 ZW: (ZW) Pushing 'ReadEvent' on to queue
2021-08-16 19:48:31.049 (ZW) Processing 'ReadEvent' message
2021-08-16 19:48:31.049 ZW: (ZW) Received 124 bytes of data
2021-08-16 19:48:31.049 ZW: (ZW) 30 7a 00 31 7a 77 61 76 65 2f 33 31 2f 31 31 33 2f 30 2f 48 0z.1zwave/31/113/0/H
2021-08-16 19:48:31.049 ZW: (ZW) 6f 6d 65 5f 53 65 63 75 72 69 74 79 2f 4d 6f 74 69 6f 6e 5f ome_Security/Motion_
2021-08-16 19:48:31.050 ZW: (ZW) 73 65 6e 73 6f 72 5f 73 74 61 74 75 73 7b 22 74 69 6d 65 22 sensor_status{"time"
2021-08-16 19:48:31.050 ZW: (ZW) 3a 31 36 32 39 31 33 36 31 31 31 30 32 30 2c 22 76 61 6c 75 :1629136111020,"valu
2021-08-16 19:48:31.050 ZW: (ZW) 65 22 3a 30 2c 22 6e 6f 64 65 4e 61 6d 65 22 3a 22 4d 53 20 e":0,"nodeName":"MS.
2021-08-16 19:48:31.050 ZW: (ZW) 54 72 61 70 22 2c 22 6e 6f 64 65 4c 6f 63 61 74 69 6f 6e 22 Trap","nodeLocation"
2021-08-16 19:48:31.050 ZW: (ZW) 3a 22 22 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. :""}
2021-08-16 19:48:31.050 ZW: (ZW) Pushing 'onMessageCallback' on to queue
2021-08-16 19:48:31.050 (ZW) Processing 'onMessageCallback' message
2021-08-16 19:48:31.050 ZW: (ZW) Calling message handler 'onMessage' on 'module' type object.
2021-08-16 19:48:31.050 ZW: (ZW) onMessage called: Verb: PUBLISH
2021-08-16 19:48:31.050 ZW: (ZW) zwave/31/113/0/Home_Security/Motion_sensor_status
2021-08-16 19:48:31.050 ZW: (ZW) updateDevice called with topic: zwave/31/113/0/Home_Security/Motion_sensor_status and payload b'{"time":1629136111020,"value":0,"nodeName":"MS Trap","nodeLocation":""}'
2021-08-16 19:48:31.050 ZW: (ZW) zwave/31/113/0/Home_Security/Motion_sensor_status
2021-08-16 19:48:31.050 ZW: (ZW) Updating unit 61 as device /31/113/0/Home_Security/Motion_sensor_status of type Home_Security/Motion_sensor_status with {'time': 1629136111020, 'value': 0, 'nodeName': 'MS Trap', 'nodeLocation': ''}
2021-08-16 19:48:31.050 ZW: (ZW) Updating with typedef: {'DeviceType': 244, 'Enabled': True, 'Primary_device': True, 'SubType': 73, 'SwitchType': 8, 'Type': 'DeviceType', 'nValue': 1, 'sValue': 'OnOff'}
2021-08-16 19:48:31.050 ZW: (ZW) nValue: 0 sValue: Off
Code: Select all
elif typedef["sValue"] == "OnOff":
val = str(payload["value"])
if val == "True" or val == "22" or val == "8":
sValue = "On"
nValue = 1
else:
sValue = "Off"
nValue = 0
I tried to add group motion etc. But no success. The line is not added at all. I see a message:
Code: Select all
Success zwave api call getAssociations [
{ endpoint: 0, groupId: 1, nodeId: 1, targetEndpoint: undefined },
[length]: 1
]