Interesting, I have tried using "Hrelay1on.txt,main" but noticed the "main" was an optional arg.
I got a script to work using:
Sub main()
hs.SetDeviceValueByRef 711, 100, True
val = "On Was written to Outside Hrelay1"
hs.WriteLogEx ret, val, "#000080"
end sub
JSON1Refresh is a button:
Column1Section2-1Left=High Relay 1
Column1Section2-1Middle=[Device,711] {replace, "<img","<img width=""32"""}
Column1Section2-1Right=[button,On,JSON1Refresh] [button,Off,JSON2Refresh]
Column1Section2-1Height=
Thanks
I got a script to work using:
Sub main()
hs.SetDeviceValueByRef 711, 100, True
val = "On Was written to Outside Hrelay1"
hs.WriteLogEx ret, val, "#000080"
end sub
JSON1Refresh is a button:
Column1Section2-1Left=High Relay 1
Column1Section2-1Middle=[Device,711] {replace, "<img","<img width=""32"""}
Column1Section2-1Right=[button,On,JSON1Refresh] [button,Off,JSON2Refresh]
Column1Section2-1Height=
Thanks
Comment