Open michal40 opened 3 months ago
Hi @michal40
I assume this device connects to a meross hub like the MSH300HK?
is it just a presence sensor or does it have any other sensors?
connects directly to wifi via matter. I have added sensor a matter to my hub ( Samsung Smarthings station). The device has a microwave sensor for detecting presence and a light intensity sensor.
are you able to update to the beta version of the plugin?
https://github.com/homebridge/homebridge/wiki/How-to-Install-Alternate-Plugin-Versions
You should then see some logging for this device. It would be useful to see what data it shows plus any logs that appear in the homebridge log when the presence sensor is activated and then when it considers itself deactivated too.
[7/20/2024, 4:59:14 PM] [Meross] [Smart Presence Sensor] incoming mqtt: {"header":{"messageId":"123456789123365xxxxxxxxxxxxxxxxxxxx","namespace":"Appliance.Control.Sensor.LatestX","timestamp":1721487553,"timestampMs":20,"triggerSrc":"lux","payloadVersion":1,"method":"PUSH","sign":"123456789123365xxxxxxxxxxxxxxxxxxxx","from":"/appliance/123456789123365xxxxxxxxxxxxxxxxxxxx/publish"},"payload":{"latest":[{"channel":0,"data":{"light":[{"value":181,"timestamp":1721487553}]}}]}}. [7/20/2024, 4:59:24 PM] [Meross] [Smart Presence Sensor] incoming mqtt: {"header":{"messageId":"123456789123365xxxxxxxxxxxxxxxxxxxx","namespace":"Appliance.Control.Sensor.LatestX","timestamp":1721487563,"timestampMs":20,"triggerSrc":"lux","payloadVersion":1,"method":"PUSH","sign":"123456789123365xxxxxxxxxxxxxxxxxxxx","from":"/appliance123456789123365xxxxxxxxxxxxxxxxxxxx/publish"},"payload":{"latest":[{"channel":0,"data":{"light":[{"timestamp":1721487563,"value":185}]}}]}}. [7/20/2024, 4:59:34 PM] [Meross] [Smart Presence Sensor] incoming mqtt: {"header":{"messageId":"123456789123365xxxxxxxxxxxxxxxxxxxx","namespace":"Appliance.Control.Sensor.LatestX","timestamp":1721487573,"timestampMs":20,"triggerSrc":"lux","payloadVersion":1,"method":"PUSH","sign":"123456789123365xxxxxxxxxxxxxxxxxxxx","from":"/appliance/123456789123365xxxxxxxxxxxxxxxxxxxx/publish"},"payload":{"latest":[{"channel":0,"data":{"light":[{"value":181,"timestamp":1721487573}]}}]}}.
[7/20/2024, 5:01:00 PM] [Meross] [Smart Presence Sensor] incoming mqtt: {"header":{"messageId":"123456789123365xxxxxxxxxxxxxxxxxxxx","namespace":"Appliance.Control.Sensor.LatestX","timestamp":1721487659,"timestampMs":296,"triggerSrc":"p_have","payloadVersion":1,"method":"PUSH","sign":"123456789123365xxxxxxxxxxxxxxxxxxxx","from":"/appliance/123456789123365xxxxxxxxxxxxxxxxxxxx/publish"},"payload":{"latest":[{"data":{"presence":[{"distance":2880,"value":3,"timestamp":1721487659,"times":950}]},"channel":0}]}}. [7/20/2024, 5:01:01 PM] [Meross] [Smart Presence Sensor] incoming mqtt: {"header":{"messageId":"123456789123365xxxxxxxxxxxxxxxxxxxx","namespace":"Appliance.Control.Sensor.LatestX","timestamp":1721487660,"timestampMs":348,"triggerSrc":"p_have","payloadVersion":1,"method":"PUSH","sign":"123456789123365xxxxxxxxxxxxxxxxxxxx","from":"/appliance/123456789123365xxxxxxxxxxxxxxxxxxxx/publish"},"payload":{"latest":[{"channel":0,"data":{"presence":[{"distance":3060,"value":2,"timestamp":1721487660,"times":951}]}}]}}.
I can see a value for light - do you know what unit this is?
I can also see multiple different values for the presence sensor, in the meross app are there different statuses it shows for this? Can you grab some screenshots? be interesting to see the different options that the meross app can show
Ok, I'll do the screenshots. is the LUX value.
sob., 20 lip 2024, 17:08 użytkownik Ben @.***> napisał:
I can see a value for light - do you know what unit this is?
I can also see multiple different values for the presence sensor, in the meross app are there different statuses it shows for this? Can you grab some screenshots? be interesting to see the different options that the meross app can show
— Reply to this email directly, view it on GitHub https://github.com/bwp91/homebridge-meross/issues/582#issuecomment-2241179679, or unsubscribe https://github.com/notifications/unsubscribe-auth/BAHYDLPLUYDC3UVAWBNHTV3ZNJ4NLAVCNFSM6AAAAABLF55Z6SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBRGE3TSNRXHE . You are receiving this because you were mentioned.Message ID: @.***>
Have the screenshots arrived?
screenshots
sob., 20 lip 2024, 17:08 użytkownik Ben @.***> napisał:
I can see a value for light - do you know what unit this is?
I can also see multiple different values for the presence sensor, in the meross app are there different statuses it shows for this? Can you grab some screenshots? be interesting to see the different options that the meross app can show
— Reply to this email directly, view it on GitHub https://github.com/bwp91/homebridge-meross/issues/582#issuecomment-2241179679, or unsubscribe https://github.com/notifications/unsubscribe-auth/BAHYDLPLUYDC3UVAWBNHTV3ZNJ4NLAVCNFSM6AAAAABLF55Z6SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBRGE3TSNRXHE . You are receiving this because you were mentioned.Message ID: @.***>
@michal40 can you update the plugin to the newer beta version and see if the accessory appears in homebridge / homekit as a light sensor? i haven't worked on the presence sensor part yet.
the light sensor should update in pretty much real time
seen as a light sensor
electricity values are available in homekit but only in the Eve HomeKit app. not in homebridge or the native home app.
i have just published a new beta which should show the occupancy sensor now.
Note that it should show as OCCUPANCY DETECTED in homebridge/homekit when the meross app labels as Presence
.
The other meross labels like Minor Motion
Motion
Moving Away
Absence
will show as OCCUPANCY NOT DETECTED in homekit.
if it doesn't work, i may have gotten the value wrong. I assumed that Presence
correlates to this log you received
[7/20/2024, 5:01:01 PM] [Meross] [Smart Presence Sensor] incoming mqtt: {"header":{"messageId":"2c10d3e54568616c0fe7fa9343cf57da","namespace":"Appliance.Control.Sensor.LatestX","timestamp":1721487660,"timestampMs":348,"triggerSrc":"p_have","payloadVersion":1,"method":"PUSH","sign":"7f7265bf1e9d8d56f986d46a3027b48e","from":"/appliance/24050754349263662001c4e7ae03f636/publish"},"payload":{"latest":[{"channel":0,"data":{"presence":[{"distance":3060,"value":2,"timestamp":1721487660,"times":951}]}}]}}.
where you can see at the very end a value":2
. It may be that Presence
correlates to a different number.
displays to triggered and none. But when I walk, I keep changing between liberated and deprived.
can you compare the homebridge triggered/not triggered times with the meross app history log to see if it matches up with another status that isn’t “Presence” ?
payload":{"latest":[{"channel":0,"data":{"presence":[{"value":1,"timestamp":1721505618,"times":0,"distance":3060}]}}]}}.
OCCUPANCY NOT DETECTED "value":1," = ABSENCE;
OCCUPANCY DETECTED "value":2," = PRESENCE; "value":3," = MINOR MOTION; "value":4," = MOTION; "value":5," = APPROACH; "value":6," = MOVING AWAY;
@michal40 i have just released another beta which should adhere to this values
It seems to be working fine now. good job.
They are currently testing a new matter presence sensor for Meross. This device is not yet available for sale. The device is not recognized by your plugin. I hope you manage to solve this problem.
[Smart Presence Sensor] is not supported, do create a github issue https://bit.ly/hb-meross-issues with info: {"uuid":"12345678901234566xxxxxxxxxxxxxxxx","onlineStatus":1,"devName":"Smart Presence Sensor","devIconId":"device_ms600_un","bindTime":1721292628,"deviceType":"ms600","subType":"un","channels":[{}],"region":"eu","fmwareVersion":"9.3.12","hdwareVersion":"9.0.0","userDevIcon":"","iconType":1,"domain":"mqtt-eu-5.meross.com","reservedDomain":"mqtt-eu-5.meross.com","hardwareCapabilities":[],"firmware":"9.3.12","hbDeviceId":"12345678901234566xxxxxxxxxxxxxxxx","model":"MS600"}