You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We were just walking through the current functionality and came across two problems:
The procedure never worked as intended in the first place
The name of the procedure doesn't correspond with the functionality which you can read in the code
The intended functionality was to be able to invert the state of the relay after some time. We just had a discussion over what could be the usage of such function. And since you are historically the first person trying to use this function, I would like to ask you about your intention so we can fix it properly. So, why do you need such function? What is your usecase?
The second problem is the naming, which suggests "set the relay <param_1> to value <param_2> for the <param_3> period of time". Basically this would be a pulse generator which is being used in automation much more frequently than the function described above, and in our humble opinion, should be the correct behaviour.
Thank you for your reply in advance and have a nice day,
Martin
My use-case is a jalousie/sunblinder switch. I planned switch engine on just for time until jalousie is pulled up/down and then turn it off. I have installed Somfy engines which have automatic switch off on fully open/closed state, but I can control jalousie from both button via direct switch and via Evok API and I need avoid situation when both directions (up and down) are switched on. Or at least decrease propability of this situation.
An alternative good solution would be to have an "exclusive flag" for group of relay outputs (implemented in direct switch) to ensure up and down switch is on in the same time. Hardware buttons have this "feature" by default, but when it becomes controlled by hardware buttons&API (e.g. too strong wind or blind all windows in house in the same time).
So far I worked with solution which proxies Evok events to MQTT [1] bus where several bots can listen including bot that can switch off the "up" relay if "down" direction was requested (but I don't have it fully working ATM).
Prerequisites
Log files needed
Include the output of the following commands on your Neuron/UniPi device:
https://pastebin.com/jgvXDrQ7
(I use xS40 extension, which looks to work same (nearly fine) as main module now, so I'm not sure if log entries are related)
Description
JSON RPC method
relay_set_for_time
doesn't work for me, it switch the output (which is OK), but does not return it back after timeout.I compared my code to examples in forum and API docs and I'm either missing something or it doesn't work for me.
Steps to Reproduce
Expected behavior: Light (relay 2_11) will be switched off after 10 secs.
Actual behavior: Light (relay 2_11) stays on.
The text was updated successfully, but these errors were encountered: