From 3dcae7aaf9921894b393e1a41b2e32ad61779e60 Mon Sep 17 00:00:00 2001 From: illuzn <57167030+illuzn@users.noreply.github.com> Date: Sun, 22 May 2022 13:35:52 +0930 Subject: [PATCH 1/2] Update README.md This describes setting option 73 in Tasmota so that the soft buttons are separated from the relays. --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 288d2ce7..00189ea4 100644 --- a/README.md +++ b/README.md @@ -230,6 +230,22 @@ EU Version: `FlashNextion http://nspanel.pky.eu/lui-release.tft` US Version Portrait: `FlashNextion http://nspanel.pky.eu/lui-us-p-release.tft` US Version Landscape: `FlashNextion http://nspanel.pky.eu/lui-us-l-release.tft` + +#### (Optional) Seperate physical buttons from relay actions + +If you do not want your NSPanel physical buttons to trigger the relays and prefer to have them as software configurable buttons, open the Tasmota console of your NSPanel and enter the following: + +`SetOption73 1` + +Your relays will now appear as switches in HomeAssistant and you can control your buttons by using automations: + + ![image](https://user-images.githubusercontent.com/57167030/169677954-5b811d12-dab8-4415-89aa-e4196732765e.png) + +You may reverse this change by entering the following in the Tasmota console of your NSPanel: + +`SetOption73 0` + +Please note: Doing this will mean that if HomeAssistant is not working for any reason your buttons will not function correctly.

From 266364dd1a0c28f9d25ec5ac0a897a69da2fd443 Mon Sep 17 00:00:00 2001 From: joBr99 <29555657+joBr99@users.noreply.github.com> Date: Sun, 22 May 2022 11:08:57 +0200 Subject: [PATCH 2/2] add doc for tasmota rule --- README.md | 42 ++++++++++++++++++++++++++---------------- 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 00189ea4..fee99339 100644 --- a/README.md +++ b/README.md @@ -230,22 +230,6 @@ EU Version: `FlashNextion http://nspanel.pky.eu/lui-release.tft` US Version Portrait: `FlashNextion http://nspanel.pky.eu/lui-us-p-release.tft` US Version Landscape: `FlashNextion http://nspanel.pky.eu/lui-us-l-release.tft` - -#### (Optional) Seperate physical buttons from relay actions - -If you do not want your NSPanel physical buttons to trigger the relays and prefer to have them as software configurable buttons, open the Tasmota console of your NSPanel and enter the following: - -`SetOption73 1` - -Your relays will now appear as switches in HomeAssistant and you can control your buttons by using automations: - - ![image](https://user-images.githubusercontent.com/57167030/169677954-5b811d12-dab8-4415-89aa-e4196732765e.png) - -You may reverse this change by entering the following in the Tasmota console of your NSPanel: - -`SetOption73 0` - -Please note: Doing this will mean that if HomeAssistant is not working for any reason your buttons will not function correctly.

@@ -545,9 +529,35 @@ will allow you to navigate to a cardGrid page with the configured key testKey key: testKey ``` +#### Change behaviour of hardware buttons +##### Tasmota Rules +You can configure the buttons to mimic an UI element on the screen by configuring tasmota rules. +The following rule will change the behaviour of the two buttons to do page navigation. + +``` +Rule2 on Button1#state do Publish tele/%topic%/RESULT {"CustomRecv":"event,buttonPress2,hwbtn,bPrev"} endon on Button2#state do Publish tele/%topic%/RESULT {"CustomRecv":"event,buttonPress2,hwbtn,bNext"} endon + +Rule2 1 +``` + +##### Decouple buttons from controlling power outputs + +If you do not want your NSPanel physical buttons to trigger the relays and prefer to have them as software configurable buttons, open the Tasmota console of your NSPanel and enter the following: + +`SetOption73 1` + +Your relays will now appear as switches in HomeAssistant and you can control your buttons by using automations: + + ![image](https://user-images.githubusercontent.com/57167030/169677954-5b811d12-dab8-4415-89aa-e4196732765e.png) + +You may reverse this change by entering the following in the Tasmota console of your NSPanel: + +`SetOption73 0` + +Please note: Doing this will mean that if HomeAssistant is not working for any reason your buttons will not function correctly. ## How to update