I re-did this DomoticzLights to use more buttons/scene's now and it's refreshing the state from Domoticz but there are still a few things i would like to have in the script:Toonz wrote:Hi all,
'final' version on my app to control the two klikaanklikuit lights via domotics. Don't worry, no April 1st joke.![]()
changelog:
- you can now click on the light icons on the tile as well to switch the lights on or off
- the new status of the lights is shown directly on the tiles as well as on the main screen.
Only the 'last seen' date-time on the main screen will be updated during the regular refresh cycle via domoticz every xx seconds (timer in DomoticzApp.qml)
Todo (at some time, not very soon):
- Implement a mechanism for Domoticz to trigger a screen refresh at Toon when lights are switched by Domoticz or the klikaanklikuit switches
Regards,
Toonz
Retrieve "Status" and "Name" from a domoticz group for example
Already did this to the App:
- Got 4 switch buttons on the screen (left column)
- Got 4 scene/group buttons on the screen (right column)
- Removed LastUpdate date-time, not usefull for my case
- Tile removed as it can only show 2 lights and the name wasn't retreived.
- changed icon's
- created "property string" for hostname/port so only 1 change is needed to update them.
Todo:
- shrink down the code used for the icons
- retrieve scene/group name