Help on a strange behaviour (maybe a bug) #986
Unanswered
Marco1971Repo
asked this question in
Q&A
Replies: 1 comment
-
|
I've workarounded this bug: i check in the script deltatime from last execution to mitigate the problem.... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all, i try to explain my problem, i think is a bug, not sure if in openHasp fw or in openhasp component.

I want enable and disable alarm using a btnmatrix to input the code.
I call a script when i press a button on the btnmatrix
'''
- obj: "p2b10" #keypad
event:
"down":
sequence:
action: script.turn_on
target:
entity_id: script.code_button
data:
variables:
value: "{{ val }}"
text: "{{ text }}"
haspname: "{{state_attr('openhasp.plate','friendly_name')}}"
haspMAC: "{{state_attr('openhasp.plate','mac')}}"
'''
everything work only if i reload the openHasp integration when i reconnect my plate. If not the script is called many time when i press a button..my feeling is that diconnecting and reconecting the plate is like an hidden instance of something remain active so that when i press a button the script is called a number of time equal to the number of time i've connected disconnected the plate....
in this image you can see the trace of the script execute 3 time in the same moment after i've pressed a button one time:
If all this is expecetd how i can force an integration reload when the plate is connected?
Beta Was this translation helpful? Give feedback.
All reactions