-
Notifications
You must be signed in to change notification settings - Fork 4
Description
I have two Meross MSS110 that are single plugs, no sensors.
The addon can recognize these devices but seems to have some errors.
Initizializing the device 1712216531717925131334298f10b237.
Initizializing the device 1712215321760125131334298f10b22d.
[Device][John’s Corner] Device 1712216531717925131334298f10b237: connected
[Switch][John’s Corner] Preparation.
[Device][John’s Desk] Device 1712215321760125131334298f10b22d: connected
[Switch][John’s Desk] Preparation.
[Device][John’s Corner] The channel 0 have not abilities to be a sensor
[WARN][Switch][John’s Corner] Impossibile retrieve real status: Cannot read property 'togglex' of undefined.
[Switch][John’s Corner] Message send to homeassistant/switch/1712216531717925131334298f10b237_0/state.
[Switch][John’s Corner] Message send to homeassistant/switch/1712216531717925131334298f10b237_0/config.
[Switch][John’s Corner] State send.
[Switch][John’s Corner] Config send.
[Device][John’s Desk] The channel 0 have not abilities to be a sensor
[Switch][John’s Corner] Listening on base topic homeassistant/switch/1712216531717925131334298f10b237_0/.
[Switch][John’s Corner] Message arrived to homeassistant/switch/1712216531717925131334298f10b237_0/state.
[Switch][John’s Corner] Message arrived to homeassistant/switch/1712216531717925131334298f10b237_0/config.
[WARN][Switch][John’s Desk] Impossibile retrieve real status: Cannot read property 'togglex' of undefined.
[Switch][John’s Desk] Message send to homeassistant/switch/1712215321760125131334298f10b22d_0/state.
[Switch][John’s Desk] Message send to homeassistant/switch/1712215321760125131334298f10b22d_0/config.
[Switch][John’s Desk] State send.
[Switch][John’s Desk] Config send.
[Switch][John’s Desk] Listening on base topic homeassistant/switch/1712215321760125131334298f10b22d_0/.
[Switch][John’s Desk] Message arrived to homeassistant/switch/1712215321760125131334298f10b22d_0/state.
[Switch][John’s Desk] Message arrived to homeassistant/switch/1712215321760125131334298f10b22d_0/config.
[Device][John’s Corner] Cannot read property 'channel' of undefined
Using Node-Red debug, I viewed and then published this JSON to try and turn on the switch.
{"name":"John’s Corner","state":1,"device":{"name":"John’s Corner","sw_version":"1.1.26","identifiers":["1712216531717925131334298f10b237"]}}
to the topic
homeassistant/switch/1712215321760125131334298f10b22d_0/state
But this JSON payload did not turn on the switch. If I turn on the switch from the Meross app, the state does not change to "1" in my debug viewer.
I used a man in the middle proxy to see that when I turn on the switch from the app, this is the raw data:
POST http://192.168.x.xxx/config HTTP/1.1
Host: 192.168.x.xxxx
Accept: */*
AppLanguage: en
Authorization: Basic xxxxxx
Connection: keep-alive
AppVersion: 1.4.4
Accept-Encoding: gzip, deflate
Accept-Language: en-US;q=1
Content-Type: application/json
vender: meross
Content-Length: 270
User-Agent: intellect_socket/1.4.4 (iPhone; iOS 12.1.2; Scale/2.00)
Connection: keep-alive
{"payload":{"toggle":{"onoff":1}},"header":{"messageId":"c6262xxxxxxxxx688b232","method":"SET","from":"http:\/\/192.168.x.xxx\/config","namespace":"Appliance.Control.Toggle","timestamp":1548282093,"sign":"87998xxxxxxxxxxxc73143d01bb406d1f7","payloadVersion":1}}
The JSON data is here:
header
from=http://192.168.x.xxx/config
messageId=c626291xxxxxxxxxxxxxxe688b232
method=SET
namespace=Appliance.Control.Toggle
payloadVersion=1
sign=87998b841axxxxxxxxxxxxb406d1f7
timestamp=1548282093
payload
toggle
onoff=1
I am not a programmer but I would like to help if it is necessary or feasible. Thank you for your work on this so far.