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

Importing a template containing a command entry truncates the command after the first word #1473

Open
ReinoutHeeck opened this issue Dec 21, 2024 · 2 comments
Labels
bug Something isn't working solved

Comments

@ReinoutHeeck
Copy link

Describe the bug
Importing a template containing a command entry truncates the command after the first word

Firmware:

  • Version: Built on Dec 17 2024 12:29:10 version 1.17.802
  • Device: TYWB 4ch-RF
  • Chip/model: CB3S / BK7231N
  • Device config:
    {
    "vendor": "Tuya",
    "bDetailed": "0",
    "name": "Tuya Smart Switch TYWB 4ch-RF AC/DC 7-32V Configured as Door Opener",
    "model": "TYWB 4ch-RF",
    "chip": "BK7231N",
    "board": "DC 7-32V",
    "flags": "136316032",
    "keywords": ["Door Opener"],
    "pins": {
    "8": "Btn;1",
    "22": "WifiLED_n;0",
    "24": "Rel;1"
    },
    "command": "addChangeHandler Channel1 == 1 addRepeatingEvent 0.5 1 setChannel 1 0"
    }

To Reproduce

  1. Using the web app import and apply the above template
  2. in the 'Change Startup Command Text' page (http://1.2.3.4/startup_command) note that the text only contains the first word "addChangehandler" instead of the full command specified in the template.
@openshwprojects openshwprojects added the bug Something isn't working label Dec 25, 2024
@openshwprojects
Copy link
Owner

Nice find, it seems that quotation mark was missing. I've added it here:
OpenBekenIOT/webapp@0523072
Can you check if it works now?

@ReinoutHeeck
Copy link
Author

ReinoutHeeck commented Dec 25, 2024

Can you check if it works now?

Yep, that fixed it for me :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working solved
Projects
None yet
Development

No branches or pull requests

2 participants