Yeah, if you got the A1T connected to your router and know their IPs, put those ip adresses in your browser instead of a url, that should get you to their internal menu. Check that they are working.
Then in reefpi, you first need to set up a driver, then a connector, then equipment.
First, in reefpi-->configuration-->drivers add a tasmota-http driver per plug with their respective ip-addresses.
Then, in reefpi-->configuration-->connectors-->Outlets add an outlet for each driver you just created, for pin just use 0.
Then in reefpi-->equipment add a piece of equipment for each outlet you just created.
Then you should get an on off switch per socket.
For the energeenie/silvershield/gembirds you first google "sispmctl" and install it on your pi from sourceforge
then create the following file "script.sh" in /home/pi/outlets/ on your pi
(or whatever your home directory on your pi is instead of /home/pi)
Code:
outD1=$(cat /home/pi/outlets/outD1)
outD2=$(cat /home/pi/outlets/outD2)
outD3=$(cat /home/pi/outlets/outD3)
outD4=$(cat /home/pi/outlets/outD4)
if [ "$outD1" = 1 ]
then
sispmctl -o 1
else
sispmctl -f 1
fi
if [ "$outD2" = 1 ]
then
sispmctl -o 2
else
sispmctl -f 2
fi
if [ "$outD3" = 1 ]
then
sispmctl -o 3
else
sispmctl -f 3
fi
if [ "$outD4" = 1 ]
then
sispmctl -o 4
else
sispmctl -f 4
fi
(not the most elegant code, but its simple and works)
then create four filedrivers in reefpi with the /home/pi/outlets/outD1 , outD2, outD3, outD4 files, and again connectors and equipment after that
then type crontab -e in the console of the pi and add the following line at the end and save:
Code:
* * * * * /bin/bash -c ' for i in {1..6}; do /home/pi/outlets/script.sh ; sleep 10; done'
This will run that script every 10 seconds, which is fine on a pi zero w. You can run it more often, then there'll be less delay when switching, but that might bog down the pi, probably not an issue if youve got one of the better ones though.
If youve got more than one of those powerbars, you could make more complicated sispmctl commands as listed on the sourceforge page and run multiple at the same time.