diff --git a/README.md b/README.md index e5c2938..a5036e7 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ You can add this integration several times for different devices. ![Add Integration](https://raw.githubusercontent.com/tomaae/homeassistant-mikrotik_router/master/docs/assets/images/ui/setup_integration.png) * "Host" - Use hostname or IP * "Port" - Leave at 0 for defaults -* "Name of the integration" - Friendy name for this router +* "Name of the integration" - Friendly name for this router * "Unit of measurement" - Traffic sensor measurement (bps, Kbps, Mbps, B/s, KB/s, MB/s) # Configuration @@ -68,11 +68,4 @@ For per-IP throughput tracking Mikrotik's accounting feature is used. Feature will be automatically used if accounting is enabled in Mikrotik. Feature is present in Winbox IP-Accounting. Make sure that threshold is set to reasonable value to store all connections between user defined scan interval. Max value is 8192 so for piece of mind I recommend setting that value. Web Access is not needed, integration is using API access. -Integration will scan DHCP Lease table and ARP table to generate all known hosts and create two sensors for WAN traffic (mikrotik-XXX-wan-rx and mikrotik-XXX-wan-tx). If the parameter *account-local-traffic* is set in Mikrotik's accounting configuration it will also create two sensors for LAN traffic (mikrotik-XXX-lan-rx and mikrotik-XXX-lan-tx). - -Device's name will be determined by first available string in this order: -1. DHCP hostname -2. DNS static entry -3. Device's MAC address - -Devices attributes contain IP Address, MAC address and Comment (filled by comment of devices DHCP lease, fallbacks to device name in definition above) \ No newline at end of file +Integration will scan DHCP Lease table and ARP table to generate all known hosts. For every host aleast two sensors for WAN traffic (mikrotik-XXX-wan-rx and mikrotik-XXX-wan-tx) are created. If the parameter *account-local-traffic* is set in Mikrotik's accounting configuration it will also create two sensors for LAN traffic (mikrotik-XXX-lan-rx and mikrotik-XXX-lan-tx). diff --git a/custom_components/mikrotik_router/sensor.py b/custom_components/mikrotik_router/sensor.py index 1241f32..d784af8 100644 --- a/custom_components/mikrotik_router/sensor.py +++ b/custom_components/mikrotik_router/sensor.py @@ -81,7 +81,7 @@ SENSOR_TYPES = { }, "accounting_lan_tx": { ATTR_DEVICE_CLASS: None, - ATTR_ICON: "mdi:download-network", + ATTR_ICON: "mdi:upload-network", ATTR_LABEL: "LAN TX", ATTR_GROUP: "Accounting", ATTR_UNIT: "ps", @@ -91,7 +91,7 @@ SENSOR_TYPES = { }, "accounting_lan_rx": { ATTR_DEVICE_CLASS: None, - ATTR_ICON: "mdi:upload-network", + ATTR_ICON: "mdi:download-network", ATTR_LABEL: "LAN RX", ATTR_GROUP: "Accounting", ATTR_UNIT: "ps", @@ -101,7 +101,7 @@ SENSOR_TYPES = { }, "accounting_wan_tx": { ATTR_DEVICE_CLASS: None, - ATTR_ICON: "mdi:download-network", + ATTR_ICON: "mdi:upload-network", ATTR_LABEL: "WAN TX", ATTR_GROUP: "Accounting", ATTR_UNIT: "ps", @@ -111,7 +111,7 @@ SENSOR_TYPES = { }, "accounting_wan_rx": { ATTR_DEVICE_CLASS: None, - ATTR_ICON: "mdi:upload-network", + ATTR_ICON: "mdi:download-network", ATTR_LABEL: "WAN RX", ATTR_GROUP: "Accounting", ATTR_UNIT: "ps", diff --git a/docs/assets/images/ui/accounting_sensor.jpg b/docs/assets/images/ui/accounting_sensor.jpg index 97ee35d..c41942c 100644 Binary files a/docs/assets/images/ui/accounting_sensor.jpg and b/docs/assets/images/ui/accounting_sensor.jpg differ