-
Posts
7 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Gallery
Downloads
Events
Posts posted by Parity
-
-
do you know how the RELAY works to update the UI on the devices? I have tried the following:
C4:SendToProxy(2, "OPEN", {}, "NOTIFY")C4:SendToProxy(2, "CLOSE", {}, "NOTIFY")
-
I have created a proxy driver to control 4 relays. 5 connections: Connection 1 for RS232; Connection 2, 3, 4, 5 for Light (V2) devices.
Everything is working well including scenes, etc. The only thing is the UI updating on the various IOS devices.
According to Proxy and Protocol Guide 2.9.0 Lighting (V2) protocol Notifications the following should be used to notify the light on binding 2 is OFF or ON:
C4:SendToProxy(2,"LIGHT_LEVEL",0,"NOTIFY")
C4:SendToProxy(2,"LIGHT_LEVEL",100,"NOTIFY")
Neither changes the state of the lights on the UI or in Composer. I have tried various combinations such as
local tParams = {}
tParams["LEVEL"] = 0
tParams["STATE"] = "off"C4:SendToProxy(2,"LIGHT_LEVEL",0,"NOTIFY")
C4:SendToProxy(2,"LIGHT_LEVEL","0","NOTIFY")
C4:SendToProxy(2,"LIGHT_LEVEL",tParams,"NOTIFY")
C4:SendToProxy(2,"LIGHT_LEVEL", {LEVEL=0}, "NOTIFY")C4:SendToProxy(2,"LIGHT_LEVEL_CHANGED",tParams,"NOTIFY")
C4:SendToProxy(2, "LIGHT_LEVEL_CHANGED", {LEVEL=0}, "NOTIFY")
C4:SendToProxy(2, "LIGHT_LEVEL_CHANGED", 0 , "NOTIFY")
Light Switch Driver
in Programming with Composer
Posted
Thanks Alan. You're a star!