Commit Graph

51 Commits

Author SHA1 Message Date
Rob Pearce c002091d0e Fix bug where zones would not be opened/closed when turning on system.
Added -F zonename:temp option to provide fake current zone temperatures for testing.
2024-10-16 14:44:21 +11:00
Rob Pearce 9a6043f72b don't allow constant zone to count as an adjacent zone for the purposes of closing it, since it will just get re-opened. 2024-06-29 08:56:57 +10:00
Rob Pearce ee7751ffd5 Powering off system when closing the last remaining zone and it being the constant zone now works correctly. 2024-05-16 18:47:25 +10:00
Rob Pearce ac9addde30 Fix bug where killfile never expired
remove some logging
2023-12-15 06:29:12 +11:00
Rob Pearce f7e7c49464 added -e and -E options
fix bug where empty killfile would be ignored
2023-12-11 23:02:15 +11:00
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 f81bf65ae8 Update readme 2023-12-04 16:56:26 +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 7dc7a660e3 remove pymyair reference in readme 2023-10-22 12:21:13 +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 90c2778a13 formattting 2022-05-29 22:32:03 +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 df44244176 Remove test documents 2022-05-29 11:18:31 +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 a821b1efb2 README update 2022-05-28 15:29:21 +10:00
Rob Pearce 6d2a75c7d3 Fix odd colouring in README code blocks 2022-05-28 15:26:25 +10:00
Rob Pearce 1414777092 formatting update 2022-05-28 15:23:39 +10:00
Rob Pearce 338f8f57f3 Update README 2022-05-28 15:15:47 +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 407af3f3e6 Add grafana screenshot 2021-06-23 15:29:55 +10:00
Rob Pearce fa9b5f3af7 typo 2021-06-03 19:58:49 +10:00
Rob Pearce 84e424686c Simplify exanples 2021-06-03 19:55:01 +10:00
Rob Pearce 6633db25d7 Expand exanples 2021-06-03 19:52:03 +10:00
Rob Pearce 513d1d3593 Fix typos, add example usage 2021-06-03 19:46:14 +10:00
Rob Pearce 5b0b8028ca Add example config file 2021-06-03 09:16:07 +10:00
Rob Pearce 9a10455203 Fixing image path 2021-06-03 09:12:51 +10:00
Rob Pearce dbcef8001e Add image 2021-06-03 09:10:14 +10:00
Rob Pearce 2cf1826bc2 adding readme 2021-06-03 09:07:12 +10:00