Turn Switch1 ON only after Switch2 turned OFF #22047
Replies: 3 comments 6 replies
-
Why ? |
Beta Was this translation helpful? Give feedback.
-
You could do something like sending a combined to command to one plug to switch power off, and then have it send a command to the other device to power on. But with no explanation of what "confirmed" means in operational terms, and what pause may be acceptable if slowing things down, too few details for specific suggestions. |
Beta Was this translation helpful? Give feedback.
-
OK, let's maybe not get hung up on the expression "confirmation". I don't need an audit trail or so. |
Beta Was this translation helpful? Give feedback.
-
Question:
How can I send a request to Switch1 that will first reliably turn Switch2 off before turning Switch1 on?
Context:
For my rudimentary home PV battery charging installation I would like to switch on the battery charger when my net export to the grid exceeds a certain limit (i.e. when I have enough surplus power I would otherwise loose). When the surplus falls below a certain limit I want to switch the charger off again. At other times (e.g. during the night) I want to activate a power inverter supplying battery electricity to my home grid. Obviously, I do not want to charge the battery while it feeds power to the grid via the inverter. So I want to make really sure that the connection of the inverter to the home grid is off when the charger is switched on. And when the inverter gets connected, the charger shall be switched off before.
Solution Proposal:
I was contemplating using two Tasmota plug switches. One for the charger, the other for the inverter. When my RaspberryPi detects an overall export of more than the configured threshold, I could send an HTTP request to Switch2 (inverter) to turn it off and afterwards send a second request to Switch1 (charger) to turn it on. But the script handling this would need to wait until the Off status of Switch2 was confirmed and only then turn Switch1 on. This would block the script for some (timeout) time. So maybe placing this within the Tasmota switches would be better.
Many thanks for your help!
Jan
Beta Was this translation helpful? Give feedback.
All reactions