Hass openwrt, how to configure

I’ve just install this integration, my goal is to be able to send a etherwake command to wake a device, unfortunatly the wol of home assistant doesnt work while the wol of my router is perfect. But i’m struggle to understand how to configure.
The integration is working, i followed the read.me, but i dont know hot to go further.

The command is
etherwake -D -i "br-lan" -b 70:85:C2:B8:A7:3D

this is my hass.json

{
  "hass": {
    "description": "Home Assistant OpenWrt integraion permissions",
    "read": {
      "ubus": {
        "network.wireless": ["status"],
        "network.device": ["status"],
        "iwinfo": ["info", "assoclist"],
        "hostapd.*": ["get_clients", "wps_status"],
        "system": ["board"],
        "mwan3": ["status"],
      },
    },
    "write": {
      "ubus": {
        "system": ["reboot"],
        "hostapd.*": ["wps_start", "wps_cancel"],
        "file": ["exec"]
      },
      "file": {
        "/usr/bin/etherwake": ["exec"]
      }
    }
  }
}

Did you manage to solve this problem? I have the same issue. Something is wrong with the hass.json but I do not know what.

I already found out. There was a comma missing:

{
  "hass": {
    "description": "Home Assistant OpenWrt integraion permissions",
    "read": {
      "ubus": {
        "network.wireless": ["status"],
        "network.device": ["status"],
        "iwinfo": ["info", "assoclist"],
        "hostapd.*": ["get_clients", "wps_status"],
        "system": ["board"],
        "mwan3": ["status"],
      },
    },
    "write": {
      "ubus": {
        "system": ["reboot"],
        "hostapd.*": ["wps_start", "wps_cancel"],
        "file": ["exec"]
      },
      "file": {
        "/usr/bin/etherwake": ["exec"]
      }
    },
  }
}
1 Like