Commit graph

239 commits

Author SHA1 Message Date
tomaae
715fcc74ea replaced raise with logger error message for api queries 2020-04-10 11:49:02 +02:00
tomaae
07690aad9f separated hosts and accounting to host per group and all groups contain mikrotik name #24 2020-04-10 09:22:28 +02:00
tomaae
2c471cc981 fixed restore from HA device registry when device name contains "-" #24 2020-04-10 09:18:09 +02:00
tomaae
2620ea3761 added connections to host device tracker #24 2020-04-10 08:14:49 +02:00
tomaae
028de35d03 flush wireless registration table on each query #24 2020-04-10 01:38:15 +02:00
tomaae
cd41d0c50f fixed crash on wireless recovery #24 2020-04-10 01:21:20 +02:00
tomaae
5945ef1425 removed option_track_network_hosts_timeout from controller #24 2020-04-10 00:05:52 +02:00
tomaae
3c41ad3a0a added device tracking options functionality #24 2020-04-10 00:03:26 +02:00
tomaae
4f95ad8cc1 added device tracking options to controller #24 2020-04-09 23:17:39 +02:00
tomaae
1bd7cadaa4 fixed conflict with default device name 2020-04-09 23:11:48 +02:00
tomaae
41b6010210 added device tracking options to config flow #24 2020-04-09 23:08:29 +02:00
tomaae
e62e67e918 do not track wireless devices marked as AP #24 2020-04-09 22:36:34 +02:00
tomaae
6b3ed595ff added support for wireless for device_tracking #24 2020-04-09 22:24:48 +02:00
tomaae
3886346d07 added support for caps-man for device_tracking #24 2020-04-09 22:09:38 +02:00
tomaae
6a0536225b detect installed capabilities #24 2020-04-09 22:08:26 +02:00
tomaae
8a7b22af02 update IP source when IP change is discovered #24 2020-04-09 20:20:47 +02:00
tomaae
2302c50d70 removed unnecessary condition #24 2020-04-09 09:12:14 +02:00
tomaae
b3e26c5eb9 prevent crash when using old unique_id #24 2020-04-09 09:10:12 +02:00
tomaae
6d2dbe8fb0 update host ip and interface on change (dhcp/recovery) #24 2020-04-09 03:01:55 +02:00
tomaae
fd19257b12 restore host device_tracker entities which are not known to mikrotik from HA #24 2020-04-09 02:53:43 +02:00
tomaae
3c5a677a47 fixed default value for host availability #26 2020-04-09 02:51:30 +02:00
tomaae
5521d01e33 changed unique_id's for device trackers to distinguish between interface and host #24 2020-04-09 02:46:09 +02:00
tomaae
2d88ed8aaf refactored config flow #26 2020-04-08 20:31:47 +02:00
tomaae
f059149f59 added comments for accounting functions 2020-04-08 17:52:58 +02:00
Ivan Pavlina
023f45cf26 Modified variable hostname to host-name to keep inline with Mikrotik API 2020-04-08 16:53:20 +02:00
Ivan Pavlina
1bb90d51cd Fixed broken merge 2020-04-08 16:31:26 +02:00
Ivan Pavlina
f141c6915b Fix icons for accounting sensors, update accounting docs 2020-04-08 16:01:27 +02:00
Ivan Pavlina
6978652cce Fix for static ARP entries that aren't present in DHCP, could use a check on that.
Multiple fixes for accounting calculation and availability check.
2020-04-08 15:44:28 +02:00
Ivan Pavlina
b8d311978b Changed accounting sensor attribute 2020-04-08 14:16:19 +02:00
Ivan Pavlina
e8d2efe956 Fix for sensor type attr 2020-04-08 14:14:09 +02:00
Ivan Pavlina
32b93cc8cc Removed redundant get_dhcp call from update method. Removed unnecessary calls to Mikrotik API for accounting hosts build, reusing new hosts dict. Removed unnecessary variables from mikrotik_controller.py. Reused new dhcp-networks dict. Simplified accounting throughput calculation. Added accounting 'available' and 'local_enabled' parameters for each host. Implemented new parameters on sensor availability. 2020-04-08 13:41:03 +02:00
Ivan Pavlina
63f188b732 Merge branch 'master' of https://github.com/ivanpavlina/homeassistant-mikrotik_router into pr/2 2020-04-08 12:31:02 +02:00
tomaae
4d02e9123a fixed comment 2020-04-08 10:37:24 +02:00
tomaae
b962a5ee85 removed temp debug 2020-04-08 10:33:32 +02:00
tomaae
b0918fd782 add data from arp to host 2020-04-08 10:32:02 +02:00
tomaae
8b9f63c7b7 added IPv4Network to dhcp-network data point, requirement to accounting 2020-04-08 10:19:29 +02:00
tomaae
4a871af73a added data["dhcp-network"] data point 2020-04-08 10:09:31 +02:00
tomaae
d075e31a13 PEP8 fix 2020-04-08 10:01:41 +02:00
tomaae
c9a9e3e776 reordered update functions 2020-04-08 10:01:31 +02:00
tomaae
7b2087f834 added data["arp"] data point 2020-04-08 10:01:09 +02:00
tomaae
d568a7ca13 renamed current arp datapoint to arp_tmp 2020-04-08 09:59:55 +02:00
tomaae
004fc56269 removed temp debug 2020-04-08 09:48:52 +02:00
tomaae
65074df370 host device_tracker calculate time since last successful availability check 2020-04-08 09:48:16 +02:00
tomaae
e4e128ab4b changed host device_tracker from dhcp to host data point 2020-04-08 09:44:00 +02:00
tomaae
a9c0be0b2c removed temporary debug line 2020-04-08 09:21:26 +02:00
tomaae
b267943ba7 added custom data["host"] data point 2020-04-08 09:17:25 +02:00
tomaae
6ab2df8ef1 added comment to data["dhcp"] data point 2020-04-08 09:16:05 +02:00
tomaae
9c6712b511 added data["dns"] data point 2020-04-08 09:15:26 +02:00
tomaae
f0fc6f3c25 separated DHCP data point from host processing 2020-04-08 07:15:14 +02:00
Ivan Pavlina
cd9e30682c Add comment as accounting sensor attribute 2020-04-07 20:31:16 +02:00