How to control relay extension board via EVOK?
-
Hi,
I've bought UniPi 1.1 and extension board with relays.How i can control this extension board relays via EVOK API?
-
To make extension relay module (EMO-R8) working with EVOK below steps needs to be done:
- Open /etc/evok.conf file
- Uncomment relays assigned to EMO-R8:
Each this line begins with a character ;
This character must be removed for all lines related to the configuration for EMO-R8:; ;Example of 8xRelay extension module addon (EMO-R8) on address 0x21 ; [MCP_2] i2cbus = 1 address = 0x21 [RELAY_9] mcp = 2 pin = 7 [RELAY_10] mcp = 2 pin = 6 [RELAY_11] mcp = 2 pin = 5 [RELAY_12] mcp = 2 pin = 4 [RELAY_13] mcp = 2 pin = 3 [RELAY_14] mcp = 2 pin = 2 [RELAY_15] mcp = 2 pin = 1 [RELAY_16] mcp = 2 pin = 0- Save /etc/evok.conf file
- Restart evok
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login