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

[Bug]: Probleme bei Anbindung eines Shelly2PM. #895

Open
3 tasks done
HReimann opened this issue Nov 22, 2023 · 10 comments
Open
3 tasks done

[Bug]: Probleme bei Anbindung eines Shelly2PM. #895

HReimann opened this issue Nov 22, 2023 · 10 comments
Assignees
Labels
invalid This doesn't seem right RTFM Read the fine manual

Comments

@HReimann
Copy link

I'm sure that

  • This issue is still present in the current beta version of this adapter
  • There is no other (open) issue with the same topic (used the search)
  • This issue is not described in the adapter documentation / FAQ

Shelly device

Shellyplus2PM v1.0.8

Protocol

MQTT

The problem

Hallo zusammen,
ich setzte euren Shelly Adapter für einen Gen 1 und einen neuen Shelly2PM ein.
Der Gen 1 läuft ohne ersichtliche Problem schon seit längerer Zeit und dieser lässt sich auch problemlos steuern.
Bei dem neuen Gen2 wird die Verbindung allerdings nicht vollständig etabliert, dabei wechselt der Status vom "shelly.0.shellyplus2pm#xxxxxx#1.online" immer zwischen false/true. Vom Shelly2PM werden dabei weder der Status der Relais noch sonstige relevanten Infromation an Iobroker übermittelt.

iobroker.current.log (in debug mode!)

shelly.0
2023-11-22 20:08:09.685 debug [MQTT] Publish: x.x.x.231 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1) - topic: shellies/shellyswitch25-111111111111/voltage, qos: 0, payload: 242.10

shelly.0
2023-11-22 20:08:09.683 debug [MQTT] Publish: x.x.x.231 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1) - topic: shellies/shellyswitch25-111111111111/temperature_status, qos: 0, payload: Normal

shelly.0
2023-11-22 20:08:09.681 debug [MQTT] Publish: x.x.x.231 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1) - topic: shellies/shellyswitch25-111111111111/overtemperature, qos: 0, payload: 0

shelly.0
2023-11-22 20:08:09.679 debug [MQTT] Publish: x.x.x.231 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1) - topic: shellies/shellyswitch25-111111111111/temperature_f, qos: 0, payload: 108.38

shelly.0
2023-11-22 20:08:09.678 debug [MQTT] State change x.x.x.231 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1): shellies/shellyswitch25-111111111111/temperature -> state: SHSW-25#111111111111#1.temperatureC, value: 42.44

shelly.0
2023-11-22 20:08:09.676 debug [MQTT] Publish: x.x.x.231 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1) - topic: shellies/shellyswitch25-111111111111/temperature, qos: 0, payload: 42.44

shelly.0
2023-11-22 20:08:09.674 debug [MQTT] Publish: x.x.x.231 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1) - topic: shellies/shellyswitch25-111111111111/input/0, qos: 0, payload: 0

shelly.0
2023-11-22 20:08:09.672 debug [MQTT] Publish: x.x.x.231 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1) - topic: shellies/shellyswitch25-111111111111/input/1, qos: 0, payload: 0

shelly.0
2023-11-22 20:08:09.670 debug [MQTT] Publish: x.x.x.231 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1) - topic: shellies/shellyswitch25-111111111111/relay/energy, qos: 0, payload: 0

shelly.0
2023-11-22 20:08:09.668 debug [MQTT] Publish: x.x.x.231 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1) - topic: shellies/shellyswitch25-111111111111/roller/0/energy, qos: 0, payload: 0

shelly.0
2023-11-22 20:08:09.666 debug [MQTT] Publish: x.x.x.231 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1) - topic: shellies/shellyswitch25-111111111111/relay/power, qos: 0, payload: 0.00

shelly.0
2023-11-22 20:08:09.664 debug [MQTT] Publish: x.x.x.231 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1) - topic: shellies/shellyswitch25-111111111111/roller/0/power, qos: 0, payload: 0.00

shelly.0
2023-11-22 20:08:09.662 debug [MQTT] Publish: x.x.x.231 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1) - topic: shellies/shellyswitch25-111111111111/roller/0/stop_reason, qos: 0, payload: normal

shelly.0
2023-11-22 20:08:09.660 debug [MQTT] Publish: x.x.x.231 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1) - topic: shellies/shellyswitch25-111111111111/roller/0/pos, qos: 0, payload: 0

shelly.0
2023-11-22 20:08:09.659 debug [MQTT] Publish: x.x.x.231 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1) - topic: shellies/shellyswitch25-111111111111/roller/0, qos: 0, payload: stop

shelly.0
2023-11-22 20:08:02.635 debug [deviceStatusUpdate] shellyplus2pm#_Gen2_xxxxx#1: false

shelly.0
2023-11-22 20:07:57.638 debug [deviceStatusUpdate] SHSW-25#111111111111#1: true

shelly.0
2023-11-22 20:07:57.635 debug [onlineCheck] Checking shellyplus2pm#_Gen2_xxxxx#1 on 10.0.0.214:80

shelly.0
2023-11-22 20:07:57.633 debug [onlineCheck] Checking SHSW-25#111111111111#1 on x.x.x.231:80

shelly.0
2023-11-22 20:07:55.990 error [MQTT] Unable to get mqttprefix of client with id "shellyplus2pm-_Gen2_xxxxx"

shelly.0
2023-11-22 20:07:55.986 error [MQTT] Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined): TypeError: Cannot read properties of undefined (reading 'replace')

shelly.0
2023-11-22 20:07:55.986 debug [MQTT] Started mqttprefix fallback via HTTP for (undefined / undefined / undefined) (Gen 1)

shelly.0
2023-11-22 20:07:55.985 debug [httpIoBrokerState] HTTP request error for (undefined / undefined / undefined) "/rpc/Cloud.GetConfig": TypeError: Cannot read properties of undefined (reading 'replace')

shelly.0
2023-11-22 20:07:55.985 debug [httpIoBrokerState] HTTP request error for (undefined / undefined / undefined) "/rpc/Mqtt.GetConfig": TypeError: Cannot read properties of undefined (reading 'replace')

shelly.0
2023-11-22 20:07:55.985 debug [httpIoBrokerState] HTTP request error for (undefined / undefined / undefined) "/rpc/WiFi.GetConfig": TypeError: Cannot read properties of undefined (reading 'replace')

shelly.0
2023-11-22 20:07:55.984 debug [httpIoBrokerState] HTTP request error for (undefined / undefined / undefined) "/rpc/Shelly.GetDeviceInfo": TypeError: Cannot read properties of undefined (reading 'replace')

shelly.0
2023-11-22 20:07:55.983 debug [httpIoBrokerState] HTTP request error for (undefined / undefined / undefined) "/rpc/Shelly.GetStatus": TypeError: Cannot read properties of undefined (reading 'replace')

shelly.0
2023-11-22 20:07:55.983 debug [httpIoBrokerState] HTTP request error for (undefined / undefined / undefined) "/rpc/Cover.GetConfig?id=0": TypeError: Cannot read properties of undefined (reading 'replace')

shelly.0
2023-11-22 20:07:55.983 debug [httpIoBrokerState] HTTP request error for (undefined / undefined / undefined) "/rpc/Input.GetConfig?id=1": TypeError: Cannot read properties of undefined (reading 'replace')

shelly.0
2023-11-22 20:07:55.983 debug [httpIoBrokerState] HTTP request error for (undefined / undefined / undefined) "/rpc/Input.GetConfig?id=0": TypeError: Cannot read properties of undefined (reading 'replace')

shelly.0
2023-11-22 20:07:55.983 debug [httpIoBrokerState] HTTP request error for (undefined / undefined / undefined) "/rpc/Switch.GetConfig?id=1": TypeError: Cannot read properties of undefined (reading 'replace')

shelly.0
2023-11-22 20:07:55.982 debug [httpIoBrokerState] HTTP request error for (undefined / undefined / undefined) "/rpc/Switch.GetConfig?id=0": AxiosError: timeout of 8000ms exceeded

shelly.0
2023-11-22 20:07:48.556 debug [deviceStatusUpdate] Online devices: ["SHSW-25#111111111111#1"]

shelly.0
2023-11-22 20:07:48.503 debug [MQTT Server] Close for 10.0.0.214 ( (undefined / undefined / undefined))

shelly.0
2023-11-22 20:07:48.502 debug [MQTT] Destroying

shelly.0
2023-11-22 20:07:48.502 debug [deviceStatusUpdate] shellyplus2pm#_Gen2_xxxxx#1: false

shelly.0
2023-11-22 20:07:48.502 debug [BaseClient] Destroying 10.0.0.214 (shellyplus2pm / shellyplus2pm-_Gen2_xxxxx / shellyplus2pm#_Gen2_xxxxx#1)

shelly.0
2023-11-22 20:07:48.502 info [MQTT] Client Close: 10.0.0.214 (shellyplus2pm / shellyplus2pm-_Gen2_xxxxx / shellyplus2pm#_Gen2_xxxxx#1) (false)

shelly.0
2023-11-22 20:07:48.499 debug [MQTT Server] End for 10.0.0.214 (10.0.0.214 (shellyplus2pm / shellyplus2pm-_Gen2_xxxxx / shellyplus2pm#_Gen2_xxxxx#1))

shelly.0
2023-11-22 20:07:47.980 debug [httpIoBrokerState] HTTP request error for 10.0.0.214 (shellyplus2pm / shellyplus2pm-_Gen2_xxxxx / shellyplus2pm#_Gen2_xxxxx#1) "/rpc/Sys.GetConfig": AxiosError: timeout of 8000ms exceeded

shelly.0
2023-11-22 20:07:39.969 debug [deviceStatusUpdate] Online devices: ["SHSW-25#111111111111#1","shellyplus2pm#_Gen2_xxxxx#1"]

shelly.0
2023-11-22 20:07:39.903 debug [deviceStatusUpdate] shellyplus2pm#_Gen2_xxxxx#1: true

shelly.0
2023-11-22 20:07:39.884 debug [setIP] New IP for device shellyplus2pm#_Gen2_xxxxx#1: 10.0.0.214 (source: MQTT connect)

shelly.0
2023-11-22 20:07:39.884 debug [MQTT] Last will for client id "shellyplus2pm-_Gen2_xxxxx" saved: {"retain":true,"qos":0,"topic":"shellyplus2pm-_Gen2_xxxxx/online","payload":{"type":"Buffer","data":[102,97,108,115,101]}}

shelly.0
2023-11-22 20:07:39.884 debug [createObjects] Finished object creation of (shellyplus2pm / shellyplus2pm-_Gen2_xxxxx / shellyplus2pm#_Gen2_xxxxx#1)

shelly.0
2023-11-22 20:07:39.751 debug [deviceStatusUpdate] SHSW-25#111111111111#1: true

shelly.0
2023-11-22 20:07:39.725 debug [MQTT] Publish: x.x.x.231 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1) - topic: shellies/shellyswitch25-111111111111/voltage, qos: 0, payload: 241.99

shelly.0
2023-11-22 20:07:39.723 debug [MQTT] Publish: x.x.x.231 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1) - topic: shellies/shellyswitch25-111111111111/temperature_status, qos: 0, payload: Normal

shelly.0
2023-11-22 20:07:39.722 debug [MQTT] State change x.x.x.231 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1): shellies/shellyswitch25-111111111111/overtemperature -> state: SHSW-25#111111111111#1.overtemperature, value: false

shelly.0
2023-11-22 20:07:39.721 debug [MQTT] Publish: x.x.x.231 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1) - topic: shellies/shellyswitch25-111111111111/overtemperature, qos: 0, payload: 0

shelly.0
2023-11-22 20:07:39.719 debug [MQTT] Publish: x.x.x.231 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1) - topic: shellies/shellyswitch25-111111111111/temperature_f, qos: 0, payload: 108.26

shelly.0
2023-11-22 20:07:39.718 debug [MQTT] State change x.x.x.231 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1): shellies/shellyswitch25-111111111111/temperature -> state: SHSW-25#111111111111#1.temperatureC, value: 42.36

shelly.0
2023-11-22 20:07:39.716 debug [MQTT] Publish: x.x.x.231 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1) - topic: shellies/shellyswitch25-111111111111/temperature, qos: 0, payload: 42.36

shelly.0
2023-11-22 20:07:39.714 debug [MQTT] State change x.x.x.231 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1): shellies/shellyswitch25-111111111111/input/0 -> state: SHSW-25#111111111111#1.Relay0.Input, value: false

shelly.0
2023-11-22 20:07:39.714 debug [MQTT] Publish: x.x.x.231 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1) - topic: shellies/shellyswitch25-111111111111/input/0, qos: 0, payload: 0

shelly.0
2023-11-22 20:07:39.712 debug [MQTT] State change x.x.x.231 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1): shellies/shellyswitch25-111111111111/input/1 -> state: SHSW-25#111111111111#1.Relay1.Input, value: false

shelly.0
2023-11-22 20:07:39.711 debug [MQTT] Publish: x.x.x.231 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1) - topic: shellies/shellyswitch25-111111111111/input/1, qos: 0, payload: 0

shelly.0
2023-11-22 20:07:39.709 debug [MQTT] Publish: x.x.x.231 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1) - topic: shellies/shellyswitch25-111111111111/relay/energy, qos: 0, payload: 0

shelly.0
2023-11-22 20:07:39.708 debug [MQTT] State change x.x.x.231 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1): shellies/shellyswitch25-111111111111/roller/0/energy -> state: SHSW-25#111111111111#1.Shutter.Energy, value: 0

shelly.0
2023-11-22 20:07:39.707 debug [MQTT] Publish: x.x.x.231 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1) - topic: shellies/shellyswitch25-111111111111/roller/0/energy, qos: 0, payload: 0

shelly.0
2023-11-22 20:07:39.705 debug [MQTT] Publish: x.x.x.231 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1) - topic: shellies/shellyswitch25-111111111111/relay/power, qos: 0, payload: 0.00

shelly.0
2023-11-22 20:07:39.703 debug [MQTT] State change x.x.x.231 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1): shellies/shellyswitch25-111111111111/roller/0/power -> state: SHSW-25#111111111111#1.Shutter.Power, value: 0

shelly.0
2023-11-22 20:07:39.702 debug [MQTT] Publish: x.x.x.231 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1) - topic: shellies/shellyswitch25-111111111111/roller/0/power, qos: 0, payload: 0.00

shelly.0
2023-11-22 20:07:39.700 debug [MQTT] Publish: x.x.x.231 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1) - topic: shellies/shellyswitch25-111111111111/roller/0/stop_reason, qos: 0, payload: normal

shelly.0
2023-11-22 20:07:39.699 debug [MQTT] State change x.x.x.231 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1): shellies/shellyswitch25-111111111111/roller/0/pos -> state: SHSW-25#111111111111#1.Shutter.Position, value: 0

shelly.0
2023-11-22 20:07:39.698 debug [MQTT] Publish: x.x.x.231 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1) - topic: shellies/shellyswitch25-111111111111/roller/0/pos, qos: 0, payload: 0

shelly.0
2023-11-22 20:07:39.696 debug [MQTT] State change x.x.x.231 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1): shellies/shellyswitch25-111111111111/roller/0 -> state: SHSW-25#111111111111#1.Shutter.state, value: "stop"

shelly.0
2023-11-22 20:07:39.695 debug [MQTT] Publish: x.x.x.231 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1) - topic: shellies/shellyswitch25-111111111111/roller/0, qos: 0, payload: stop

shelly.0
2023-11-22 20:07:39.692 debug [MQTT] Publish: x.x.x.231 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1) - topic: shellies/shellyswitch25-111111111111/info, qos: 0, payload: {"wifi_sta":{"connected":true,"ssid":"CSR","ip":"x.x.x.231","rssi":-78},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":true},"time":"20:07","unixtime":1700680059,"serial":1,"has_update":false,"mac":"111111111111","cfg_changed_cnt":0,"actions_stats":{"skipped":0},"rollers":[{"state":"stop","source":"input","power":0.00,"is_valid":true,"safety_switch":false,"overtemperature":false,"stop_reason":"normal","last_direction":"close","current_pos":0,"calibrating":false,"positioning":true}],"meters":[{"power":0.00,"overpower":0.00,"is_valid":true,"timestamp":1700683659,"counters":[0.000, 0.000, 0.000],"total":0},{"power":0.00,"overpower":0.00,"is_valid":true,"timestamp":1700683659,"counters":[0.000, 0.000, 0.000],"total":0}],"inputs":[{"input":0,"event":"","event_cnt":0},{"input":0,"event":"","event_cnt":0}],"temperature":42.36,"overtemperature":false,"tmp":{"tC":42.36,"tF":108.26, "is_valid":true},"temperature_status":"Normal","update":{"status":"idle","has_update":false,"new_version":"20230913-112234/v1.14.0-gcb84623","old_version":"20230913-112234/v1.14.0-gcb84623","beta_version":"20231107-163214/v1.14.1-rc1-g0617c15"},"ram_total":50720,"ram_free":36184,"fs_size":233681,"fs_free":144325,"voltage":241.99,"uptime":3411}

shelly.0
2023-11-22 20:07:39.668 debug [MQTT] Publish: x.x.x.231 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1) - topic: shellies/shellyswitch25-111111111111/announce, qos: 0, payload: {"id":"shellyswitch25-111111111111","model":"SHSW-25","mac":"111111111111","ip":"x.x.x.231","new_fw":false,"fw_ver":"20230913-112234/v1.14.0-gcb84623","mode":"roller"}

shelly.0
2023-11-22 20:07:39.668 debug [setIP] New IP for device SHSW-25#111111111111#1: x.x.x.231 (source: Gen 1 shellies/announce)

shelly.0
2023-11-22 20:07:39.668 debug [MQTT] Publish: 10.0.0.214 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1) - topic: shellies/announce, qos: 0, payload: {"id":"shellyswitch25-111111111111","model":"SHSW-25","mac":"111111111111","ip":"x.x.x.231","new_fw":false,"fw_ver":"20230913-112234/v1.14.0-gcb84623","mode":"roller"}

shelly.0
2023-11-22 20:07:39.663 debug [MQTT] Publish: 10.0.0.214 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1) - topic: shellies/shellyswitch25-111111111111/online, qos: 0, payload: true

shelly.0
2023-11-22 20:07:39.662 debug [MQTT] Subscribe 10.0.0.214 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1): {"cmd":"subscribe","retain":false,"qos":1,"dup":false,"length":57,"topic":null,"payload":null,"subscriptions":[{"topic":"shellies/shellyswitch25-111111111111/relay/0/command","qos":0}],"messageId":1520}

shelly.0
2023-11-22 20:07:39.662 debug [MQTT] Subscribe 10.0.0.214 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1): {"cmd":"subscribe","retain":false,"qos":1,"dup":false,"length":57,"topic":null,"payload":null,"subscriptions":[{"topic":"shellies/shellyswitch25-111111111111/relay/1/command","qos":0}],"messageId":1519}

shelly.0
2023-11-22 20:07:39.661 debug [MQTT] Subscribe 10.0.0.214 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1): {"cmd":"subscribe","retain":false,"qos":1,"dup":false,"length":58,"topic":null,"payload":null,"subscriptions":[{"topic":"shellies/shellyswitch25-111111111111/roller/0/command","qos":0}],"messageId":1518}

shelly.0
2023-11-22 20:07:39.660 debug [MQTT] Subscribe 10.0.0.214 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1): {"cmd":"subscribe","retain":false,"qos":1,"dup":false,"length":62,"topic":null,"payload":null,"subscriptions":[{"topic":"shellies/shellyswitch25-111111111111/roller/0/command/pos","qos":0}],"messageId":1517}

shelly.0
2023-11-22 20:07:39.659 debug [MQTT] Subscribe 10.0.0.214 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1): {"cmd":"subscribe","retain":false,"qos":1,"dup":false,"length":49,"topic":null,"payload":null,"subscriptions":[{"topic":"shellies/shellyswitch25-111111111111/command","qos":0}],"messageId":1516}

shelly.0
2023-11-22 20:07:39.658 debug [MQTT] Subscribe 10.0.0.214 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1): {"cmd":"subscribe","retain":false,"qos":1,"dup":false,"length":21,"topic":null,"payload":null,"subscriptions":[{"topic":"shellies/command","qos":0}],"messageId":1515}

shelly.0
2023-11-22 20:07:39.566 debug [MQTT] setMqttPrefixByWill (Gen 1): shellyswitch25-111111111111

shelly.0
2023-11-22 20:07:39.565 debug [httpIoBrokerState] HTTP request error for 10.0.0.214 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1) "/roller/0": AxiosError: timeout of 8000ms exceeded

shelly.0
2023-11-22 20:07:39.031 debug [createObjects] Starting object creation of (shellyplus2pm / shellyplus2pm-_Gen2_xxxxx / shellyplus2pm#_Gen2_xxxxx#1) for mode:

shelly.0
2023-11-22 20:07:38.501 info [MQTT] Device with client id "shellyplus2pm-_Gen2_xxxxx" connected!

shelly.0
2023-11-22 20:07:38.500 debug [MQTT] Client connected: {"cmd":"connect","retain":false,"qos":0,"dup":false,"length":97,"topic":null,"payload":null,"protocolId":"MQTT","protocolVersion":4,"will":{"retain":true,"qos":0,"topic":"shellyplus2pm-_Gen2_xxxxx/online","payload":{"type":"Buffer","data":[102,97,108,115,101]}},"clean":true,"keepalive":60,"clientId":"shellyplus2pm-_Gen2_xxxxx","username":"admin","password":{"type":"Buffer","data":[80,82,115,69,52,94,55,35]}}

shelly.0
2023-11-22 20:07:38.496 debug [MQTT Server] New connection from 10.0.0.214

shelly.0
2023-11-22 20:07:31.561 debug [httpIoBrokerState] HTTP request error for 10.0.0.214 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1) "/settings/relay/1": AxiosError: timeout of 8000ms exceeded

shelly.0
2023-11-22 20:07:23.554 debug [httpIoBrokerState] HTTP request error for 10.0.0.214 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1) "/status": AxiosError: timeout of 8000ms exceeded

shelly.0
2023-11-22 20:07:15.549 debug [httpIoBrokerState] HTTP request error for 10.0.0.214 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1) "/settings/relay/0": AxiosError: timeout of 8000ms exceeded

shelly.0
2023-11-22 20:07:07.575 debug [firmwareUpdate] Starting update on every device

shelly.0
2023-11-22 20:07:07.544 debug [httpIoBrokerState] HTTP request error for 10.0.0.214 (shellyswitch25 / shellyswitch25-111111111111 / SHSW-25#111111111111#1) "/settings": AxiosError: timeout of 8000ms exceeded

Version of nodejs

18.18.2

Version of ioBroker js-controller

5.0.16

Version of adapter

6.6.1

Copy link

Thanks for reporting a new issue @HReimann!

  1. Please make sure your topic is not covered in the documentation
  2. Ensure that you use the latest beta version (not the current stable version): 6.6.1
  3. Please attach all necessary log files (in debug mode!), screenshots and other information to reproduce this issue
  4. Search for the issue topic in other/closed issues to avoid duplicates!

Otherwise this issue will be closed.

@klein0r
Copy link
Contributor

klein0r commented Nov 23, 2023

2023-11-22 20:07:55.990 error [MQTT] Unable to get mqttprefix of client with id "shellyplus2pm-_Gen2_xxxxx"

Die Client-ID darf nicht angepasst werden...

Siehe https://github.com/iobroker-community-adapters/ioBroker.shelly/blob/v6.6.1/docs/de/protocol-mqtt.md

shelly gen2

@klein0r klein0r closed this as completed Nov 23, 2023
@klein0r klein0r added invalid This doesn't seem right RTFM Read the fine manual labels Nov 23, 2023
@HReimann
Copy link
Author

Client ID wurde nicht angepasst, allerdings sieht dies bei mir wie folgt aus:
image

@klein0r
Copy link
Contributor

klein0r commented Nov 24, 2023

Client ID wurde nicht angepasst, allerdings sieht dies bei mir wie folgt aus:

Dann ist die Frage, warum im ioBroker eine andere Client-ID auftaucht als konfiguriert wurde.

@klein0r klein0r reopened this Nov 24, 2023
@schmupu
Copy link
Contributor

schmupu commented Nov 24, 2023

Ich habe das gleiche Phänomen seit ein paar Tagen mit 2 shelly1mini . Am Shelly habe ich keine Änderungen vorgenommen.
Ich empfange Meldungen wie z.B. shelly.0.shelly1mini#6055f99894f4#1.Relay0.Switch = true / false. Nur senden ist nicht möglich.

Firmware Shelly 1 Mini: 1.0.8

--

@HReimann
Copy link
Author

Hallo Sorry, hätte noch erwähnen müssen das ich die Seriennummern und Domänen Namen entsprechende ersetzt habe.
Die IP 10.0.0.XXX kommen daher das der IOBROKER bei mir als Stack auf einem Docker Swarm betrieben wird.

@HReimann
Copy link
Author

P.S.: Im Shelly MQTT Log sind diese Meldungen enthalten:
[
{
"data": "Connected.",
"ts": 1700843687.892,
"level": 0
},
{
"ts": 1700843686.89,
"level": 2,
"data": "shelly_debug.cpp:135 Streaming logs to 172.xx.xx.106:56801 (ws 1 json 1)"
},
{
"ts": 1700843686.906,
"level": 2,
"data": "shos_rpc_inst.c:230 kvs.get via WS_in 172.xx.xx.106:56800"
},
{
"ts": 1700843693.873,
"level": 0,
"data": "shos_mqtt_conn.c:489 MQTT0: Connect status 257"
},
{
"ts": 1700843693.88,
"level": 2,
"data": "shos_mqtt_conn.c:844 MQTT0: Connecting after 4087 ms"
},
{
"ts": 1700843697.977,
"level": 2,
"data": "shos_mqtt_conn.c:601 MQTT0: Connecting to iob.xxxx.de:1882 (172.xx.xx.220:1882)"
},
{
"ts": 1700843698.28,
"level": 2,
"data": "shos_rpc_inst.c:230 wifi.scan via WS_in 172.xx.xx.106:56800"
},
{
"ts": 1700843700.578,
"level": 2,
"data": "shelly_notification:163 Status change of switch:0: {"id":0,"aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1700843699,"total":0.000}}"
},
{
"ts": 1700843700.597,
"level": 2,
"data": "shelly_notification:163 Status change of switch:1: {"id":1,"aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1700843699,"total":68.582}}"
},
{
"ts": 1700843707.993,
"level": 0,
"data": "shos_mqtt_conn.c:489 MQTT0: Connect status 257"
},
{
"ts": 1700843708,
"level": 2,
"data": "shos_mqtt_conn.c:844 MQTT0: Connecting after 8843 ms"
},
{
"ts": 1700843716.853,
"level": 2,
"data": "shos_mqtt_conn.c:601 MQTT0: Connecting to iob.xxxx.de:1882 (172.xx.xx.220:1882)"
},
{
"ts": 1700843726.883,
"level": 0,
"data": "shos_mqtt_conn.c:489 MQTT0: Connect status 257"
},
{
"ts": 1700843726.89,
"level": 2,
"data": "shos_mqtt_conn.c:844 MQTT0: Connecting after 17711 ms"
},
{
"ts": 1700843744.643,
"level": 2,
"data": "shos_mqtt_conn.c:601 MQTT0: Connecting to iob.xxxx.de:1882 (172.xx.xx.220:1882)"
},
{
"ts": 1700843754.653,
"level": 0,
"data": "shos_mqtt_conn.c:489 MQTT0: Connect status 257"
},
{
"ts": 1700843754.66,
"level": 2,
"data": "shos_mqtt_conn.c:844 MQTT0: Connecting after 34321 ms"
},
{
"ts": 1700843760.567,
"level": 2,
"data": "shelly_notification:163 Status change of switch:0: {"id":0,"aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1700843759,"total":0.000}}"
},
{
"ts": 1700843760.586,
"level": 2,
"data": "shelly_notification:163 Status change of switch:1: {"id":1,"aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1700843759,"total":68.582}}"
},
{
"ts": 1700843788.991,
"level": 2,
"data": "shos_mqtt_conn.c:601 MQTT0: Connecting to iob.xxxx.de:1882 (172.xx.xx.220:1882)"
},
{
"ts": 1700843799.003,
"level": 0,
"data": "shos_mqtt_conn.c:489 MQTT0: Connect status 257"
},
{
"ts": 1700843799.01,
"level": 2,
"data": "shos_mqtt_conn.c:844 MQTT0: Connecting after 54623 ms"
},
{
"ts": 1700843820.552,
"level": 2,
"data": "shelly_notification:163 Status change of switch:0: {"id":0,"aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1700843819,"total":0.000}}"
},
{
"ts": 1700843820.57,
"level": 2,
"data": "shelly_notification:163 Status change of switch:1: {"id":1,"aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1700843819,"total":68.582}}"
},
{
"ts": 1700843853.672,
"level": 2,
"data": "shos_mqtt_conn.c:601 MQTT0: Connecting to iob.xxxx.de:1882 (172.xx.xx.220:1882)"
},
{
"ts": 1700843863.673,
"level": 0,
"data": "shos_mqtt_conn.c:489 MQTT0: Connect status 257"
},
{
"ts": 1700843863.68,
"level": 2,
"data": "shos_mqtt_conn.c:844 MQTT0: Connecting after 58626 ms"
},
{
"ts": 1700843880.562,
"level": 2,
"data": "shelly_notification:163 Status change of switch:0: {"id":0,"aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1700843879,"total":0.000}}"
},
{
"ts": 1700843880.58,
"level": 2,
"data": "shelly_notification:163 Status change of switch:1: {"id":1,"aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1700843879,"total":68.582}}"
},
{
"ts": 1700843922.348,
"level": 2,
"data": "shos_mqtt_conn.c:601 MQTT0: Connecting to iob.xxxx.de:1882 (172.xx.xx.220:1882)"
}
]

@schmupu
Copy link
Contributor

schmupu commented Nov 24, 2023

Problem ist bei mir behoben!
Ich habe folgendes am Shelly 1 Mini unter MQTT geändert
Bildschirmfoto 2023-11-24 um 18 05 14
Nachdem ich die Checkbox unter "Enable RPC over MQTT" aktiviert (die unteren beiden Einträge waren vorher schon aktiviert, der obere muss deaktiviert sein) und den Shelly rebooted hatte (wichtig!), hat alles wieder wunderbar.
@HReimann vielleicht hilft das auch bei Dir.

@klein0r
Copy link
Contributor

klein0r commented Nov 25, 2023

@HReimann
Copy link
Author

HReimann commented Nov 25, 2023

@schmupu : Danke für den Tipp, leider funktioniert dieser bei mir nicht.
Im Shelly wird noch immer mit Disconnected im MQTT angezeigt.
image

Die Logs im Iobroker sehen dabei so aus.

shelly.0 2023-11-25 19:31:47.515 debug [deviceStatusUpdate] shellyplus2pm#a0a3b3c2d694#1: false

shelly.0 | 2023-11-25 19:31:47.515 | debug | [BaseClient] Destroying 10.0.0.214 (shellyplus2pm / shellyplus2pm-a0a3b3c2d694 / shellyplus2pm#a0a3b3c2d694#1)

shelly.0 | 2023-11-25 19:31:47.515 | info | [MQTT] Client Close: 10.0.0.214 (shellyplus2pm / shellyplus2pm-a0a3b3c2d694 / shellyplus2pm#a0a3b3c2d694#1) (false)

shelly.0 | 2023-11-25 19:31:47.509 | debug | [MQTT Server] End for 10.0.0.214 (10.0.0.214 (shellyplus2pm / shellyplus2pm-a0a3b3c2d694 / shellyplus2pm#a0a3b3c2d694#1))

shelly.0 | 2023-11-25 19:31:46.965 | debug | [httpIoBrokerState] HTTP request error for 10.0.0.214 (shellyplus2pm / shellyplus2pm-a0a3b3c2d694 / shellyplus2pm#a0a3b3c2d694#1) "/rpc/Sys.GetConfig": AxiosError: timeout of 8000ms exceeded

shelly.0 | 2023-11-25 19:31:38.958 | debug | [deviceStatusUpdate] Online devices: ["SHSW-25#C8C9A375D01C#1","shellyplus2pm#a0a3b3c2d694#1"]

shelly.0 | 2023-11-25 19:31:38.901 | debug | [deviceStatusUpdate] shellyplus2pm#a0a3b3c2d694#1: true

Ab und zu erscheint auch diese Fehlermeldung:
[MQTT] Unable to get mqttprefix of client with id "shellyplus2pm-a0a3b3c2d694"

@stale stale bot added the wontfix This will not be worked on label Mar 17, 2024
@iobroker-community-adapters iobroker-community-adapters deleted a comment from stale bot Mar 17, 2024
@mcm1957 mcm1957 removed the wontfix This will not be worked on label Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right RTFM Read the fine manual
Projects
None yet
Development

No branches or pull requests

4 participants