Virtual switch to change device parameter

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
User avatar
jaha
Posts: 55
Joined: Thursday 26 January 2017 10:26
Target OS: Linux
Domoticz version:
Contact:

Virtual switch to change device parameter

Post 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! :D
User avatar
jaha
Posts: 55
Joined: Thursday 26 January 2017 10:26
Target OS: Linux
Domoticz version:
Contact:

Re: Virtual switch to change device parameter

Post 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 )
User avatar
jaha
Posts: 55
Joined: Thursday 26 January 2017 10:26
Target OS: Linux
Domoticz version:
Contact:

Re: Virtual switch to change device parameter

Post by jaha »

Bump, anybody? :D
Nautilus
Posts: 722
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Finland
Contact:

Re: Virtual switch to change device parameter

Post by Nautilus »

jaha wrote:Bump, anybody? :D
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 :)
User avatar
jaha
Posts: 55
Joined: Thursday 26 January 2017 10:26
Target OS: Linux
Domoticz version:
Contact:

Re: Virtual switch to change device parameter

Post by jaha »

Nautilus wrote:
jaha wrote:Bump, anybody? :D
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 :)

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.
Nautilus
Posts: 722
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Finland
Contact:

Re: Virtual switch to change device parameter

Post by Nautilus »

jaha wrote:
Nautilus wrote:
jaha wrote:Bump, anybody? :D
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 :)

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 https necessary by the way?
User avatar
jaha
Posts: 55
Joined: Thursday 26 January 2017 10:26
Target OS: Linux
Domoticz version:
Contact:

Re: Virtual switch to change device parameter

Post by jaha »

Nautilus wrote:
jaha wrote:
Nautilus wrote:
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 :)

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 https necessary by the way?
Yes of course its encrypted :)
RayAmsterdam
Posts: 115
Joined: Sunday 11 January 2015 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: RE: Re: Virtual switch to change device parameter

Post 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 https 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??
RayAmsterdam
Posts: 115
Joined: Sunday 11 January 2015 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Virtual switch to change device parameter

Post by RayAmsterdam »

Btw, I am missing the port number in your json URL.
User avatar
jaha
Posts: 55
Joined: Thursday 26 January 2017 10:26
Target OS: Linux
Domoticz version:
Contact:

Re: Virtual switch to change device parameter

Post 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.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest