ioBroker.shelly icon indicating copy to clipboard operation
ioBroker.shelly copied to clipboard

adapter shows "online=true" although shelly is not connected by MQTT

Open chris299 opened this issue 3 years ago • 1 comments
trafficstars

Shelly device

Shelly plus 1pm

Protocol (CoAP / MQTT)

MQTT

The problem

adapter shows value 'true' in "online" data attribute, although

  • http://<shelly IP>/rpc/MQTT.GetStatus says 'connected:false' and
  • adapter is configured to use MQTT and
  • http://<shelly IP>/rpc/MQTT.GetConfig shows 'enable:true' and
  • http://<shelly IP>/rpc/MQTT.GetConfig shows 'server: <shelly adapter server IP:port>'
  • adapter could even check the username at /rpc/MQTT.GetConfig 'user:', if it is the same as the adapter needs

checking the right MQTT configuration is obviously a feature request, but showing a shelly online, although it is not connected by by the configured mqtt connection is very missleading (and IMHO a kind of bug)

Version of nodejs

16.17

Version of ioBroker js-controller

4.0.23

Version of Adapter

6.0.0

Operating system running ioBroker

MacOS

Checklist of files to include below

  • [X] iobroker.current.log (Please share the logs in debug mode)
  • [ ] Contents of the JavaScript browser console (always include in cases of issues with the user interface)

Additional information & file uploads

No response

chris299 avatar Aug 30 '22 20:08 chris299

online means (at the moment), that the device is reachable via TCP (ping). There are plans to use the MQTT connection state for online indication. But I have no time to implement that right now.

klein0r avatar Aug 31 '22 08:08 klein0r