File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -468,6 +468,29 @@ play_uic_node_OnOff_()
468468}
469469
470470
471+ play_uic_s2v2_node_ ()
472+ {
473+ type=" OnOff"
474+ node_cli_ H
475+ node_cli_ n
476+ echo " info: Play $type on $nodeunid "
477+
478+ command=" EnableNls"
479+ pub=" ucl/by-unid/$nodeunid /State/Commands/$command "
480+ message=" {}"
481+ log_ " TODO: Expect response in MQTT, workaround by looking at debug log"
482+ log_ " TODO: https://github.com/SiliconLabsSoftware/z-wave-engine-application-layer/issues/31"
483+ pub_ " $pub " " $message " " "
484+ sleep 1
485+ grep ' on_nls_state_set_v2_send_complete' " ${zpc_log} " || die_
486+ grep ' on_nls_state_get_v2_send_complete' " ${zpc_log} " || die_
487+ zpc_cli_ " attribute_store_log_search" " NLS state" \
488+ && grep ' NLS state ............................................... 1 ' \
489+ " ${zpc_log} " \
490+ || die_ # 2 expected
491+ }
492+
493+
471494play_uic_ ()
472495{
473496 play_uic_net_add_node_
@@ -476,6 +499,11 @@ play_uic_()
476499 play_uic_net_add_node_
477500 play_uic_node_OnOff_
478501 play_uic_net_remove_node_
502+
503+ play_uic_net_add_node_
504+ play_uic_s2v2_node_
505+ play_uic_OnOff_node_
506+ play_uic_net_remove_node_
479507}
480508
481509
You can’t perform that action at this time.
0 commit comments