Here's a way to activate the real feed modes:
Code:"on_cmd": "/usr/bin/curl -X POST --retry 5 --max-time 2 --retry-connrefused --fail --silent --show-error --user username:pw 'http://apex/status.sht?FeedSel=0&FeedCycle=Feed'", "off_cmd": "/usr/bin/curl -X POST --retry 5 --max-time 2 --retry-connrefused --fail --silent --show-error --user username:pw http://apex/status.sht?FeedCycle=Feed%20Cancel", "state_cmd": "/usr/bin/curl --retry 5 --max-time 2 --retry-connrefused --fail --silent --show-error http://apex/cgi-bin/status.xml | grep -i '<name>Feeding</name>' -A2 | grep -E -i 'ON'"
FeedSel=0 for FeedA
FeedSel=1 for FeedB
FeedSel=2 for FeedC
FeedSel=3 for FeedD
One detail is that in order for the state_cmd to work, I had to make a virtual outlet called "Feeding" that turns on whenever any of the feed modes are on. I couldn't find a way to query for the feed status without making an extra outlet. The programming is just:
Code:Set Off If FeedA 000 Then On If FeedB 000 Then On If FeedC 000 Then On If FeedD 000 Then On
Yes, I had to do the Virtual Outlet as well. Once I created that, activating feed was easy. I also created a virtual outlet for water changes and it sure makes my life way easier! The only thing is you need to program HomeKit to turn the Feed outlet back OFF after you are done. Otherwise you have to manually remember to ask Siri.
This is a far better solution. Thank you!!!
Last edited: