unified names

This commit is contained in:
joBr99
2022-03-13 00:48:52 +01:00
parent 68e3a72426
commit 5a0fbf12c9
5 changed files with 15 additions and 15 deletions

View File

@@ -117,12 +117,12 @@ AppDaemon automations in HACS, as these are not enabled by default:
then require you to wait a few hours for HACS to be fully configured. In this case, then require you to wait a few hours for HACS to be fully configured. In this case,
you won't be able to proceed to the next steps until HACS is ready. you won't be able to proceed to the next steps until HACS is ready.
Now, to install NSPanel Lovelance UI Backend with HACS, follow these steps: Now, to install NSPanel Lovelace UI Backend with HACS, follow these steps:
1. Click on `HACS` on the left menu bar in Home Assistant Web UI 1. Click on `HACS` on the left menu bar in Home Assistant Web UI
2. Click on `Automations` in the right panel 2. Click on `Automations` in the right panel
3. Click on `Explore & download repositories` in the bottom right corner 3. Click on `Explore & download repositories` in the bottom right corner
4. Search for `NSPanel`, and click on `NSPanel Lovelance UI Backend` in the list that appears 4. Search for `NSPanel`, and click on `NSPanel Lovelace UI Backend` in the list that appears
5. In the bottom right corner of the panel that appears, click on 5. In the bottom right corner of the panel that appears, click on
`Download this repository with HACS` `Download this repository with HACS`
6. A confirmation panel will appear, click on `Download`, and wait for HACS to 6. A confirmation panel will appear, click on `Download`, and wait for HACS to
@@ -132,7 +132,7 @@ Now, to install NSPanel Lovelance UI Backend with HACS, follow these steps:
#### Manually #### Manually
Installing the Backend Application manually can be summarized by putting the content of the Installing the Backend Application manually can be summarized by putting the content of the
`apps/` directory of this repository (the `nspanel-lovelance-ui/` directory) into the `apps/` `apps/` directory of this repository (the `nspanel-lovelace-ui/` directory) into the `apps/`
directory of your AppDaemon installation. directory of your AppDaemon installation.
@@ -234,8 +234,8 @@ You can have multiple nspanel sections.
```yaml ```yaml
nspanel-1: nspanel-1:
module: nspanel-lovelance-ui module: nspanel-lovelace-ui
class: NsPanelLovelanceUIManager class: NsPanelLovelaceUIManager
config: config:
panelRecvTopic: "tele/tasmota_your_mqtt_topic/RESULT" panelRecvTopic: "tele/tasmota_your_mqtt_topic/RESULT"
panelSendTopic: "cmnd/tasmota_your_mqtt_topic/CustomSend" panelSendTopic: "cmnd/tasmota_your_mqtt_topic/CustomSend"

View File

@@ -1,7 +1,7 @@
--- ---
nspanel: nspanel:
module: nspanel-lovelance-ui module: nspanel-lovelace-ui
class: NsPanelLovelanceUIManager class: NsPanelLovelaceUIManager
config: config:
panelRecvTopic: "tele/tasmota_your_mqtt_topic/RESULT" panelRecvTopic: "tele/tasmota_your_mqtt_topic/RESULT"
panelSendTopic: "cmnd/tasmota_your_mqtt_topic/CustomSend" panelSendTopic: "cmnd/tasmota_your_mqtt_topic/CustomSend"

View File

@@ -5,13 +5,13 @@ import hassapi as hass
import math import math
import colorsys import colorsys
class NsPanelLovelanceUIManager(hass.Hass): class NsPanelLovelaceUIManager(hass.Hass):
def initialize(self): def initialize(self):
data = self.args["config"] data = self.args["config"]
NsPanelLovelanceUI(self, data) NsPanelLovelaceUI(self, data)
class NsPanelLovelanceUI: class NsPanelLovelaceUI:
def __init__(self, api, config): def __init__(self, api, config):
self.api = api self.api = api
self.config = config self.config = config

View File

@@ -1,3 +1,3 @@
{ {
"name": "NSPanel Lovelance UI Backend" "name": "NSPanel Lovelace UI Backend"
} }

View File

@@ -1,13 +1,13 @@
# NSPanel Lovelance UI # NSPanel Lovelace UI
Checkout [README](https://github.com/joBr99/nspanel-lovelance-ui/blob/main/README.md) for detailed Instructions. Checkout [README](https://github.com/joBr99/nspanel-lovelace-ui/blob/main/README.md) for detailed Instructions.
### App Configuration ### App Configuration
```yaml ```yaml
nspanel-1: nspanel-1:
module: nspanel-lovelance-ui module: nspanel-lovelace-ui
class: NsPanelLovelanceUIManager class: NsPanelLovelaceUIManager
config: config:
panelRecvTopic: "tele/tasmota_your_mqtt_topic/RESULT" panelRecvTopic: "tele/tasmota_your_mqtt_topic/RESULT"
panelSendTopic: "cmnd/tasmota_your_mqtt_topic/CustomSend" panelSendTopic: "cmnd/tasmota_your_mqtt_topic/CustomSend"