summaryrefslogtreecommitdiffstats
path: root/prometheus/usr/local/bin/midnight_tidy
blob: 27400dd99aa571affd3b16b4aa93c5e17398638a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
set -x

/usr/local/bin/vent close

for i in 2fl_main_radiator 2fl_stair_radiator bathroom_radiator bedroom_radiator hall_radiator kitchen_radiator kstudy_radiator laundry_radiator spare_bedroom_radiator dd_radiator1 dd_radiator2 dd_radiator3 ; do
	/usr/local/bin/set_radiator_target $i 10
done

for i in kitchen_left/POWER kitchen_right/POWER bathroom/POWER1 bathroom/POWER2 front_door/POWER  2ndfl_3gang_switch/POWER1  2ndfl_3gang_switch/POWER2 2ndfl_3gang_switch/POWER3; do
	mosquitto_pub -h 127.0.0.1 -t cmnd/$i -m 0
	sleep 1
done