Rob Pearce
58999c9f5c
fix typoes
...
now including global problems (like "aircon on but doesnt need to be") in airconproblem[] list
more human readable problem descriptions (to help with telegram notifications)
don't send telegram notifications when in dry run mode
don't send telegram notifications when killfile is active
add some telegram debugging to log file
2023-12-09 08:47:07 +11:00
Rob Pearce
395a9502c0
Agg -g option to send action notifications via Telegram API.
...
Fixed some cosmetic errors in logfile.
2023-12-02 09:51:56 +11:00
Rob Pearce
091aa8aa17
Killfile can now contain a unixtime, after which it expires.
2023-11-25 13:12:56 +11:00
Rob Pearce
2255525436
Remive pymyair mode - just use direct JSON API.
...
Remove -P and -x args
always require jq
2023-10-22 12:19:33 +11:00
Rob Pearce
0a8d0f8e3e
Removed requirement for pymyair - default is now to call json api directly.
2023-09-03 20:59:35 +10:00
Rob Pearce
f945018efb
Added trial '-j' option to bypass myair python script and call api directly.
2023-09-03 16:27:53 +10:00
Rob Pearce
4bfc710a54
Suppress python urllib3 "notopenssl" warning
2023-09-03 12:32:37 +10:00
Rob Pearce
20452ec0f3
bugfix: action logging & arping were broken
2023-05-27 06:42:21 +10:00
Rob Pearce
ee8770dfbd
ruledb should default to 0!
2023-04-10 21:18:10 +10:00
Rob Pearce
c41c57e228
Fix -A option
...
Add -b option to help debug time-based rule processing
2023-04-10 19:52:05 +10:00
Rob Pearce
3f31ede396
Another fix for zone owner detection
2022-06-28 17:16:21 +10:00
Rob Pearce
f1b8a206c5
Fix tabs
2022-06-28 10:14:59 +10:00
Rob Pearce
7e4494fa2a
Fixed device detection
...
Added -a arg to specify arping location
Fall back to ping if arping unavailable
Put usage text in alphabetical order
Fix device name length detection in -W mode
2022-06-28 10:06:06 +10:00
Rob Pearce
cbb62548fc
Fix display of rules missing day when format is "@day;xxxx-yyyy"
2022-06-16 19:21:32 +10:00
Rob Pearce
e7fcc08091
Tweak method calculating "perfect" temperature so that we heat/cool until a little PAST the midpoint rather than before.
...
Modify device check to be faster and more accurate
More verbosity when not in cron mode
2022-06-14 21:09:56 +10:00
Rob Pearce
1030b88acb
improve -W option
2022-05-31 19:20:27 +10:00
Rob Pearce
3f3dbaa977
Fix bug where typo in rc file would cause zone owners to be incorrectly assigned
2022-05-29 21:36:08 +10:00
Rob Pearce
e16f18e7da
Add concept of a "perfect" temperature when a zone's temperature is within 25% of the desired range midpoint
...
If all zones are "perfect", turn the system off
2022-05-29 10:27:40 +10:00
Rob Pearce
b5dd14efdc
bugfix: make zone device owners actuall work properly
...
bugfix: ignoring zones now actually works properly
improve human-readable rule output
remove zownerperson[] which is never actually used
2022-05-28 15:09:29 +10:00
Rob Pearce
7a5452ddfa
Add -W option to check availablity of devices rather than 'people' (since a person can have multiple devices associated)
...
Delete ARP entries before availability check.
2022-02-02 14:09:02 +11:00
Rob Pearce
c4c88988c9
minor cosmetic fix
2022-01-23 15:51:04 +11:00
Rob Pearce
2646bf5aec
add option to specify influx host
2022-01-16 20:35:49 +11:00
Rob Pearce
32923583f5
Add usage info for -H
2021-12-05 16:52:47 +11:00
Rob Pearce
f0dce13580
Add html output mode when showing rules (-H)
2021-12-05 16:51:14 +11:00
Rob Pearce
8ccbdc902c
better config file parsing
...
-s option to verify config file
-S option to show rules in human readable format
fix for dns resolution on osx where getent isn't available
change tabs to spaces
make -w switch work without pymyair
2021-12-04 20:24:25 +11:00
Rob Pearce
6848a09bb7
bugfix: too hot/cold zone count limit was always set to 2 when system was on
2021-07-30 22:11:13 +10:00
Rob Pearce
e9c9a40497
fix typo
2021-07-01 16:45:24 +10:00
Rob Pearce
6ff51f038e
add 'nomyzone' config option to prevent a zone from ever becoming the "myzone".
2021-07-01 16:24:15 +10:00
Rob Pearce
d27a1be385
Initial checkin
2021-06-03 09:01:36 +10:00