hello,
It would be very nice to add roomplan support to blocky, or way to show hide switches (maybe only add hidden/visible operator).
I have few switches that are usefull only in some condition and this would be great way to make stuff clean.
Blocky add show hide switch
Moderators: leecollings, remb0
Re: Blocky add show hide switch
I have the same question (I think), can I hide/show switches depending on their status (e.g. on -> show)? I know that if I add $ to the beginning of the switch name is will become hidden but how can I do that from a script?
For me it's find using lua (preferably dzVents).
For me it's find using lua (preferably dzVents).
- Egregius
- Posts: 2592
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: Blocky add show hide switch
Use the developer console of a good browser to find the url.
You can change the name with a url like this (from Switches tab):
From the device table the url is even cleaner:
Attention: renaming a device requires that your scripts work with both NAMEOFSWITCH and $NAMEOFSWITCH
Could be a difficult way to go...
You can change the name with a url like this (from Switches tab):
Code: Select all
http://192.168.2.10:8084/json.htm?type=setused&idx=5&name=NAMEOFSWITCH&description=&strparam1=&strparam2=&protected=false&switchtype=0&customimage=5&used=true&addjvalue=0&addjvalue2=0&options=
Code: Select all
http://192.168.2.10:8084/json.htm?type=command¶m=renamedevice&idx=5&name=NAMEOFSWITCH
Could be a difficult way to go...
Re: Blocky add show hide switch
Great - thanks!
In my script (dzVents) I'm using the ID to identify the switch and hopefully avoid problems with different names...
In my script (dzVents) I'm using the ID to identify the switch and hopefully avoid problems with different names...
Code: Select all
return {
..
on = {
--'Test_Switch',
--'$Test_Switch',
3
},
execute = function(domoticz,switch)
..
Who is online
Users browsing this forum: No registered users and 1 guest