Nico0084 / domogik-plugin-ozwave

Domogik ozwave plugin
GNU General Public License v3.0
1 stars 0 forks source link

prise nodon smartplug #8

Open tikismoke opened 9 years ago

tikismoke commented 9 years ago

En cours de livraison.

Pareil je vais pouvoir te faire le retour de test.

tikismoke commented 9 years ago

Version zwave+

tikismoke commented 9 years ago

In advanced the type is: On/Off Power Switch Model: NodOn -- ASP-3-1-00 Smart Plug

tikismoke commented 9 years ago

Need to add sensor power lost or return.

Nico0084 commented 9 years ago

Tu veux dire quoi, les COMMAND_CLASS_ALARM ? Il faut bien connaitre leur comportement et y'en a pas mal ! Vu la page de config de NodeOn y'a pleins de possibilité ! a réfléchir ;)

tikismoke commented 9 years ago

Heu oui y a une fonction détection de coupure de courant. Je sais pas laquelle ça prend en compte.

Nico0084 commented 9 years ago

Les notifications par COMMAND_CLASS_ALARM sont assez complexes à gérer. Plusieurs values sont affectées dans la lib openzwave d'ou plusieurs notifications qui définissent l'alarm. Il faut gérer cet enchaînement de notifications pour le transcrire en xpl et valeur pour un sensor domogik

Dans la lib openzwave un des paramètres (status=255) du message n'est pas lié à une value, signification à déterminer.

Log détails : 2015-11-24 19:18:12.045 Detail, Node010, Received: 0x01, 0x11, 0x00, 0x04, 0x00, 0x0a, 0x0b, 0x71, 0x05, 0x08, 0x02, 0x00, 0xff, 0x08, 0x02, 0x00, 0x00, 0x00, 0x60 2015-11-24 19:18:12.046 Detail, 2015-11-24 19:18:12.046 Info, Node010, Received Alarm report: type=8, level=2, sensorSrcID=0, type:Power Management event:2, status=255 2015-11-24 19:18:12.046 Detail, Node010, Refreshed Value: old value=0, new value=8, type=byte 2015-11-24 19:18:12.046 Detail, Node010, Changes to this value are not verified 2015-11-24 19:18:12.046 Detail, Node010, Refreshed Value: old value=0, new value=2, type=byte 2015-11-24 19:18:12.046 Detail, Node010, Changes to this value are not verified 2015-11-24 19:18:12.046 Detail, Node010, Refreshed Value: old value=0, new value=0, type=byte 2015-11-24 19:18:12.046 Detail, Node010, Changes to this value are not verified 2015-11-24 19:18:12.046 Detail, Node010, Refreshed Value: old value=254, new value=2, type=byte 2015-11-24 19:18:12.046 Detail, Node010, Changes to this value are not verified

2015-11-24 19:18:12.046 Detail, Node010, Notification: ValueChanged 2015-11-24 19:18:12,046 domogik-ozwave DEBUG Publishing over MMQ , data : {'NetworkID': u'homeid', 'Node count': 4, 'Node sleeping': 1, 'data': {'index': 0, 'units': '', 'type': 'Byte', 'nodeId': 10, 'value': 8, 'commandClass': 'COMMAND_CLASS_ALARM', 'instance': 1, 'readOnly': True, 'homeId': 25485663, 'label': 'Alarm Type', 'genre': 'User', 'id': '72057594211745793'}, u'NodeID': 10, 'Node fail': 0, 'usermsg': 'Value has changed.', 'type': 'value-changed'} 2015-11-24 19:18:12,046 domogik-ozwave DEBUG *\ valueToxPLTrig : None

2015-11-24 19:18:12.047 Detail, Node010, Notification: ValueChanged 2015-11-24 19:18:12,047 domogik-ozwave DEBUG Publishing over MMQ , data : {'NetworkID': u'homeid', 'Node count': 4, 'Node sleeping': 1, 'data': {'index': 1, 'units': '', 'type': 'Byte', 'nodeId': 10, 'value': 2, 'commandClass': 'COMMAND_CLASS_ALARM', 'instance': 1, 'readOnly': True, 'homeId': 25485663, 'label': 'Alarm Level', 'genre': 'User', 'id': '72057594211745809'}, u'NodeID': 10, 'Node fail': 0, 'usermsg': 'Value has changed.', 'type': 'value-changed'} 2015-11-24 19:18:12,047 domogik-ozwave DEBUG *\ valueToxPLTrig : None

2015-11-24 19:18:12.048 Detail, Node010, Notification: ValueChanged 2015-11-24 19:18:12,048 domogik-ozwave DEBUG Publishing over MMQ , data : {'NetworkID': u'homeid', 'Node count': 4, 'Node sleeping': 1, 'data': {'index': 2, 'units': '', 'type': 'Byte', 'nodeId': 10, 'value': 0, 'commandClass': 'COMMAND_CLASS_ALARM', 'instance': 1, 'readOnly': True, 'homeId': 25485663, 'label': 'SourceNodeId', 'genre': 'User', 'id': '72057594211745825'}, u'NodeID': 10, 'Node fail': 0, 'usermsg': 'Value has changed.', 'type': 'value-changed'} 2015-11-24 19:18:12,048 domogik-ozwave DEBUG *\ valueToxPLTrig : None

2015-11-24 19:18:12.048 Detail, Node010, Notification: ValueChanged 2015-11-24 19:18:12,048 domogik-ozwave DEBUG Publishing over MMQ , data : {'NetworkID': u'homeid', 'Node count': 4, 'Node sleeping': 1, 'data': {'index': 11, 'units': '', 'type': 'Byte', 'nodeId': 10, 'value': 2, 'commandClass': 'COMMAND_CLASS_ALARM', 'instance': 1, 'readOnly': True, 'homeId': 25485663, 'label': 'Power Management', 'genre': 'User', 'id': '72057594211745969'}, u'NodeID': 10, 'Node fail': 0, 'usermsg': 'Value has changed.', 'type': 'value-changed'}