#!/bin/bash # # heater-on.sh V. 20220805 by Migele # This script is called by pvbin.php if there's enough solar energy to # switch on a heater. # This script simply broadcasts a mqtt message to a broker, the broker # deliveres it to subscribed hardware that switches on a heater. # It's sister is heater-off.sh # This script should be called not shorter than every 6 minutes # (300 times/day usage) to prevent problems with the terms of # solaredge.com. # mosquitto_pub -t haus/pvheater -m "an" exit 0