Comments (13)
Could you export your queue config for me so I can have a look on some real settings? I dont use queues at all.
Thanks for info about translations, I have not updated to 0.109 yet.
from homeassistant-mikrotik_router.
# software id = B4KA-NAM9
#
# model = RB4011iGS+
# serial number = AAB10A424B92
/queue simple
add max-limit=2M/2M name=YOUTUBE packet-marks=Youtube target=bridge-main
add max-limit=4M/4M name=NETFLIX packet-marks=Netflix target=bridge-main
add max-limit=512k/512k name=APPLE packet-marks=Apple target=bridge-main
add max-limit=128k/512k name=Minecraft packet-marks=Minecraft target=bridge-main
It uses marks done in Mangle, but I do not think this is necessary for this (I have these queues automatically turn on during the day - my and my W use quite a bit of videoconferencing now days, and when kids decide to watch videos at the same time....)
from homeassistant-mikrotik_router.
Whilst you are at it. How hard would it be to get the download/upload rate for the query to the attributes? :) So I could detect if there is that kind of traffic....
from homeassistant-mikrotik_router.
Not sure, can you send me mangles for those as well? I will see what I can do about traffic.
from homeassistant-mikrotik_router.
/ip firewall mangle
add action=add-dst-to-address-list address-list=Youtube address-list-timeout=30m chain=prerouting comment=\
"YOUTUBE add address list" content=youtube.com
add action=add-dst-to-address-list address-list=Youtube address-list-timeout=30m chain=prerouting comment=\
"GOOGLE VIDEO add address list" content=googlevideo.com
add action=add-dst-to-address-list address-list=Netflix address-list-timeout=30m chain=prerouting comment=\
"NETFLIX add address list" content=nflxvideo.net
add action=add-dst-to-address-list address-list=Netflix address-list-timeout=30m chain=prerouting comment=\
"NETFLIX add address list" content=netflix.com
add action=mark-packet chain=forward comment="Mark YOUTUBE" new-packet-mark=Youtube passthrough=no \
src-address-list=Youtube
add action=mark-packet chain=forward comment="Mark Apple" new-packet-mark=Apple passthrough=no \
src-address-list=Apple
add action=mark-packet chain=forward comment="Mark NETFLIX" new-packet-mark=Netflix passthrough=no \
src-address-list=Netflix
The rates are available in the queue columns.
from homeassistant-mikrotik_router.
Oh, and if you want to test it, disable fast path in IP settings. Otherwise the packets will go around mangle...
from homeassistant-mikrotik_router.
Thanks, this will help a lot to setup test environment for queues
from homeassistant-mikrotik_router.
Changes released in v1.5.6
from homeassistant-mikrotik_router.
It would be possible to also add sensors for rates, it that would be helpful.
from homeassistant-mikrotik_router.
Works beautifully, thank you. I think the sensor is not necessary, I will dig it out from the attributes. Love it. Thanks for the quick response!
from homeassistant-mikrotik_router.
sensor:
- platform: template
sensors:
youtube_download:
friendly_name: "Youtube download"
unit_of_measurement: 'Kbps'
value_template: >
{% if is_state("switch.mikrotik_queue_youtube","on") %}
{{ state_attr('switch.mikrotik_queue_youtube', 'Download rate') | regex_replace(find='[a-z]', replace='', ignorecase=True) | int }}
{% else %}
0
{% endif %}
from homeassistant-mikrotik_router.
True, there are always template sensors.
from homeassistant-mikrotik_router.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
from homeassistant-mikrotik_router.
Related Issues (20)
- [Feature] New sensor: container HOT 4
- [Question] Why not all NAT rules showing as switches HOT 5
- Router OS 7.13, integration not work HOT 2
- [Question] Device not shown as Online when using "wifiwave2 capsman" HOT 1
- [Bug] HOT 8
- Integration didn't pick-up my Netwatch items HOT 8
- [Bug] This HAS addon is breaking Map functionality HOT 5
- [Bug] 'Failed setup, will retry' only for a couple of RBs HOT 1
- [Bug] RouterOS version becomes Unknown HOT 5
- [Question] invalid password with password length > 9 chars, is there a hardcoded limit? HOT 11
- [Bug] Filter rules removed as duplicate, miscalculated unique ID? HOT 4
- [Bug] Upgraded my hap ax2 to 7.13.4 error mesage failed setup will retry HOT 2
- [Bug] unable to install version from master via HACS HOT 1
- [Bug] CCR1016-12G will not connect HOT 3
- Hap ax3 HOT 12
- [Feature] Monitoring of SFP module - temperature, voltage, etc. HOT 1
- Show unit conversion example HOT 5
- List IP Routes with status flags HOT 3
- [Bug] Traffic TX/RX Total incorrect HOT 12
- [Bug] Not working with RouterOS 7.14.1 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homeassistant-mikrotik_router.