Comments (12)
It sounds like you’re saying it should be available already, but I don’t see a device tracker for my UDMP.
Device trackers in Home Assistant is disabled by default, it would be automatically enabled if there were other entities for the same device reported. In your case Im assuming you do not have other entities for your UDMP. You can look in your registry for enabling the UDMP device tracker entity.
If that is not the case you might have disabled device entities more explicitly?
from aiounifi.
Thanks. I found it after enabling that setting.
Since it only includes the IP, that probably won’t be enough for me to detect that I’m on failover internet. I see more info in the diagnostics download for the device. That shows things like which uplink is active able status for the wan ports. I expect this means the data is available to expose via this library or accessible from HASS already. I’ll take a deeper look later.
I’m really looking to automatically turn on certain traffic rules when I’m on failover internet to better manage my bandwidth. The new patch for traffic rules brings me close with my current way of sensing the outage, but it’d be better if I could get it all from the router.
from aiounifi.
I’m really looking to automatically turn on certain traffic rules when I’m on failover internet to better manage my bandwidth. The new patch for traffic rules brings me close with my current way of sensing the outage, but it’d be better if I could get it all from the router.
It would be nice once you've achieved this to write up a post about it :)
from aiounifi.
Could I ask if the IP attribute of my UDM
device_tracker
entity (the WAN address) is obtained via the same way you're getting the temperature of the device?
Yes, its all from the same source, its sent over web socket so what information is available in the controller ui should be reflected in home assistant. Fail over to LTE is that on a different wan port or how does your setup look?
If you want to look at what data you get when falling back to LTE you can enable debug logging for the integration or run the library cli from the terminal.
from aiounifi.
I’ve been looking to do something similar here. I’m using a remote rest api for getting my IP as well, but this sounds better.
It sounds like you’re saying it should be available already, but I don’t see a device tracker for my UDMP.
from aiounifi.
OP, if the UniFi LTE is special in some way, you should be able to do something like I am today using a rest sensor:
- resource: https://ipinfo.io/json
scan_interval: 90
sensor:
- name: Public IP
icon: mdi:ip
json_attributes:
- city
- region
- country
- org
value_template: "{{ value_json.ip }}"
Is faster than your router updating your ddns and then pulling that back down via another polling interval. This is updated every 90s. Can’t go faster or you hit the free tier daily limit.
from aiounifi.
Is there already someone working on adding Traffic Rules to Home Assistant? If not, I can start a PR.
from aiounifi.
Is there already someone working on adding Traffic Rules to Home Assistant? If not, I can start a PR.
If anyone it would most probably be @herriejr but I don't know if he's gotten to start that yet.
from aiounifi.
Cool. I started one. Wrapping up tests now.
from aiounifi.
FYI: home-assistant/core#104671
from aiounifi.
I've got a working version locally running, but I hadn't gotten around to writing tests. I'll try commit my changes to my repo today, so we can compare notes. ;-)
from aiounifi.
You can find my code on https://github.com/herriejr/home-assistent-core/tree/dev/homeassistant/components/unifi/
from aiounifi.
Related Issues (20)
- Add ability to activate/deactivate traffic rules HOT 4
- Control port state
- Unsupported message key usergroup:sync
- Clients connected to AP HOT 2
- Show ALL ports on a network switch HOT 1
- JSONDecodeError: Input is a zero-length, empty document HOT 1
- LAN and VPN clients connected HOT 1
- Bad JSON data '' HOT 4
- Add Support to un-/Block WLAN devices HOT 1
- Additional information regarding the state of devices HOT 3
- Unifi OS 4.03 not working (yet) with current HA HOT 11
- Gateway Outlet Control HOT 15
- unawaited response text HOT 2
- EVT_DM_Connected events HOT 3
- Error on integration HOT 8
- Stange behaviour HOT 9
- [QUESTION] Is there API or the HA integrated which can turn on off the LED light of the AP HOT 5
- Unknown rules in Home Assistant HOT 10
- Question: monitoring Internet is down? HOT 2
- Recommendation re: recent addition to connectivity.py to address partitioned cookies 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 aiounifi.