Page 1 of 1

Error: User: Admin, switch not found (idx=0)!

Posted: Wednesday 17 February 2021 11:02
by continent
Hello everybody,

I have the next issue.

An ESP with 6 relays for 6 valves in the different rooms.

In Domoticz I make 6 virtual switches activated en give
them all 2 url's, open en close.
domoticz.jpg
domoticz.jpg (26.41 KiB) Viewed 442 times
Every time when a switch is activate I get the error
because the IDX of the ESP is zero (0).
esp.jpg
esp.jpg (42.42 KiB) Viewed 442 times
But when i fill in de IDX in the switch the realys bounced.

Re: Error: User: Admin, switch not found (idx=0)!

Posted: Wednesday 17 February 2021 15:13
by erem
this works for me with espeasy mega-20190404

in espeasy rules

Code: Select all

On TurnOn do		// from Domoticz
  gpio,2,0
EndOn

On TurnOff do		// From Domoticz
  gpio,2,1
EndOn
esp device
1.jpg
1.jpg (45.48 KiB) Viewed 436 times
2.jpg
2.jpg (95.54 KiB) Viewed 436 times
in domoticz
3.jpg
3.jpg (55.18 KiB) Viewed 436 times

Re: Error: User: Admin, switch not found (idx=0)!

Posted: Wednesday 17 February 2021 15:52
by continent
Hello erem,

I think that this issue is under control...

I checked Inversed Logic and now there
are no more error or bouncing relay(s).

For now verry thanks.
esp 2.jpg
esp 2.jpg (12.45 KiB) Viewed 434 times

Re: Error: User: Admin, switch not found (idx=0)!

Posted: Wednesday 17 February 2021 16:24
by continent
Hello again,

It works perfect, the rules were not necessary.

Thanks! Con.