Page 1 of 1
Virtual switch to change device parameter
Posted: Sunday 19 February 2017 17:19
by jaha
Hi
I wanna make a virtual device (switch) that changes a device parameter of my fibaro wall plug (the led ring) Is this possible and how?
Thanks in advance!

Re: Virtual switch to change device parameter
Posted: Monday 20 February 2017 11:08
by jaha
In vera you could send this via lua is there a smilar way in domoticz? luup.variable_set( "urn:micasaverde-com:serviceId:ZWaveDevice1", "VariablesSet", "12,1d,15", 48 )
Re: Virtual switch to change device parameter
Posted: Thursday 23 February 2017 19:54
by jaha
Bump, anybody?

Re: Virtual switch to change device parameter
Posted: Thursday 23 February 2017 22:53
by Nautilus
jaha wrote:Bump, anybody?

Did you try searching? There's been some discussion about this before, at least:
viewtopic.php?f=4&t=15141&p=111305&hili ... ng#p111305
viewtopic.php?t=8605
Hope this helps

Re: Virtual switch to change device parameter
Posted: Friday 24 February 2017 15:51
by jaha
Thank you got it working when I paste the url in the browser byt cant got i working with a switch action or a switch selector by trying to post this:
https://127.0.0.1/json.htm?type=command ... lvbg%3D%3D
Should https work with switch actions? I also have excluded the 127.0.0.* from auth.
Re: Virtual switch to change device parameter
Posted: Friday 24 February 2017 21:17
by Nautilus
jaha wrote:
Thank you got it working when I paste the url in the browser byt cant got i working with a switch action or a switch selector by trying to post this:
https://127.0.0.1/json.htm?type=command ... lvbg%3D%3D
Should https work with switch actions? I also have excluded the 127.0.0.* from auth.
Sorry, I don't use it myself so no idea to advance the cause further

Is http
s necessary by the way?
Re: Virtual switch to change device parameter
Posted: Sunday 26 February 2017 12:05
by jaha
Nautilus wrote:jaha wrote:
Thank you got it working when I paste the url in the browser byt cant got i working with a switch action or a switch selector by trying to post this:
https://127.0.0.1/json.htm?type=command ... lvbg%3D%3D
Should https work with switch actions? I also have excluded the 127.0.0.* from auth.
Sorry, I don't use it myself so no idea to advance the cause further

Is http
s necessary by the way?
Yes of course its encrypted

Re: RE: Re: Virtual switch to change device parameter
Posted: Sunday 26 February 2017 16:32
by RayAmsterdam
jaha wrote:Nautilus wrote:jaha wrote:
Thank you got it working when I paste the url in the browser byt cant got i working with a switch action or a switch selector by trying to post this:
https://127.0.0.1/json.htm?type=command ... lvbg%3D%3D
Should https work with switch actions? I also have excluded the 127.0.0.* from auth.
Sorry, I don't use it myself so no idea to advance the cause further

Is http
s necessary by the way?
Yes of course its encrypted

Why do you want to encrypt it when you keep the command in your own network, even on the same machine??
Re: Virtual switch to change device parameter
Posted: Sunday 26 February 2017 16:34
by RayAmsterdam
Btw, I am missing the port number in your json URL.
Re: Virtual switch to change device parameter
Posted: Sunday 26 February 2017 19:19
by jaha
RayAmsterdam wrote:Btw, I am missing the port number in your json URL.
Just like the extra protection if somebody unlikely would hack in to my network. (I'm a network engineer) Tried with the port but doesn't help using default 443 for SSL.