openHASP icon indicating copy to clipboard operation
openHASP copied to clipboard

Submodule config get/set not working

Open nagyrobi opened this issue 5 years ago • 5 comments

Perform all steps below and tick them with [x]

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

Describe the bug

Originally I submitted a feature request to get / set the gpio configuration via MQTT but it turned out that none of the config/submodule commands work.

To Reproduce

Publish and empty paylod to hasp/<nodename>/config/gui. No response. Same experience for all config/submodules.

Go to web interface > Configuration > Display Settings. Check the value for Long Idle, make sure it's not 224. Publish payload {"idle2":224} to hasp/<nodename>/config/gui. Watch the debug console, nothing happens.

Expected behavior

Check the value for Long Idle in the web interface again by refreshing the page. Should have been changed, but it didn't. Empty payloads to hasp/<nodename>/config/gui should result in responses published to hasp/<nodename>/state/config

Screenshots or video

n/a

nagyrobi avatar Apr 20 '21 19:04 nagyrobi

Also output[x] does not work anymore:

MSGR: Command 'output[1]' not found => 1

MatijaTerzic avatar Apr 21 '21 11:04 MatijaTerzic

config/submodule act as normal commands and are also accepted on hasp/<nodename>/command/config/submodule. Dunno if it makes sense to keep a separate config topic for those.

fvanroie avatar Apr 21 '21 15:04 fvanroie

Just tried both:

hasp/<nodename>/command/config/gui 
hasp/<nodename>/config/gui 

No response on either.

nagyrobi avatar Apr 21 '21 15:04 nagyrobi

My bad, the command topic indeed doesn't process it. I restored the config topic in master branch.

fvanroie avatar Apr 21 '21 16:04 fvanroie

works now, thanks.

nagyrobi avatar Apr 22 '21 14:04 nagyrobi