Skip to content

Commit

Permalink
Merge pull request #19 from cewbdex/patch-1
Browse files Browse the repository at this point in the history
Minor fixes in README.md
  • Loading branch information
kvj authored Jan 22, 2024
2 parents a59a144 + be6a15c commit 8eb8a37
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Home Assistant integration with OpenWrt devices

[![hacs_badge](https://img.shields.io/badge/HACS-Custom-41BDF5.svg)](https://github.com/hacs/integration)
[![hacs_badge](https://img.shields.io/badge/HACS-custom-orange.svg?style=for-the-badge)](https://github.com/custom-components/hacs)


## Features

Expand All @@ -21,7 +22,7 @@

### Installing

* OpeWrt device(s):
* OpenWrt device(s):
* Make sure that `uhttpd uhttpd-mod-ubus rpcd` packages are installed (if you use custom images)
* If you use mesh networks, install `rpcd-mod-iwinfo` package
* Make sure that `ubus` is available via http using the manual: <https://openwrt.org/docs/techref/ubus>
Expand All @@ -36,10 +37,10 @@

* Create new file `/usr/share/rpcd/acl.d/hass.json`:

```json
```jsonc
{
"hass": {
"description": "Home Assistant OpenWrt integraion permissions",
"description": "Home Assistant OpenWrt integration permissions",
"read": {
"ubus": {
"network.wireless": ["status"],
Expand Down Expand Up @@ -82,7 +83,7 @@ config login

In order to allow ubus/rpcd execute a command remotely, the command should be added to the permissions ACL file above. The extra configuration could look like below (gives permission to execute `uptime` command):

```json
```jsonc
{
"hass": {
"write": {
Expand All @@ -103,7 +104,7 @@ In order to allow ubus/rpcd execute a command remotely, the command should be ad

In order to allow ubus/rpcd execute a command remotely, the command should be added to the permissions ACL file above. The extra configuration could look like below (gives permission to manage `presence-detector` service. Start, stop, restart, enable and disable system services.):

```json
```jsonc
{
"hass": {
"write": {
Expand Down

0 comments on commit 8eb8a37

Please sign in to comment.