-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to Create Sensors #9
Comments
Same question |
same |
Hey,
In theory - yes. But it's not implemented. The standard output is available as part of the Ubus call response, but it should be somehow exposed to 3rd-party scripts or automatons. The easy way - emit Hass event after each Another approach - add and update custom OpenWrt sensor with output of |
Considering this integration for monitoring 2 openlumi devices (openwrt in client-wifi mode) with some sensors (lamp, button switch, luminance sensor) and Zigbee router integrated. Would it be possible to explain in more details how to create an uptime sensor in HA (via template sensor in config.yaml), based on the default openwrt configuration? |
There's no way, currently. You can exec any program using the service the integration provides, but its standard output isn't available. That should be implemented first |
I would like to know also,
or some variation, I only get permission errors. edit:
still I have some permissions issues, but when I can't get the result, it won't matter |
Hi,
I am having some trouble creating Sensors.
I have followed the steps and I can see the below:
I would like to create sensors for different things such as system uptime, how many dhcp leases, public ip address, etc.
I've done a bit of research but haven't had much luck.
I was able to use the openwrt.reboot service to restart OpenWRT. Can I possibly parse the output from openwrt.exec command to a sensor?
Thanks!
The text was updated successfully, but these errors were encountered: