ezOutlets Support

There is a class of device that basically monitors the internet and toggles an onboard power outlet (usually to your modem) if the ping fails. The are called ezOutlet by Megatec. I got the single outlet one from amazon and love it. https://www.amazon.com/dp/B0861NX6H2

I didn’t see an integration in HA or HACS and was wondering if I could ask for support for it. It has a local LAN webUI controller as well as a cloud support so I imagine it would be relatively easy to integrate.

I did a little poking around in my browser’s dev tools and found that I could get the device to reset using this curl command:

curl -u admin:'mypassword' --location --request GET 'http://x.x.x.x/overview?reset=Reset'

Other endpoints:

ON: /overview?onoff=ON
OFF: /overview?onoff=OFF

I also have one of these. HA support would be awesome. Thanks frakman1 for the terminal commands.

2 Likes

Same here. Those little things work great as one-off relays for various things around the home.

This is what works for me by putting the below in the configuration.yaml
It creates a switch for the EZOutlet5 device that you can turn on/off.

command_line:
    - switch:
    name: "ezoutlet5_switch"
    command_on: 'curl "http://ip/cgi-bin/control2.cgi?user=admin&passwd=admin&target=1&control=1"'
    command_off: 'curl "http://ip/cgi-bin/control2.cgi?user=admin&passwd=admin&target=1&control=0"'
    command_state: 'curl -s "http://admin:admin@ip/xml/outlet_status.xml" | xq .'
    value_template: "{{ value_json.request.outlet_status == '1' }}"