Domoticz Output by name not gpio?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
daxkamala
Normal user
Posts: 15
Joined: 17 Aug 2016, 09:12

Domoticz Output by name not gpio?

#1 Post by daxkamala » 10 Apr 2017, 11:33

I would find it very helpful to switch outputs by name rather than by the /gpio/x syntax. Eg, /device/power/relay which is set up in devices as such.
Is this possible and am I just missing something?
Thanks

User avatar
toffel969
Normal user
Posts: 469
Joined: 03 Jan 2017, 10:58
Location: Germany

Re: Domoticz Output by name not gpio?

#2 Post by toffel969 » 16 Apr 2017, 00:06

daxkamala wrote: 10 Apr 2017, 11:33 I would find it very helpful to switch outputs by name rather than by the /gpio/x syntax. Eg, /device/power/relay which is set up in devices as such.
Is this possible and am I just missing something?
Thanks
You can create an event on the ESP (rules) that is then triggered by calling the event. Just create an event

Code: Select all

on switch_lamp_on do 
gpio 14,1
Endon

On switch_lamp_off do
gpio 14,0
Endon
Then you can trigger by

Code: Select all

event,switch_lamp_on
from either Tools pages/HTTP/Serial/UDP
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8

daxkamala
Normal user
Posts: 15
Joined: 17 Aug 2016, 09:12

Re: Domoticz Output by name not gpio?

#3 Post by daxkamala » 17 Apr 2017, 19:08

God idea. Thanks!
I've been hacking around with the plugin to try and get it working.

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests