Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idle scripts not fires when state changing #536

Closed
3 tasks done
kinosang opened this issue Sep 12, 2023 · 1 comment
Closed
3 tasks done

Idle scripts not fires when state changing #536

kinosang opened this issue Sep 12, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@kinosang
Copy link
Contributor

kinosang commented Sep 12, 2023

Perform all steps below and tick them with [x]

  • Check the related part of the Documentation
  • Update openHASP to the latest version
  • Reproduce the issue and describe all steps

Describe the bug

#531 adds idle scripts.
but scripts not fires when idle state changing.

#[00:29:31.895][65524/75644 13][56344/56344  0] MQTT: Disconnected
#[00:29:36.557][65524/77228 15][56344/56344  0] HASP: First touch Disabled
**should run idle_off.cmd**
#[00:29:36.572][65524/75644 13][56344/56344  0] MQTT: Not connected ??? backlight => {"state":"on","brightness":3}
#[00:29:36.584][65524/77228 15][56344/56344  0] MQTT: Not connected ??? idle => off
**should run idle_short.cmd**
#[00:29:42.037][65524/77064 14][56344/56344  0] MQTT: Not connected ??? idle => short
#[00:29:43.906][65524/77228 15][56344/56344  0] MQTT: Transport error
#[00:29:43.917][65524/75644 13][56344/56344  0] MQTT: Disconnected

But run idle short command through Telnet/Serial will fire the script.

#idle short
[00:29:19.249][65524/77064 14][56344/56344  0] MSGR: idle=short
#idle shor[00:29:19.272][65524/75480 13][56344/56344  0] MSGR: Loading L:/idle_short.cmd
#idle shor[00:29:19.302][61428/70976 13][56344/56344  0] MSGR: backlight={"state": false, "brightness": 3}
#idle shor[00:29:19.313][59380/69392 14][56344/56344  0] HASP: First touch Enabled
#idle shor[00:29:19.328][61428/70976 13][56344/56344  0] MQTT: Not connected ??? backlight => {"state":"off","brightness":3}
#idle shor[00:29:19.341][59380/69392 14][56344/56344  0] MSGR: moodlight={"state": true, "color":"green"}
#idle shor[00:29:19.359][61428/70976 13][56344/56344  0] MQTT: Not connected ??? moodlight => {"state":"on","brightness":255,"color":"#008000","r":0,"g":128,"b":0}
#idle shor[00:29:19.371][59380/74408 20][56344/56344  0] MSGR: Loaded L:/idle_short.cmd
#idle shor[00:29:19.383][65524/77064 14][56344/56344  0] MQTT: Not connected ??? idle => short
#[00:29:19.862][65524/77228 15][56344/56344  0] MQTT: Transport error
#[00:29:19.873][65524/75644 13][56344/56344  0] MQTT: Disconnected

To Reproduce

Create L:/idle_short.cmd and etc.

backlight {"state": false, "brightness": 3}

Set Display Settings - Short Idle.
Telnet or Serial to the plate for logging.

Expected behavior

should run L:/idle_short.cmd automatically.

Screenshots or video

@fvanroie
Copy link
Collaborator

fvanroie commented Dec 6, 2023

This issue should be resolved in RC9. Feel free to test and report back.

@fvanroie fvanroie closed this as completed Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants