I’ve been playing with the X10 plugin to get it working better for me (its invisible in the UI and hangs up regularly) plus as a good example for learning about Vera plugins. I have a few X10 modules around and my alarm system can read/write X10 so I could pick up all these sensors.
It’s been harder than I expected! Managed to develop a json file to make the Cm11 device appear in the standard UI. Also getting close to working out why it is hanging up and have implemented a work around that seems to improve the situation.
Next step is to develop a custom device for each module so that X10 devices can be added on the fly.
How do I build a device definition that creates persistent variables in the device so that I can store the device address?
I’ve put a variable_set command in the lua file referenced in the implementation file and this creates the variable which is visible in the UI under advanced/variables. However I presume it will reset on a engine restart. How do I make the variables persistent and auto created on device creation? Do I do a test variable_get and then a variable_set or is there a better way?
I see this type of thing in the S files which I tried to copy but it did not create the variables:HouseCode string Address string