Editing device_json

Hello,

I have a glass break sensor and I am trying to edit its json (D_GlassBreakSensor.json), but I don’t want to replace the original one - instead, I would like to create a variant (D_GlassBreakSensor-2.json).
I have done that, and uploaded it via UI7’s Apps > Develop Apps > Luup files upload function.
It does indeed appear among the Luup files.

However, when I then go and edit a specific device (Advanced > Params) and edit the device_json field to match the new filename, all I get is that the device disappears from the list of devices, reappears a bit later, then after a few more minutes if I go and inspect the device_json field it’s been reset to the original value.

How am I supposed to tell Vera Edge that I want a specific device to use a different json file?

Also, do you have any pointers to documentation on the json file itself will all the valid keys and values?
Thank you!

Try here http://wiki.micasaverde.com/index.php/Luup_plugins:_Static_JSON_file

Thank you! This is very useful.

(I still haven’t figured out how to tell Vera to use a different json for a specific device, but based on other forum posts I understand that might not be possible. But all works fine if I edit the original json.)

I still haven't figured out how to tell Vera to use a different json for a specific device,

You Can’t!!!
The device.son file is selected by the Device Type …
When you change the device JSON file you are changing it for ALL devices that use the same device type.

I am dealing with the exact situation as described in this post. I needed to add an extra button to user interface of my remotec split controller, to implement more advanced control (other than the generic ones defined in thermostat json file in Vera Edge). However, when I make changes to .json file and upload it in Vera, it disappears and after an On/Off it comes back with its default initial .json file.

When you change the device JSON file you are changing it for ALL devices that use the same device type.

I have an MCO thermostat as well, and both of the devices use the same .xml and .json files. Does this mean that I need to change the json file of both devices? Or should I create a new device and give it my edited json file? Then, how should I add remotec IR extender in Vera so that it uses my edited plugin, and not the generic one?

I appreciate any feedback. I want to learn more about writing plugins in Vera.
Thanks!