windkh / node-red-contrib-shelly

Shelly control nodes for node red.
MIT License
34 stars 21 forks source link

Shelly Blu Gateway MQTT Does not work #139

Closed H-K-47 closed 11 months ago

H-K-47 commented 11 months ago

Is it possible that the uploaded callback script disables MQTT?

  1. How to disable the script without factory reset?
  2. Can you support both (i saw there is a script that offers both but i dont know where i can change scripts in the shelly blu gateway)
windkh commented 11 months ago

@H-K-47 The script does not disable MQTT. Maybe there is a side effect inside the firmware, but that can only be answered by the shelly developers.

  1. you can access the shelly via it's IP Address and the internal webserver from within your browser. There you should be able to see and edit the script. --> EDIT: it is a known bug from shelly that the scripts can not be accessed from the browser. Maybe this will be fixed soon
  2. what do you mean with "both"?
windkh commented 11 months ago

@H-K-47 maybe you provide soom more infos so that I can reproduce your problem

windkh commented 11 months ago

@H-K-47 what firmware version do you have? I have 1.1.0-beta2

windkh commented 11 months ago

V10.16.1 should improve uninstallation: just set mode to none and redeploy

windkh commented 11 months ago

@H-K-47 I just activated MQTT and callback mode: works.

It is strange that the MQTT does not deliver all received bluetooth messages... even if I deactivate my node.

H-K-47 commented 11 months ago

Sorry I'm new to shelly just toying around with it.

I can see the scripts in the shelly APP and edit/delete them there. But as you said they are not visible in the browser.

My Shelly Plus Bluetooth Gateway is Version 1.0.8.

Curiously - i enabled MQTT over the webinterface, and restarted the browser. Debug log didnt say anything about sending (MQTT explorer also didnt show anything neither my node red debug) - Then i went to the app and it said MQTT wasnt enabled?! I enabled it from there again and restarted and now its working.

So, it seems the fault is 100% with shelly new device.

As a final suggestion / answer - when/how does this node remove the uploaded scripts at all? does it detect when no callback is used anymore in node red and will remove it? otherwise a doc entry or warning would be good!

Thank you for your work

windkh commented 11 months ago

On every redeploy of your nodes the script is removed or added depending on the mode.

H-K-47 commented 11 months ago

Thank you - btw since you work with shelly blu - do you know if it is possible to have each blu device as their own topic/msg in MQTT ? right now everything is overwritten because its just sent as rpc and they overwrite each other

image

Using a tasmota device, will correctly sent an individual topic for each device/msg.