Hi Akbooer:
I’d be more than happy to explain. I use an App called Homewave on my iPhone. One if its abilities is to change the icon color to reflect the scene status. If a scene is active, the circle changes to white. I’ve attached a screenshot of the two scenes. In this example we?re comparing scene “GR Lamps On” and scene “Accent Lights On”. Both scenes are active but only “GR Lamps On” is indicating in Homewave that it is.
Using Ronluna’s formula, I went to the (controller_ip:3480/data_request?id=sdata) location in Vera to determine my Scene ID by searching for the name. Then I went to the (controller_ip:3480/data_request?id=status&output_format=json) location and searched for my Scene ID the results of which are below:
First I’ll show you “GR Lamps On” data which is the scene that IS displaying correctly in Homewave:
I go to (controller_ip:3480/data_request?id=sdata) and search for ?GR Lamps On?
The result is: { “name”: “GR Lamps On”, “id”: 85, “room”: 1, “state”: -1, “comment”: “”, “active”: 1 }
Then I go to (controller_ip:3480/data_request?id=status&output_format=json) and search for my Scene ID number, in this case its: ID:85
{ “id”: 85, “Jobs”: [ ], “tooltip”: { “display”: 0 }, “status”: -1, “active”: true },
Note how the last part of the string says “active”: true.
Now when I follow the same steps for scene “Accent Lights On”, the scene that is NOT displaying correctly in Homewave I get this:
{ “active”: 0, “name”: “Accent Lights On”, “id”: 87, “room”: 1, “state”: -1, “comment”: “” }
{ “id”: 87, “Jobs”: [ ], “tooltip”: { “display”: 0 }, “status”: -1, “active”: false }
Note how the last part of the string says “active”: false.
This is what I need help with. I would like to have LUA code that can force the proper scene status or alternatively find the reason why its not working.
Thanks again for looking into this.