Commit graph

73 commits

Author SHA1 Message Date
Ivan Pavlina
e93b02e71d Accounting feature renamed to Client traffic. In case of older firmware fallback to accounting fetature for client traffic monitoring, instead use kid-control-devices 2022-01-20 09:54:40 +01:00
Tomaae
1bc901cf9d added 7.1 support for system health #97
added voltage sensor #156
2022-01-08 22:07:31 +01:00
tomaae
6129e18cc3 Fixed sensor and binary sensor attributes #147 2021-12-16 06:16:02 +01:00
tomaae
e372ebbfff sensor entity code cleanup 2021-12-15 02:06:27 +01:00
tomaae
274de8c6fd Added entity category support 2021-12-13 13:45:07 +01:00
tomaae
448483da22 Merged System category
Added Visit Device URL
2021-12-13 13:26:46 +01:00
tomaae
74a4a367dd The use of the DEVICE_CLASS_* constants and DEVICE_CLASSES constants in all entity platforms, has now been depreacted. Instead, use the equavalent DeviceClass StrEnum provided by each platform. 2021-12-13 11:42:55 +01:00
tomaae
e10ab3e0ee Replaced device_state_attributes for extra_state_attributes, fixes #152 2021-12-13 10:59:36 +01:00
Marti Markov
526b29ca67
Add measurement to TrafficSensor
Enables the usage of TrafficSensor within the statistics card
2021-11-07 17:07:43 +00:00
Sergio Mayoral Martinez
d6023abc30 Convert uptime sensor to new timestamp standard Home Assistant format
Fixes #118
2021-05-14 10:16:06 +02:00
Sergio Mayoral Martinez
2257a563bf Add device_class attributes to valid sensors
Fixes #119
2021-05-13 13:35:54 +02:00
tomaae
59ce0618b0 Update to SensorEntity 2021-04-21 22:04:22 +02:00
tomaae
cc381dcaa7 Improve attribute formatting 2021-04-12 14:29:15 +02:00
tomaae
813455cc81 Removed temporary debug 2021-04-12 13:38:04 +02:00
tomaae
ab97fa60f7 black formatting 2021-04-12 10:01:21 +02:00
tomaae
7b616aee19 prepare info for SFP 2021-04-12 09:54:13 +02:00
tomaae
74b23d6a2d Fixed env grouping #94 2021-02-06 18:11:47 +01:00
tomaae
aebbf7c928 accounting sensor does not have to contain manufacturer #88 2021-01-19 18:01:07 +01:00
tomaae
b026c18cbc Fixed sensor icons 2020-12-28 13:07:28 +01:00
tomaae
95a8bdb888 Rewritten environment sensor 2020-12-26 00:12:53 +01:00
tomaae
88c79bcada Code cleanup 2020-12-25 20:28:36 +01:00
tomaae
68e0b4c288 Added fan icon for fan speed sensors #79 2020-12-25 15:50:41 +01:00
tomaae
496619b84f Added temp, power and fan sensors for CRS series #79 2020-12-25 15:48:07 +01:00
tomaae
ba99451244 Hide non-existing hardware specific system sensors #73 2020-12-14 15:25:00 +01:00
tomaae
a8f196f974 fixed possible issue in environment sensor 2020-12-13 03:43:41 +01:00
tomaae
5a2df12ced Revert "fixed possible issue in environment sensor"
This reverts commit 5af80f97
2020-12-13 03:13:38 +01:00
tomaae
5af80f979e fixed possible issue in environment sensor 2020-12-13 02:55:09 +01:00
tomaae
77fd3889ff fixed uptime sensor #64 2020-12-13 02:47:03 +01:00
tomaae
f63c069940 Sensor port traffic selection #68 2020-12-12 12:19:40 +01:00
tomaae
5e7ae94cea Resolve device manufacturer for tracked devices #67 2020-12-03 16:41:06 +01:00
tomaae
966bdf2f57 black formatting 2020-12-02 15:38:17 +01:00
tomaae
41f9ad97c9 Device tracker and accounting sensor uses default_name and does not add manufacturer and model data #57 2020-12-02 14:57:30 +01:00
tomaae
a29cce0d3d Added sensors for environment variables #58 2020-12-02 13:56:50 +01:00
tomaae
1e109f3dc6 Added uptime sensor #64 2020-12-02 10:52:34 +01:00
tomaae
a8606411d9 Added traffic sensors to ppp and wireless interfaces #48 2020-06-26 16:35:40 +02:00
tomaae
9eff454269 Added temperature sensor #47 2020-05-27 20:04:09 +02:00
tomaae
ce77fb8085 fixed formatting in sensors 2020-04-20 08:00:00 +02:00
tomaae
9b9d54c3c4 removed mikrotik name from accounting sensor names 2020-04-12 22:04:51 +02:00
tomaae
70cdb93eb3 reformatted using black 2020-04-11 05:45:36 +02:00
tomaae
018ed3cf9c removed integration name prefix from hosts and their related sensors #24 2020-04-10 12:46:07 +02:00
tomaae
6a8103ee47 added connections to accounting sensor #17 2020-04-10 12:26:48 +02:00
tomaae
8bfa30b3a1 fixed removal of wrong attribute #17 2020-04-10 12:25:37 +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
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
cd9e30682c Add comment as accounting sensor attribute 2020-04-07 20:31:16 +02:00
Ivan Pavlina
39c31cb84a Fixed grouping of accounting entities 2020-04-07 14:19:22 +02:00