I’ve been trying to develop a plugin which handle some scenes, the fact is that:
I externally create some scenes (with HTTP call), it creates successfully and I can see it inside the UI.
Then I ask my plugin to list the existent scenes accessing luup.scenes variable but it seems not to be updated with the new scenes I’ve added. Until I do a reload the values inside luup.scenes don’t appear updated.
Is there any command to make luup variables update or refresh?
[tt]luup.scenes[/tt] has very minimal information. If you’re wanting programmatic access to the latest status the you’re going to have to do Luup requests with HTTP to 127.0.0.1.
This seems like an advanced question for a first post!!
I know that luup.scenes has very minimal information but is more than enough for what I want to do, but it’s usless unless it can be refreshed/updated without having to reload luup.
Unfortunately I guess this would be the only solution, to reload the whole luup engine so I think I’m going to parse the sdata / user_data HTTP reply.
However I’d appreciate any information regarding luup.scenes update/refresh.
I’m not sure exactly what you’re doing, but it seems to me that if you’re updating scenes with HTTP requests, then you could, in principle, update [tt]luup.scenes[/tt] yourself, since you know what you’ve done?
PD: First post does not mean I'm a newbie ;)
No sleight intended!
Best Home Automation shopping experience. Shop at Ezlo!