mega-20190116 + relay (openhab)

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
sedini
New user
Posts: 8
Joined: 13 Jan 2019, 22:40

mega-20190116 + relay (openhab)

#1 Post by sedini » 21 Jan 2019, 11:42

Hello all
I have problen with relay (I can't control it) I add switch in espeasy but I cant make it work. below I add my config hope someone help me find solution.

in my router I see device name "czujkap-1" maybe I miss that number "1" ?

https://ibb.co/tKPFVk4
https://ibb.co/NnsWJ70
https://ibb.co/hWN5kqL
https://ibb.co/hmLyxSc
https://ibb.co/pnm2w9q

sedini
New user
Posts: 8
Joined: 13 Jan 2019, 22:40

Re: mega-20190116 + relay (openhab)

#2 Post by sedini » 22 Jan 2019, 18:46

I manage to get it work but…

I use:
MQTT Command: “/czujkap/gpio/12”
ON Command set to 1
OFF Command set to 0
When I turn switch on in paper ui OH relay turn on but When I switch to off relay stay ON (red light still on)
What is the proper way to read status of relay/switch I use now:
“/czujkap/gpio/12/state” But I’m sure its wrong can someone help me to get it work ?

I think when I set gpio to 1 it change state to output and when I try gpio,0 nothing happens because gpio is still on output can someone explain me how can I turn off that relay ?

after use command in browser:
http://192.168.1.6/control?cmd=status,GPIO,12
I get:
{
“log”: “”,
“plugin”: 1,
“pin”: 12,
“mode”: “output”,
“state”: 0
}

Post Reply

Who is online

Users browsing this forum: No registered users and 123 guests