Page 1 of 1
IOplus 8 relay board
Posted: Sunday 30 May 2021 9:53
by DUKEII
hey
inputs and outputs are working
only one issue
input as slave on output:
indication on screen is ok
but relay is not switching when the input is used
is there solution for this in Domoticz ?
Re: IOplus 8 relay board
Posted: Sunday 30 May 2021 11:58
by waltervl
Does the slave function work on other devices as expected and only not on the devices connected to the ioplus8 board?
What controls the ioplus8 board devices? Native Domoticz integration, Python plugin or scripting?
Re: IOplus 8 relay board
Posted: Sunday 30 May 2021 12:11
by DUKEII
hey Walter
i've installed these
https://github.com/josefpavlik/domoticz.plugin.ioplus
and have no other devices connected to test the slave function
Re: IOplus 8 relay board
Posted: Sunday 30 May 2021 13:25
by waltervl
I just tested, for me also with Python plugin controlled devices the Sub/Slave function works.
Perhaps you configured it the wrong way? You have to add in the master device to the slave device. See also:
https://www.domoticz.com/wiki/Managing_ ... ve_devices
Re: IOplus 8 relay board
Posted: Sunday 30 May 2021 14:24
by DUKEII
situation
IOPlus - Relay_1 i've added Sub/Slave Devices: IOPlus - Input_1
when the input is low or high , the indication on the domoticz screen is ok for relay and input
but the relay is not switching
Re: IOplus 8 relay board
Posted: Sunday 30 May 2021 14:33
by waltervl
Yes, you are right.
I checked again with real devices and I also see that the slave device widget is switched on but in real it is not....
Perhaps it is related to the Python plugin framework.
Re: IOplus 8 relay board
Posted: Sunday 30 May 2021 14:38
by waltervl
For the time being a dzVents or Blockly script can handle your request (if input 1 = On the set Relay 1 = On)
Re: IOplus 8 relay board
Posted: Sunday 30 May 2021 15:21
by DUKEII
it works
found it here : setup-more options-events
and created a script as mentioned
thank you Walter
Re: IOplus 8 relay board
Posted: Sunday 06 June 2021 10:18
by DUKEII
hey
using the " and " in Blockly always give this error in the log file
2021-06-06 10:16:41.066 Error: EventSystem: Lua script error (Blockly), Name: Script #1_1 => [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: 'then' expected near 'comparevariable'
what can I do to fix this ?