Commit Graph

39 Commits

Author SHA1 Message Date
fa21f7e879 Add filtering by area and label 2024-06-20 01:08:46 -04:00
5a4b04ffac Use a template to filter entities server-side 2024-06-20 01:03:57 -04:00
bac092e430 Organize imports with ruff 2024-04-06 12:43:48 -04:00
52b578ea6f Switch to ruff for formatting/linting 2024-04-06 12:43:36 -04:00
57cd22eb95 Minor typing fixes 2024-04-06 12:40:57 -04:00
8d048bab85 Bump required Python to 3.8 in README for argparse action="extend" 2023-03-11 01:30:09 -05:00
9d14fc7a54 Bump version to 0.3.0 2023-03-11 01:28:19 -05:00
97d07142d8 Allow specifying include/exclude/filter options multiple times by appending 2023-03-11 01:21:40 -05:00
a0ad62c4f2 Allow negating an attribute filter 2023-03-11 00:55:38 -05:00
c7f1b9c7c9 Add explicit include/exclude by entity id 2023-03-11 00:41:22 -05:00
8ce50398e9 Move state to metric logic into a function 2023-03-11 00:21:34 -05:00
5d4f9fb98b Enable and apply Black formatting 2023-03-11 00:11:05 -05:00
0c9eb910a6 Allow ignoring missing attributes 2023-03-11 00:10:43 -05:00
780edf0423 Handle bad scalar values as undefined rather than -1 2023-03-10 21:49:35 -05:00
82acfd3718 Use try/except for numeric state conversion instead of str.isnumeric() 2023-01-03 12:17:51 -05:00
3e9d362805 Bump version to 0.2.0 2022-12-30 23:49:05 -05:00
256529373d Add support for text/regex based attributes 2022-12-30 23:49:05 -05:00
a1b8025c7e Add version argument 2022-12-26 19:05:01 -05:00
b2524c8799 Make count and append_const actions use set_if in icinga conf 2022-12-26 17:45:38 -05:00
a459b3cdbe Allow verbose, don't allow version in icinga2 conf 2022-11-30 15:33:21 -05:00
ca5c29b57c Remove reference to battery percentage in help text 2022-11-30 13:07:19 -05:00
5bbb06cdba Fix disallowed characters for performance data 2022-11-29 19:07:15 -05:00
3cba565be7 Add a docstring for the script 2022-11-29 18:26:02 -05:00
a413157b26 Add a basic README.md 2022-11-29 18:18:13 -05:00
645bc06a8e Make help a bit clearer 2022-11-29 18:00:21 -05:00
035d20cfc3 Add link to Home Assistant REST API docs in token help text 2022-11-29 17:57:05 -05:00
4dd2a0c5b5 Make help strings lowercase, for consistency 2022-11-29 17:55:59 -05:00
f886e9afeb Automatically generate Icinga2 CheckCommand conf 2022-11-29 17:55:26 -05:00
1b8653a6d1 Add cli arg to use friendly name, when available 2022-11-29 17:14:26 -05:00
b3fd15789a Add cli arg to return the value of an attribute instead of the state 2022-11-26 19:56:46 -05:00
8d88430577 Add cli arg for filtering by arbitrary attributes 2022-11-26 19:56:44 -05:00
efd40f2a51 Add cli arg for specifying device class to filter by 2022-11-26 19:49:16 -05:00
5eb9c52207 Add cli args for specifying performance data min/max 2022-11-26 19:49:16 -05:00
1c183fb6b4 Group arg definitions more cleanly 2022-11-26 19:36:49 -05:00
174ada7375 Require warning/critical args 2022-11-26 19:36:49 -05:00
f037ed5c24 Convert Resource class to dataclass 2022-11-26 19:36:49 -05:00
b9163ccfe6 Rename to avoid similarity to an existing project 2022-09-29 22:54:45 -04:00
36bd1e7485 Add CheckCommand definition for Icinga2 2022-09-29 22:41:33 -04:00
4da30bdeda Initial Commit, just checking batteries right now 2022-09-29 18:16:43 -04:00