After solving my problem mentioned in comment #185 I want to take my script one step further. I would like to use the plugin to write a command to write a value in my thermostat.
In order to do this I must send a command with a value from a virtual device. Is this possible?
This is what I know so far
Dim IPP As Object = hs.Plugin("DR IP/Serial PlugIn")
IPP.Send("write all room 8", "brainbox")
The "write all room 8" command is fixed know
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x01 0x01 0x00 0x1a 0x08 0x00
but I would like to build up like this
10 bytes username |10 bytes password | 0x01 | 0x01 |0x0 | 1 bytes frame length| 1 byte roomnumber | nbytes data
I would like use 3 variables (virtual devices) to make the command variable.
Is it possible to write a command which is not written in the setup part of the plugin but is determent by the script itself?
ps. good to hear about the HS3 development, I will certainly switch when this plugin is available (I cant do without it)
In order to do this I must send a command with a value from a virtual device. Is this possible?
This is what I know so far
Dim IPP As Object = hs.Plugin("DR IP/Serial PlugIn")
IPP.Send("write all room 8", "brainbox")
The "write all room 8" command is fixed know
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x01 0x01 0x00 0x1a 0x08 0x00
but I would like to build up like this
10 bytes username |10 bytes password | 0x01 | 0x01 |0x0 | 1 bytes frame length| 1 byte roomnumber | nbytes data
I would like use 3 variables (virtual devices) to make the command variable.
Is it possible to write a command which is not written in the setup part of the plugin but is determent by the script itself?
ps. good to hear about the HS3 development, I will certainly switch when this plugin is available (I cant do without it)
Comment