Custom component: EdgeOS

Change the capital letter M from this to lower case:

sensor:
 - platform: template
   sensors:
     sensor_Macbook_downspeed:
            ^-- not upper case

Then check your developer tools states menu for a sensor called:

sensor.sensor_macbook_downspeed

Also your choice of object id is redundant.

1 Like

Thank you ! Got it all working now. :+1:

System power consumption?
value_template: “{{state_attr(‘binary_sensor.edgeos_system_status’,‘power’).system_power_consumption}}”

power: {
“System voltage”: " 24.55 V",
“System current”: " 0.28 A",
“System power consumption”: " 7.02 W"
}

So can I change the rate at which the interfaces and device throughputs are update? From what I can find in the code, I can add scan_interval to the configuration and set it to 5. I see reference to this being pulled in from the configuration file in init.py but in my logs after a HA restart, I get: Invalid config for [edgeos]: [scan_interval] is an invalid option for [edgeos]. Check: edgeos->edgeos->scan_interval. (See /config/configuration.yaml, line 21).

Just want to see more realtime throughput! Thanks.

you can’t set the scan interval for the component,
I will update in the upcoming week so each websocket update will be updated immediately without any delay, the scan_interval will be used for the API calls.

1 Like

Gotcha! Thank you so much for the awesome component. I’ll be keeping an eye out for the update

Thanks for the EdgeOS component.

I have set it up to connect to my EdgeRouter-X, but the device_tracker states often changes to not_home for a few minutes even though the device is still connected. Any idea what could be causing this?

Hi, I’m excited about using this component but having a little trouble. Hoping someone has an idea for me

I have the component successfully installed. HA boots up, but I see a lot of two particular errors in the logs:

2020-01-30 19:29:31 ERROR (MainThread) [custom_components.edgeos.web_api] Failed to connect https://192.168.1.1/api/edge/heartbeat.json?t=1580412570, Error: None, Line: 50
and
Failed to connect https://192.168.1.1/api/edge/get.json, Error: None, Line: 50

The errors appear be slowing down other connection to other things like my Hue bridge which start to timeout.

When I load either of those URLs in a logged in browser window, I see the API response successfully.

Here is my configuration file:

edgeos:
    host: !secret edge_os_host #Hostname / IP
    ssl: !secret edge_os_ssl #Supports SSL (true/false) - should be true
    username: !secret edge_os_username #Username of EdgeOS
    password: !secret edge_os_password #Password of EdgeOS
#    cert_file: !secret ssl_certificate #Path to the certificate (full-chain)
    monitored_interfaces: #List of interfaces
        - eth0
#    monitored_devices: #List of network devices to monitor
#        - my-iPhone
#        - PC1
#        - PC2
    unit: 'M' #Optional - Allowed values: '' - represents bytes, 'K' - Kilobyte$

edge_os_ssl is set to true in the secrets file.

Any ideas appreciated

can you please post (private) the log from service edgeos.save_debug_data:

Store the EdgeOS state to file, Path in CONFIG_PATH/edgeos_data.log

I must be doing something wrong. As soon as HA boots, I call edgeos.save_debug_data from the Services tab in developer tools. edgeos_data.log is created in my config path, but it only contains {} and never grows.

I also tried edgeos.log_events with enabled: true but that doesn’t seem to change anything either.

did you create a dedicated user for the HA in the EdgeOS router?
If you did, you can see from the UI of EdgeOS whether that user is logged in.

2 post before you mentioned that when you are trying to access it throw the browser you can acces that url, it’s proably because you are already logged in the same browser and it share the session.

That did it! Thank you!

hi all,

new version released,
Configuration moved to Configuration -> Integrations

OP updated.

all details available in readme file:

1 Like

Hi Bar,

I must be missing something obvious, but when I go into Configuration -> Integrations and search for EdgeOS, nothing is coming up. Is this still active / available? Seems like it’s the only thing out there that can help me track monthly bandwidth usage.

Make sure you’ve copied all the files to the custom_components folder, restart HA, and try again.

1 Like

Yeap, that’d be why it wasn’t showing up. I have it working now. Thank you!

Not able to access options of the integration to add tracked devices
When i click on the settings button; a small white box opens with a spinning wheel

I see the same thing … 3 built in sensors are instantiated. I was running the older none hacs version that stopped working after I upgraded my edgerouter-8 to 1.10.11 … that may be why this is happening … I see my traffic is enabled

I am currently using the old EdgeOS custom compt and that still works but i wanted to updated ver 2.0 but i cant… once i add the comp in HA; and try to click on settings, just spins!

Anyone have any ideas?