iobroker-community-adapters / ioBroker.shelly

Integrate your Shelly devices into ioBroker via MQTT or CoIoT
Other
159 stars 62 forks source link

Shelly Dimmer 2 MQTT missing required property #670

Closed hometm closed 1 year ago

hometm commented 1 year ago

Shelly device

Shelly Dimmer 2

Protocol (CoAP / MQTT)

mqtt

The problem

Using Shelly Adapter V5.3.2:

Shelly Dimmer 2 (FW 1.11.7) shown the following error Object of state "mqtt.0.shellies.shellydimmer2-485519008xxx.light.0" is missing the required property "common.type"

The Object is not related. Even deleting all other instances (of other shelly devices) didn't fix the issue

Regards, Tobias

Version of nodejs

12.22.6

Version of ioBroker js-controller

4.0.23

Version of Adapter

5.3.2

Operating system running ioBroker

buanet Linux Container

Checklist of files to include below

Additional information & file uploads

MQTT Log

2022-09-26 10:25:08.031 warn Object of state "mqtt.0.shellies.shellydimmer2-4855190086DB.light.0" is missing the required property "common.type"
mqtt.0 2022-09-26 10:25:08.031 warn Object of state "mqtt.0.shellies.shellydimmer2-4855190086DB.light.0" is missing the required property "common.type"
mqtt.0 2022-09-26 10:24:38.233 info Client [shellydimmer2-4855190086DB] publishOnSubscribe
mqtt.0 2022-09-26 10:24:38.231 info Client [shellydimmer2-4855190086DB] publishOnSubscribe
mqtt.0 2022-09-26 10:24:38.231 info Client [shellydimmer2-4855190086DB] publishOnSubscribe
mqtt.0 2022-09-26 10:24:38.230 info Client [shellydimmer2-4855190086DB] publishOnSubscribe
mqtt.0 2022-09-26 10:24:38.229 info Client [shellydimmer2-4855190086DB] publishOnSubscribe
mqtt.0 2022-09-26 10:24:38.050 warn Object of state "mqtt.0.shellies.shellydimmer2-4855190086DB.light.0" is missing the required property "common.type"
mqtt.0 2022-09-26 10:24:38.031 info Client [shellydimmer2-4855190086DB] subscribes on "mqtt.0.shellies.shellydimmer2-4855190086DB.light.0.command"
mqtt.0 2022-09-26 10:24:38.031 info Client [shellydimmer2-4855190086DB] subscribes on "mqtt.0.shellies.shellydimmer2-4855190086DB.light.0.set"
mqtt.0 2022-09-26 10:24:38.030 info Client [shellydimmer2-4855190086DB] subscribes on "mqtt.0.shellies.shellydimmer2-4855190086DB.light.0.dim"
mqtt.0 2022-09-26 10:24:38.029 info Client [shellydimmer2-4855190086DB] subscribes on "mqtt.0.shellies.shellydimmer2-4855190086DB.command"

Shelly Log

2022-09-26 10:25:09.323 info Starting in MQTT mode. Listening on 0.0.0.0:1882
shelly.0 2022-09-26 10:25:09.226 info starting. Version 5.3.2 in /opt/iobroker/node_modules/iobroker.shelly, node: v12.22.6, js-controller: 4.0.23
shelly.0 2022-09-26 10:25:03.250 info Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
shelly.0 2022-09-26 10:25:03.248 info terminating
shelly.0 2022-09-26 10:25:03.247 info Closing Adapter
shelly.0 2022-09-26 10:25:03.244 info Got terminate signal TERMINATE_YOURSELF
shelly.0 2022-09-26 10:23:54.212 info Starting in MQTT mode. Listening on 0.0.0.0:1882
shelly.0 2022-09-26 10:23:54.114 info starting. Version 5.3.2 in /opt/iobroker/node_modules/iobroker.shelly, node: v12.22.6, js-controller: 4.0.23
shelly.0 2022-09-26 10:23:35.621 info Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
shelly.0 2022-09-26 10:23:35.619 info terminating
shelly.0 2022-09-26 10:23:35.617 info Closing Adapter

shelly

chris299 commented 1 year ago

@hometm I also use these devices & the shelly adapter, but I don't have these data objects like mqtt.0.shelly.... how do you get these? mine are all about shelly.0.SHDM-2#4C75....

hometm commented 1 year ago

the problem appeared after restarting shelly adapter. Now, I did a restart of shelly adapter ans mqtt adapter- everything works. I think after configuring shelly adapter, a restart of mqtt adapter is also required.

Thanks Tobias

klein0r commented 1 year ago

I think after configuring shelly adapter, a restart of mqtt adapter is also required.

MQTT and Shelly are two completely separated adapters. They don't share any information, objects or messages.