joBr99 / nspanel-lovelace-ui

Custom Firmware for NsPanel with the design of HomeAssistant's lovelace UI in mind, works with Tasmota.
GNU General Public License v3.0
872 stars 188 forks source link

[BUG] Current weather information not updated when buttons detached by Rule2 and pressed #1020

Closed peer69 closed 10 months ago

peer69 commented 10 months ago

PROBLEM DESCRIPTION

As mentioned in https://forum.iobroker.net/topic/58170/sonoff-nspanel-mit-lovelace-ui/4190?page=210 as soon as i have a Rule2 defined to detach the hardware buttons by:

Rule2 on Button1#state do Publish nspanel/%topic%/tele/RESULT {"CustomRecv":"event,button1"} endon on Button2#state do Publish nspanel/%topic%/tele/RESULT {"CustomRecv":"event,button2"} endon Rule2 1

and a button has actually been pressed, the rule works without any issues but the current weather information on the screensaver (temp and icon on the lower left) are not updated anymore until the panel is restarted.

I use the following code to write a datapoint when a button is pressed.

button1: {   mode: 'set', // Mögliche Werte wenn Rule2 definiert: 'page', 'toggle', 'set' - Wenn nicht definiert --> mode: null   page: null, // Zielpage - Verwendet wenn mode = page (bisher button1Page)   entity: '0_userdata.0.Szenen.Arrive-Home', // Zielentity - Verwendet wenn mode = set oder toggle   setValue: 1 // Zielwert - Verwendet wenn mode = set   },   button2: {   mode: 'set', // Mögliche Werte wenn Rule2 definiert: 'page', 'toggle', 'set' - Wenn nicht definiert --> mode: null   page: null, // Zielpage - Verwendet wenn mode = page (bisher button2Page)   entity: '0_userdata.0.Szenen.Leave-Home', // Zielentity - Verwendet wenn mode = set oder toggle   setValue: 1 // Zielwert - Verwendet wenn mode = set   }

The rule is defined on all my panels but only the panels on which a button has actually been pressed show the issue. This can be reproduced for all my panels whether an action for a button has been defined or not. I have only briefly tested Multipress-Mode but until now the issue does not seem to occur when using it.

REQUESTED INFORMATION

TO REPRODUCE

Define Rule2 as shown above, press hardware button

EXPECTED BEHAVIOUR

Weather info keeps updating

SCREENSHOTS

ADDITIONAL CONTEXT

ioBroker

PANEL / FIRMWARE VERION

EU

peer69 commented 10 months ago

Fixed with 4.3.3.1