merdok / homebridge-miot

Homebridge plugin for devices supporting the Xiaomi miot protocol
MIT License
394 stars 62 forks source link

xiaomi gateway #222

Closed Mitsosxat closed 2 years ago

Mitsosxat commented 2 years ago

Hello, i request an accessory that could triger or untriger the alarm that gateway supports. is that possible?

It would be perfect to have an accesory of "at home", "away from home" and "sleep" to make some automatisations

merdok commented 2 years ago

Ummm not quite sure what you mean. Could you please explain what exactly would you like to have? A scenario is usually good...

Mitsosxat commented 2 years ago

I have 5 door sensors and I want to trigger the alarm leaving the house. So I open Xiaomi app go to gateway and choose what to trigger. It would be perfect If I could have 3 accessories with the alarms and trigger them from homekit. I will upload a photo to see the Xiaomi app gateway menu 754A2C40-5585-417D-A8EF-4A58D2B37DEE

merdok commented 2 years ago

What gateway do you have? Did you try to add the gateway to the plugin? There is right now no alarm support but you could use propertyControl to expose custom buttons which could trigger that.

Mitsosxat commented 2 years ago

I can insert it but there is no accessory 32EB8E3F-7F40-41BC-BDB5-CEBBCBAA102B 8F4529C5-8535-4AE5-A007-29BCFAA9CB76

merdok commented 2 years ago

Yes, that is why I mean that there is no alarm support. But you can still expose the properties as buttons. Just check the propertyControl configuration field (there is an example in the README) and try out to expose some properties and see if any of those will allow you to do what you desire.

I see that the gateway exposes a lot of alarm related properties.

Mitsosxat commented 2 years ago

Can you please be more specific because I can’t find it? Should I add at config propertyControl : true ?

Mitsosxat commented 2 years ago

I am noob so it would be great if you could tell me what to write exactly to make it work

Mitsosxat commented 2 years ago

I found that I need action 3.1 and then action 2 away from home. So what should I write at action, name and params

Mitsosxat commented 2 years ago

DF8F147D-62EC-4DEB-A791-70384A9A398C 4EEE940A-0E04-46AF-8B05-11920AF6D3A7

Mitsosxat commented 2 years ago

Also, when the gateway is enabled, the cupolas goes 25% and all the HomeKit buttons are in “no response” condition. If I disable the plug in or delete gateway the problem is solved

merdok commented 2 years ago

I have no idea what you mean with the 25%.

The config entry for the property 3.1 would look like this:

          "propertyControl": [
            {
              "action": "3.1",
              "name": "Arming"
            }
          ],

or for dedicated buttons:

          "propertyControl": [
            {
              "action": "3.1",
              "name": "Sleep Arming",
               "value": 3
            },
            {
              "action": "3.1",
              "name": "Away Arming",
               "value": 2
            }
          ],
Mitsosxat commented 2 years ago

I wrote the dedicated buttons and I got this message. Also, when I enable gateway everything is not responding in the accessories and the cpu is going crazy. All the time is 2-3% and now is 28%. 3B405640-C29F-4AC2-83B4-77E12050893F Screenshots BC02A77A-36B7-4DF2-829D-0AACD6B95F57

merdok commented 2 years ago

You have to put the dedicated buttons on your xiaomi gateway and not on your cleaner...

Mitsosxat commented 2 years ago

Still, when the gateway is enabled nothing on home kit works. All are non responding 002DC85B-3212-421B-9750-0CB311B2DC75

and the cpu goes up from 2% to 30%

so I guess we have a problem here

merdok commented 2 years ago

I do not think that the gateway behaves any different then any other devices in the plugin. You can provide me with a homebridge debug log ideally with the deepDebugLog flag set to true so i can have a look at it.

Mitsosxat commented 2 years ago

lumi.gateway.mgl03.js [20/02/2022, 19:12:33] [miot] [Gateway] Not a airer device! Device class could not be found: ../modules/airer/devices/lumi.gateway.mgl03.js [20/02/2022, 19:12:33] [miot] [Gateway] Not a airmonitor device! Device class could not be found: ../modules/airmonitor/devices/lumi.gateway.mgl03.js [20/02/2022, 19:12:33] [miot] [Gateway] Not a airpurifier device! Device class could not be found: ../modules/airpurifier/devices/lumi.gateway.mgl03.js [20/02/2022, 19:12:33] [miot] [Gateway] Not a bathheater device! Device class could not be found: ../modules/bathheater/devices/lumi.gateway.mgl03.js [20/02/2022, 19:12:33] [miot] [Gateway] Not a camera device! Device class could not be found: ../modules/camera/devices/lumi.gateway.mgl03.js [20/02/2022, 19:12:33] [miot] [Gateway] Not a ceilingfan device! Device class could not be found: ../modules/ceilingfan/devices/lumi.gateway.mgl03.js [20/02/2022, 19:12:33] [miot] [Gateway] Not a coffeemachine device! Device class could not be found: ../modules/coffeemachine/devices/lumi.gateway.mgl03.js [20/02/2022, 19:12:33] [miot] [Gateway] Not a curtain device! Device class could not be found: ../modules/curtain/devices/lumi.gateway.mgl03.js [20/02/2022, 19:12:33] [miot] [Gateway] Not a custom device! Device class could not be found: ../modules/custom/devices/lumi.gateway.mgl03.js [20/02/2022, 19:12:33] [miot] [Gateway] Not a dehumidifier device! Device class could not be found: ../modules/dehumidifier/devices/lumi.gateway.mgl03.js [20/02/2022, 19:12:33] [miot] [Gateway] Not a fan device! Device class could not be found: ../modules/fan/devices/lumi.gateway.mgl03.js [20/02/2022, 19:12:33] [miot] [Gateway] Not a freshairsystem device! Device class could not be found: ../modules/freshairsystem/devices/lumi.gateway.mgl03.js [20/02/2022, 19:12:33] [miot] [Gateway] Not a generic device! Device class could not be found: ../modules/generic/devices/lumi.gateway.mgl03.js [20/02/2022, 19:12:33] [miot] [Gateway] Not a heater device! Device class could not be found: ../modules/heater/devices/lumi.gateway.mgl03.js [20/02/2022, 19:12:33] [miot] [Gateway] Not a humidifier device! Device class could not be found: ../modules/humidifier/devices/lumi.gateway.mgl03.js [20/02/2022, 19:12:33] [miot] [Gateway] Not a kettle device! Device class could not be found: ../modules/kettle/devices/lumi.gateway.mgl03.js [20/02/2022, 19:12:33] [miot] [Gateway] Not a light device! Device class could not be found: ../modules/light/devices/lumi.gateway.mgl03.js [20/02/2022, 19:12:33] [miot] [Gateway] Not a outlet device! Device class could not be found: ../modules/outlet/devices/lumi.gateway.mgl03.js [20/02/2022, 19:12:33] [miot] [Gateway] Not a oven device! Device class could not be found: ../modules/oven/devices/lumi.gateway.mgl03.js [20/02/2022, 19:12:33] [miot] [Gateway] Not a robotcleaner device! Device class could not be found: ../modules/robotcleaner/devices/lumi.gateway.mgl03.js [20/02/2022, 19:12:33] [miot] [Gateway] Not a switch device! Device class could not be found: ../modules/switch/devices/lumi.gateway.mgl03.js [20/02/2022, 19:12:33] [miot] [Gateway] Not a thermostat device! Device class could not be found: ../modules/thermostat/devices/lumi.gateway.mgl03.js [20/02/2022, 19:12:33] [miot] [Gateway] Not a unknown device! Device class could not be found: ../modules/unknown/devices/lumi.gateway.mgl03.js [20/02/2022, 19:12:33] [miot] [Gateway] Did not find device class! Trying to identify device from miot spec! [20/02/2022, 19:12:33] [miot] [Cleaner] Found cached device information: viomi.vacuum.v19 [20/02/2022, 19:12:33] [miot] [Cleaner] Model known: viomi.vacuum.v19! [20/02/2022, 19:12:33] [miot] [Cleaner] Initializing device! [20/02/2022, 19:12:33] [miot] [Cleaner] Creating device instance by model: viomi.vacuum.v19! [20/02/2022, 19:12:33] [miot] [Cleaner] It is a robotcleaner device! Found device class at ../modules/robotcleaner/devices/viomi.vacuum.v19.js! [20/02/2022, 19:12:33] [miot] [Cleaner] Initializing device services [20/02/2022, 19:12:33] [miot] [Cleaner] Device services: [ "vacuum", "battery", "viomi-vacuum", "order", "point-zone", "map", "voice" ] [20/02/2022, 19:12:33] [miot] [Cleaner] Initializing device properties [20/02/2022, 19:12:33] [miot] [Cleaner] Device properties: [ "vacuum:status", "vacuum:fault", "vacuum:wdr-mode", "vacuum:door-state", "vacuum:contact-state", "vacuum:stream-address", "vacuum:contact-state2", "vacuum:contact-state3", "vacuum:mute", "vacuum:sweep-type", "vacuum:mode", "battery:battery-level", "viomi-vacuum:repeat-state", "viomi-vacuum:remember-state", "viomi-vacuum:has-map", "viomi-vacuum:has-newmap", "viomi-vacuum:mop-route", "viomi-vacuum:side-brush-life", "viomi-vacuum:side-brush-hours", "viomi-vacuum:main-brush-life", "viomi-vacuum:main-brush-hours", "viomi-vacuum:hypa-life", "viomi-vacuum:hypa-hours", "viomi-vacuum:mop-life", "viomi-vacuum:mop-hours", "viomi-vacuum:direction", "viomi-vacuum:suction-grade", "viomi-vacuum:water-grade", "viomi-vacuum:consumable-index", "viomi-vacuum:clean-room-ids", "viomi-vacuum:clean-room-mode", "viomi-vacuum:clean-room-oper", "viomi-vacuum:map-num", "viomi-vacuum:time-zone", "viomi-vacuum:clean-start-time", "viomi-vacuum:clean-use-time", "viomi-vacuum:clean-area", "viomi-vacuum:clean-map-url", "viomi-vacuum:clean-mode", "viomi-vacuum:clean-way", "viomi-vacuum:cur-lang", "viomi-vacuum:cur-map-id", "order:order-id", "order:enable", "order:day", "order:hour", "order:minute", "order:repeat", "order:clean-way", "order:suction", "order:water", "order:twice-clean", "order:mapid", "order:room-count", "order:room-data", "order:dnd-enable", "order:dnd-start-hour", "order:dnd-start-minute", "order:dnd-end-hour", "order:dnd-end-minute", "order:dnd-timezone", "order:timestamp", "order:orderdata", "point-zone:target-point", "point-zone:zone-points", "point-zone:restrict-points", "point-zone:pause-type", "map:map-type", "map:map-id", "map:new-map-oper", "map:map-name", "map:lang", "map:arrange-room-ids", "map:target-room-id", "map:split-points", "map:room-name", "map:cur-cleaning-path", "map:map-list", "voice:target-voice", "voice:cur-voice", "voice:download-status", "voice:download-progress", "voice:voice-url", "voice:voice-mdfive" ] [20/02/2022, 19:12:33] [miot] [Cleaner] Initializing device actions [20/02/2022, 19:12:33] [miot] [Cleaner] Device actions: [ "vacuum:start-sweep", "vacuum:stop-sweeping", "vacuum:pause", "vacuum:start-charge", "vacuum:stop-massage", "vacuum:start-mop", "vacuum:start-only-sweep", "vacuum:start-sweep-mop", "viomi-vacuum:reset-map", "viomi-vacuum:set-calibration", "viomi-vacuum:reset-consumable", "viomi-vacuum:set-room-clean", "viomi-vacuum:create-new-map", "viomi-vacuum:set-queue-room-clean", "order:del", "order:get", "point-zone:start-point-clean", "point-zone:pause-point-clean", "point-zone:start-zone-clean", "point-zone:pause-zone-clean", "map:upload-by-maptype", "map:upload-by-mapid", "map:set-cur-map", "map:deal-new-map", "map:del-map", "map:rename-map", "map:arrange-room", "map:split-room", "map:rename-room", "map:get-map-list", "voice:find-device", "voice:download-voice", "voice:get-downloadstatus" ] [20/02/2022, 19:12:33] [miot] [Cleaner] Initializing device events [20/02/2022, 19:12:33] [miot] [Cleaner] Device events: [ "vacuum:exception-occurred", "viomi-vacuum:mop-remind", "viomi-vacuum:wait-remind", "viomi-vacuum:low-remind", "viomi-vacuum:clean-end" ] [20/02/2022, 19:12:33] [miot] [Cleaner] Initial properties to monitor: [ "vacuum:status", "vacuum:mode", "vacuum:fault", "battery:battery-level", "viomi-vacuum:main-brush-hours", "viomi-vacuum:main-brush-life", "viomi-vacuum:side-brush-hours", "viomi-vacuum:side-brush-life", "viomi-vacuum:hypa-hours", "viomi-vacuum:hypa-life", "viomi-vacuum:clean-use-time", "viomi-vacuum:clean-area" ] [20/02/2022, 19:12:33] [miot] [Cleaner] Successfully created a RobotCleaner device! It is a Viomi Robot Vacuum SE. [20/02/2022, 19:12:33] [miot] [Cleaner] Initializing accessory! [20/02/2022, 19:12:33] [miot] [Cleaner] Creating RobotCleaner accessory for device Cleaner! [20/02/2022, 19:12:33] [miot] [Cleaner] Found accessory class at ../modules/robotcleaner/RobotCleanerAccessory.js! [20/02/2022, 19:12:33] [miot] [Cleaner] Successfully created Dock wrapper of type Property Monitor! [20/02/2022, 19:12:33] [miot] [Cleaner] Successfully created Mode wrapper of type Property! [20/02/2022, 19:12:33] [miot] [Cleaner] Accessory successfully initialized! [20/02/2022, 19:12:33] [miot] [Cleaner] Registering 1 accessories! [20/02/2022, 19:12:33] [miot] [Cleaner] Everything looks good! Initiating property polling! [20/02/2022, 19:12:33] [miot] [Gateway] Fetching device miot spec by model: lumi.gateway.mgl03 [20/02/2022, 19:12:34] [miot] [Cleaner] (Protocol) Call 192.168.68.101: miIO.info - {"timeout":5000,"retries":3} - {} [20/02/2022, 19:12:35] [miot] [Cleaner] Device found: viomi.vacuum.v19 [20/02/2022, 19:12:35] [miot] [Cleaner] Setting up miot device! [20/02/2022, 19:12:35] [miot] [Cleaner] Doing basic setup [20/02/2022, 19:12:35] [miot] [Cleaner] Device firmware: 4.0.9_0017 [20/02/2022, 19:12:35] [miot] [Cleaner] Doing MiCloud setup [20/02/2022, 19:12:35] [miot] [Cleaner] Device setup finished! Miot device ready! [20/02/2022, 19:12:35] [miot] [Cleaner] Connected to device: viomi.vacuum.v19 [20/02/2022, 19:12:35] [miot] [Cleaner] Doing initial property fetch. [20/02/2022, 19:12:35] [miot] [Cleaner] Splitting properties into chunks. Number of chunks: 1. Chunk size: 14 [20/02/2022, 19:12:35] [miot] [Cleaner] (Protocol) Call 192.168.68.101: get_properties - [{"did":"428491177","siid":2,"piid":1},{"did":"428491177","siid":2,"piid":19},{"did":"428491177","siid":2,"piid":2},{"did":"428491177","siid":3,"piid":1},{"did":"428491177","siid":4,"piid":11},{"did":"428491177","siid":4,"piid":10},{"did":"428491177","siid":4,"piid":9},{"did":"428491177","siid":4,"piid":8},{"did":"428491177","siid":4,"piid":13},{"did":"428491177","siid":4,"piid":12},{"did":"428491177","siid":4,"piid":26},{"did":"428491177","siid":4,"piid":27}] - {} [20/02/2022, 19:12:35] [miot] [Cleaner] Successfully saved device info! [20/02/2022, 19:12:35] [miot] [Cleaner] Property vacuum:status value changed to ---> 4 [20/02/2022, 19:12:35] [miot] [Cleaner] Property vacuum:mode value changed to ---> 3 [20/02/2022, 19:12:35] [miot] [Cleaner] Property vacuum:fault value changed to ---> 2105 [20/02/2022, 19:12:35] [miot] [Cleaner] Property battery:battery-level value changed to ---> 100 [20/02/2022, 19:12:35] [miot] [Cleaner] Property viomi-vacuum:main-brush-hours value changed to ---> 332 [20/02/2022, 19:12:35] [miot] [Cleaner] Property viomi-vacuum:main-brush-life value changed to ---> 92 [20/02/2022, 19:12:35] [miot] [Cleaner] Property viomi-vacuum:side-brush-hours value changed to ---> 152 [20/02/2022, 19:12:35] [miot] [Cleaner] Property viomi-vacuum:side-brush-life value changed to ---> 84 [20/02/2022, 19:12:35] [miot] [Cleaner] Property viomi-vacuum:hypa-hours value changed to ---> 152 [20/02/2022, 19:12:35] [miot] [Cleaner] Property viomi-vacuum:hypa-life value changed to ---> 84 [20/02/2022, 19:12:35] [miot] [Cleaner] Got initial device properties: [ "vacuum:status: 4", "vacuum:fault: 2105", "vacuum:wdr-mode: 0", "vacuum:door-state: 0", "vacuum:contact-state: 0", "vacuum:contact-state2: 0", "vacuum:contact-state3: 0", "vacuum:mute: 0", "vacuum:sweep-type: 0", "vacuum:mode: 3", "battery:battery-level: 100", "viomi-vacuum:repeat-state: 0", "viomi-vacuum:remember-state: 0", "viomi-vacuum:has-map: 0", "viomi-vacuum:has-newmap: 0", "viomi-vacuum:mop-route: 0", "viomi-vacuum:side-brush-life: 84", "viomi-vacuum:side-brush-hours: 152", "viomi-vacuum:main-brush-life: 92", "viomi-vacuum:main-brush-hours: 332", "viomi-vacuum:hypa-life: 84", "viomi-vacuum:hypa-hours: 152", "viomi-vacuum:mop-life: 0", "viomi-vacuum:mop-hours: 0", "viomi-vacuum:suction-grade: 0", "viomi-vacuum:water-grade: 0", "viomi-vacuum:consumable-index: 0", "viomi-vacuum:clean-room-ids: ", "viomi-vacuum:clean-room-mode: 0", "viomi-vacuum:clean-room-oper: 0", "viomi-vacuum:map-num: 0", "viomi-vacuum:time-zone: 0", "viomi-vacuum:clean-start-time: 0", "viomi-vacuum:clean-use-time: 0", "viomi-vacuum:clean-area: 0", "viomi-vacuum:clean-map-url: ", "viomi-vacuum:clean-mode: 0", "viomi-vacuum:clean-way: 0", "viomi-vacuum:cur-lang: ", "viomi-vacuum:cur-map-id: 0", "order:dnd-enable: 0", "order:dnd-start-hour: 0", "order:dnd-start-minute: 0", "order:dnd-end-hour: 0", "order:dnd-end-minute: 0", "order:dnd-timezone: 0", "order:timestamp: 0", "order:orderdata: ", "point-zone:target-point: ", "map:map-type: 0", "map:map-id: 0", "map:map-name: ", "map:cur-cleaning-path: ", "map:map-list: ", "voice:target-voice: ", "voice:cur-voice: ", "voice:download-status: 0", "voice:download-progress: 0" ] [20/02/2022, 19:12:35] [miot] [Cleaner] Main brush left time: 332 hours. [20/02/2022, 19:12:35] [miot] [Cleaner] Main brush life level: 92%. [20/02/2022, 19:12:35] [miot] [Cleaner] Side brush left time: 152 hours. [20/02/2022, 19:12:35] [miot] [Cleaner] Side brush life level: 84%. [20/02/2022, 19:12:35] [miot] [Cleaner] Filter life level: 84%. [20/02/2022, 19:12:35] [miot] [Cleaner] Starting property polling. [20/02/2022, 19:12:36] [miot] [Gateway] Parsing miot spec! [20/02/2022, 19:12:36] [miot] [Gateway] Successfully got device miot spec! [20/02/2022, 19:12:36] [miot] [Gateway] Spec device type: gateway description: Gateway [20/02/2022, 19:12:36] [miot] [Gateway] Miot spec: { "type": "urn:miot-spec-v2:device:gateway:0000A019:lumi-mgl03:3", "description": "Gateway", "services": [ { "siid": 6, "type": "urn:miot-spec-v2:service:indicator-light:00007803:lumi-mgl03:1", "description": "Indicator Light" }, { "siid": 3, "type": "urn:lumi-spec:service:arming:00000001:lumi-mgl03:1", "description": "arming" }, { "siid": 4, "type": "urn:lumi-spec:service:button:0000000D:lumi-mgl03:1", "description": "button" }, { "siid": 7, "type": "urn:lumi-spec:service:accidental-deletion:00007801:lumi-mgl03:1", "description": "accidental-deletion" } ], "properties": { "indicator-light:on": { "name": "indicator-light:on", "siid": 6, "piid": 6, "type": "urn:miot-spec-v2:property:on:00000006:lumi-mgl03:1", "description": "enable night indicator light", "format": "uint8", "access": [ "read", "write", "notify" ], "valueList": [ { "value": 0, "description": "关蓝灯常亮和蓝灯闪烁状态" }, { "value": 1, "description": "指示灯按正常逻辑显示" } ] }, "arming:arming-mode": { "name": "arming:arming-mode", "siid": 3, "piid": 1, "type": "urn:lumi-spec:property:arming-mode:00000002:lumi-mgl03:1", "description": "arming-mode", "format": "int32", "access": [ "read", "write", "notify" ], "valueList": [ { "value": 0, "description": "basic_arming" }, { "value": 1, "description": "home_arming" }, { "value": 2, "description": "away_arming" }, { "value": 3, "description": "sleep_arming" } ] }, "arming:arming-change": { "name": "arming:arming-change", "siid": 3, "piid": 2, "type": "urn:lumi-spec:property:arming-change:00000003:lumi-mgl03:1", "description": "change to basic mode", "format": "int32", "access": [ "notify" ], "valueList": [ { "value": 1, "description": "home_arming" }, { "value": 2, "description": "away_arming" }, { "value": 3, "description": "sleep_arming" } ] }, "arming:customize-mode-1": { "name": "arming:customize-mode-1", "siid": 3, "piid": 3, "type": "urn:lumi-spec:property:customize-mode-1:00000004:lumi-mgl03:1", "description": "customize-mode-1", "format": "uint8", "access": [ "read", "write", "notify" ], "valueList": [ { "value": 0, "description": "关闭" }, { "value": 1, "description": "开启" } ] }, "arming:customize-mode-2": { "name": "arming:customize-mode-2", "siid": 3, "piid": 4, "type": "urn:lumi-spec:property:customize-mode-2:00000005:lumi-mgl03:1", "description": "customize-mode-2", "format": "uint8", "access": [ "read", "write", "notify" ], "valueList": [ { "value": 0, "description": "关闭" }, { "value": 1, "description": "开启" } ] }, "arming:customize-mode-3": { "name": "arming:customize-mode-3", "siid": 3, "piid": 5, "type": "urn:lumi-spec:property:customize-mode-3:00000006:lumi-mgl03:1", "description": "customize-mode-3", "format": "uint8", "access": [ "read", "write", "notify" ], "valueList": [ { "value": 0, "description": "关闭" }, { "value": 1, "description": "开启" } ] }, "arming:customize-mode-4": { "name": "arming:customize-mode-4", "siid": 3, "piid": 6, "type": "urn:lumi-spec:property:customize-mode-4:00000007:lumi-mgl03:1", "description": "customize-mode-4", "format": "uint8", "access": [ "read", "write", "notify" ], "valueList": [ { "value": 0, "description": "关闭" }, { "value": 1, "description": "开启" } ] }, "arming:customize-mode-5": { "name": "arming:customize-mode-5", "siid": 3, "piid": 7, "type": "urn:lumi-spec:property:customize-mode-5:00000008:lumi-mgl03:1", "description": "customize-mode-5", "format": "uint8", "access": [ "read", "write", "notify" ], "valueList": [ { "value": 0, "description": "关闭" }, { "value": 1, "description": "开启" } ] }, "arming:customize-mode-6": { "name": "arming:customize-mode-6", "siid": 3, "piid": 8, "type": "urn:lumi-spec:property:customize-mode-6:00000009:lumi-mgl03:1", "description": "customize-mode-6", "format": "uint8", "access": [ "read", "write", "notify" ], "valueList": [ { "value": 0, "description": "关闭" }, { "value": 1, "description": "开启" } ] }, "arming:delay-time-basic": { "name": "arming:delay-time-basic", "siid": 3, "piid": 9, "type": "urn:lumi-spec:property:delay-time-basic:0000000A:lumi-mgl03:1", "description": "基础警戒延时生效时长", "format": "int32", "access": [ "read", "write" ], "unit": "seconds", "valueRange": [ 0, 60, 5 ] }, "arming:alarm-duration-basic": { "name": "arming:alarm-duration-basic", "siid": 3, "piid": 10, "type": "urn:lumi-spec:property:alarm-duration-basic:0000000B:lumi-mgl03:1", "description": "基础报警持续时长", "format": "int64", "access": [ "read", "write" ], "unit": "seconds", "valueRange": [ 0, 2147483647, 1 ] }, "arming:alarm-volume-basic": { "name": "arming:alarm-volume-basic", "siid": 3, "piid": 11, "type": "urn:lumi-spec:property:alarm-volume-basic:0000000C:lumi-mgl03:1", "description": "alarm-volume-basic", "format": "int32", "access": [ "read", "write" ], "unit": "percentage", "valueList": [ { "value": 0, "description": "静音" }, { "value": 1, "description": "低音量" }, { "value": 2, "description": "中音量" }, { "value": 3, "description": "高音量" } ] }, "arming:delay-time-home": { "name": "arming:delay-time-home", "siid": 3, "piid": 12, "type": "urn:lumi-spec:property:delay-time-home:0000000F:lumi-mgl03:1", "description": "", "format": "int32", "access": [ "read", "write" ], "unit": "seconds", "valueRange": [ 0, 60, 5 ] }, "arming:alarm-duration-home": { "name": "arming:alarm-duration-home", "siid": 3, "piid": 13, "type": "urn:lumi-spec:property:alarm-duration-home:00000010:lumi-mgl03:1", "description": "在家报警持续时长", "format": "int64", "access": [ "read", "write" ], "unit": "seconds", "valueRange": [ 0, 2147483647, 1 ] }, "arming:alarm-volume-home": { "name": "arming:alarm-volume-home", "siid": 3, "piid": 14, "type": "urn:lumi-spec:property:alarm-volume-home:00000011:lumi-mgl03:1", "description": "alarm-volume-home", "format": "int32", "access": [ "read", "write" ], "unit": "percentage", "valueList": [ { "value": 0, "description": "静音" }, { "value": 1, "description": "低音量" }, { "value": 2, "description": "中音量" }, { "value": 3, "description": "高音量" } ] }, "arming:delay-time-away": { "name": "arming:delay-time-away", "siid": 3, "piid": 15, "type": "urn:lumi-spec:property:delay-time-away:00000012:lumi-mgl03:1", "description": "", "format": "int32", "access": [ "read", "write" ], "unit": "seconds", "valueRange": [ 0, 60, 5 ] }, "arming:alarm-duration-away": { "name": "arming:alarm-duration-away", "siid": 3, "piid": 16, "type": "urn:lumi-spec:property:alarm-duration-away:00000013:lumi-mgl03:1", "description": "离线报警持续时长", "format": "int64", "access": [ "read", "write" ], "unit": "seconds", "valueRange": [ 0, 2147483647, 1 ] }, "arming:alarm-volume-away": { "name": "arming:alarm-volume-away", "siid": 3, "piid": 17, "type": "urn:lumi-spec:property:alarm-volume-away:00000014:lumi-mgl03:1", "description": "alarm-volume-away", "format": "int32", "access": [ "read", "write" ], "unit": "percentage", "valueList": [ { "value": 0, "description": "静音" }, { "value": 1, "description": "低音量" }, { "value": 2, "description": "中音量" }, { "value": 3, "description": "高音量" } ] }, "arming:delay-time-sleep": { "name": "arming:delay-time-sleep", "siid": 3, "piid": 18, "type": "urn:lumi-spec:property:delay-time-sleep:00000015:lumi-mgl03:1", "description": "", "format": "int32", "access": [ "read", "write" ], "unit": "seconds", "valueRange": [ 0, 60, 5 ] }, "arming:alarm-duration-sleep": { "name": "arming:alarm-duration-sleep", "siid": 3, "piid": 19, "type": "urn:lumi-spec:property:alarm-duration-sleep:00000016:lumi-mgl03:1", "description": "睡眠报警持续时长", "format": "int64", "access": [ "read", "write" ], "unit": "seconds", "valueRange": [ 0, 2147483647, 1 ] }, "arming:alarm-volume-sleep": { "name": "arming:alarm-volume-sleep", "siid": 3, "piid": 20, "type": "urn:lumi-spec:property:alarm-volume-sleep:00000017:lumi-mgl03:1", "description": "alarm-volume-sleep", "format": "int32", "access": [ "read", "write" ], "unit": "percentage", "valueList": [ { "value": 0, "description": "静音" }, { "value": 1, "description": "低音量" }, { "value": 2, "description": "中音量" }, { "value": 3, "description": "高音量" } ] }, "arming:target-arming-mode": { "name": "arming:target-arming-mode", "siid": 3, "piid": 21, "type": "urn:lumi-spec:property:target-arming-mode:00000001:lumi-mgl03:1", "description": "网关自带的目标警戒模式。homekit功能需要用到该属性。", "format": "int32", "access": [ "read", "write", "notify" ], "valueList": [ { "value": 0, "description": "basic_arming" }, { "value": 1, "description": "home_arming" }, { "value": 2, "description": "away_arming" }, { "value": 3, "description": "sleep_arming" } ] }, "arming:alarm": { "name": "arming:alarm", "siid": 3, "piid": 22, "type": "urn:lumi-spec:property:alarm:0000000d:lumi-mgl03:1", "description": "", "format": "int32", "access": [ "read", "write", "notify" ], "valueList": [ { "value": 0, "description": "" }, { "value": 1, "description": "" }, { "value": 2, "description": "" } ] }, "arming:alarm-auto-log": { "name": "arming:alarm-auto-log", "siid": 3, "piid": 23, "type": "urn:lumi-spec:property:alarm-auto-log:0000000e:lumi-mgl03:1", "description": "", "format": "string", "access": [ "notify" ] }, "button:button": { "name": "button:button", "siid": 4, "piid": 1, "type": "urn:lumi-spec:property:button:0000000E:lumi-mgl03:1", "description": "button", "format": "int32", "access": [ "notify" ], "valueList": [ { "value": 1, "description": "single_click" }, { "value": 2, "description": "shock_click_2_times" }, { "value": 10, "description": "shock_click_10_times" }, { "value": 21, "description": "long_press_10s" }, { "value": 3, "description": "shock_click_3_times" }, { "value": 16, "description": "long_press_5s" } ] }, "accidental-deletion:on-off": { "name": "accidental-deletion:on-off", "siid": 7, "piid": 1, "type": "urn:lumi-spec:property:on-off:00000001:lumi-mgl03:1", "description": "on-off", "format": "uint8", "access": [ "write", "read", "notify" ], "unit": "none", "valueList": [ { "value": 0, "description": "关闭" }, { "value": 1, "description": "开启" } ] } }, "actions": {}, "events": { "accidental-deletion:event-unbind": { "name": "accidental-deletion:event-unbind", "siid": 7, "eiid": 1, "type": "urn:lumi-spec:event:event-unbind:00005001:lumi-mgl03:1", "description": "event-unbind", "arguments": [] }, "accidental-deletion:homekit-bound": { "name": "accidental-deletion:homekit-bound", "siid": 7, "eiid": 2, "type": "urn:lumi-spec:event:homekit-bound:00005002:lumi-mgl03:3", "description": "homekit-bound", "arguments": [] } }, "specUrl": "https://miot-spec.org/miot-spec-v2/instance?type=urn:miot-spec-v2:device:gateway:0000A019:lumi-mgl03:3" } [20/02/2022, 19:12:36] [miot] [Gateway] No device class found! Falling back to UnknownDevice! [20/02/2022, 19:12:36] [miot] [Gateway] Initializing device services [20/02/2022, 19:12:36] [miot] [Gateway] Device services: [ "indicator-light", "arming", "button", "accidental-deletion" ] [20/02/2022, 19:12:36] [miot] [Gateway] Initializing device properties [20/02/2022, 19:12:36] [miot] [Gateway] Device properties: [ "indicator-light:on", "arming:arming-mode", "arming:arming-change", "arming:customize-mode-1", "arming:customize-mode-2", "arming:customize-mode-3", "arming:customize-mode-4", "arming:customize-mode-5", "arming:customize-mode-6", "arming:delay-time-basic", "arming:alarm-duration-basic", "arming:alarm-volume-basic", "arming:delay-time-home", "arming:alarm-duration-home", "arming:alarm-volume-home", "arming:delay-time-away", "arming:alarm-duration-away", "arming:alarm-volume-away", "arming:delay-time-sleep", "arming:alarm-duration-sleep", "arming:alarm-volume-sleep", "arming:target-arming-mode", "arming:alarm", "arming:alarm-auto-log", "button:button", "accidental-deletion:on-off" ] [20/02/2022, 19:12:36] [miot] [Gateway] Initializing device actions [20/02/2022, 19:12:36] [miot] [Gateway] Initializing device events [20/02/2022, 19:12:36] [miot] [Gateway] Device events: [ "accidental-deletion:event-unbind", "accidental-deletion:homekit-bound" ] [20/02/2022, 19:12:36] [miot] [Gateway] !-!-! Monitoring all properties !-!-! [20/02/2022, 19:12:36] [miot] [Gateway] Device not supported! Using a generic device with limited properties! Consider requesting device support! [20/02/2022, 19:12:36] [miot] [Gateway] Initializing accessory! [20/02/2022, 19:12:36] [miot] [Gateway] Creating Unknown accessory for device Gateway! [20/02/2022, 19:12:36] [miot] [Gateway] Found accessory class at ../modules/unknown/UnknownAccessory.js! [20/02/2022, 19:12:36] [miot] [Gateway] <-W-> Creating Gateway wrapper of type Property for property indicator-light:on [20/02/2022, 19:12:36] [miot] [Gateway] <-W-> Property type: Value List! Creating list item switches! [20/02/2022, 19:12:36] [miot] [Gateway] Successfully created Gateway wrapper of type Property! [20/02/2022, 19:12:36] [miot] [Gateway] <-W-> Creating Led wrapper of type Property for property indicator-light:on

Mitsosxat commented 2 years ago

and then, cpu goes to 30% and everuthing seems "not responding". if i disable the plug in or delete gateway from the devices everything comes back to normal

merdok commented 2 years ago

The log which you posted looks perfectly fine, no issues there. You should post a log which shows the point after your cpu goes to 30% so i can see if there is something happening...

Mitsosxat commented 2 years ago

The thing is I can’t show you what you are asking because it happens the moment homebridge starts. If I have enabled the plug in WITH gateway, cpu comes up and everything is not responding. If I disable the whole plug in or delete gateway and leave cleaner everything works fine and the cpu is about 2-3%. My guess is that because the gateway is not supported, maybe it constantly tries to and f thing up big time. Unfortunately the only thing I can do is show you a video with and without the gateway to see the cpu status growing

Mitsosxat commented 2 years ago

I can’t think about anything else to explain you better my friend. I hope I could

merdok commented 2 years ago

Oh, you are right! Just tried it by myself by adding your device model and it seems also to freeze. Will have a look at it and try to fix it!

Mitsosxat commented 2 years ago

Thank you I believe you will fix it as always. Waiting for your update

merdok commented 2 years ago

Update with a fix was just released! Please try out version 1.0.5

Mitsosxat commented 2 years ago

Cpu back at 2% everything works but… D8D42564-E0DD-4070-B1ED-9193F548F5AC 7F8D6618-E604-476B-8757-D398E13AD6E9 63B3F6C6-BCF4-4277-BDDC-9FF9FF093256

merdok commented 2 years ago

it should be called propertyand not action...

Mitsosxat commented 2 years ago

I just copy pasted what you wrote. What have I done wrong? 😂

merdok commented 2 years ago

You should not paste anything from me, just read the documentation and create your own propertyControl entries for the properties that you want. I told you above what you did wrong.

Mitsosxat commented 2 years ago

Thank you for the help

Mitsosxat commented 2 years ago

I can arm the trigger but I can’t disarm it. I can’t turn off the trigger do you know why? @ BFD011E8-5EC9-4D96-8B24-F6949E8DC757

merdok commented 2 years ago

Because by specifying a value you make the switch a stateless switch, that means whenever you press the switch it will set the property to that value. You need to make a new propertyControl entry for the same property but with a different value, I suspect value 1 for home arming or value 0 for basic arming?

Mitsosxat commented 2 years ago

I see, that means i can’t disable the away-home for example and no alarm be active. I must always have an active alarm for the others to turn off. Right?

merdok commented 2 years ago

Yes, the property 3.1 must always have set one of the values from the value list.

Mitsosxat commented 2 years ago

hello, gateway suddenly stoped working on arming

Debug

[05/03/2022, 14:48:44] [miot] [Gateway] Starting property polling. [05/03/2022, 14:48:54] [miot] [Gateway] Splitting properties into chunks. Number of chunks: 2. Chunk size: 14 [05/03/2022, 14:48:54] [miot] [Gateway] (Protocol) Call 192.168.68.103: get_properties - [{"did":"374586600","siid":6,"piid":6},{"did":"374586600","siid":3,"piid":1},{"did":"374586600","siid":3,"piid":3},{"did":"374586600","siid":3,"piid":4},{"did":"374586600","siid":3,"piid":5},{"did":"374586600","siid":3,"piid":6},{"did":"374586600","siid":3,"piid":7},{"did":"374586600","siid":3,"piid":8},{"did":"374586600","siid":3,"piid":9},{"did":"374586600","siid":3,"piid":10},{"did":"374586600","siid":3,"piid":11},{"did":"374586600","siid":3,"piid":12},{"did":"374586600","siid":3,"piid":13},{"did":"374586600","siid":3,"piid":14}] - {} [05/03/2022, 14:48:54] [miot] [Gateway] (Protocol) Call 192.168.68.103: get_properties - [{"did":"374586600","siid":3,"piid":15},{"did":"374586600","siid":3,"piid":16},{"did":"374586600","siid":3,"piid":17},{"did":"374586600","siid":3,"piid":18},{"did":"374586600","siid":3,"piid":19},{"did":"374586600","siid":3,"piid":20},{"did":"374586600","siid":3,"piid":21},{"did":"374586600","siid":3,"piid":22},{"did":"374586600","siid":7,"piid":1}] - {} [05/03/2022, 14:49:04] [miot] [Gateway] Splitting properties into chunks. Number of chunks: 2. Chunk size: 14 [05/03/2022, 14:49:04] [miot] [Gateway] (Protocol) Call 192.168.68.103: get_properties - [{"did":"374586600","siid":6,"piid":6},{"did":"374586600","siid":3,"piid":1},{"did":"374586600","siid":3,"piid":3},{"did":"374586600","siid":3,"piid":4},{"did":"374586600","siid":3,"piid":5},{"did":"374586600","siid":3,"piid":6},{"did":"374586600","siid":3,"piid":7},{"did":"374586600","siid":3,"piid":8},{"did":"374586600","siid":3,"piid":9},{"did":"374586600","siid":3,"piid":10},{"did":"374586600","siid":3,"piid":11},{"did":"374586600","siid":3,"piid":12},{"did":"374586600","siid":3,"piid":13},{"did":"374586600","siid":3,"piid":14}] - {} [05/03/2022, 14:49:04] [miot] [Gateway] (Protocol) Call 192.168.68.103: get_properties - [{"did":"374586600","siid":3,"piid":15},{"did":"374586600","siid":3,"piid":16},{"did":"374586600","siid":3,"piid":17},{"did":"374586600","siid":3,"piid":18},{"did":"374586600","siid":3,"piid":19},{"did":"374586600","siid":3,"piid":20},{"did":"374586600","siid":3,"piid":21},{"did":"374586600","siid":3,"piid":22},{"did":"374586600","siid":7,"piid":1}] - {} [05/03/2022, 14:49:14] [miot] [Gateway] Splitting properties into chunks. Number of chunks: 2. Chunk size: 14 [05/03/2022, 14:49:14] [miot] [Gateway] (Protocol) Call 192.168.68.103: get_properties - [{"did":"374586600","siid":6,"piid":6},{"did":"374586600","siid":3,"piid":1},{"did":"374586600","siid":3,"piid":3},{"did":"374586600","siid":3,"piid":4},{"did":"374586600","siid":3,"piid":5},{"did":"374586600","siid":3,"piid":6},{"did":"374586600","siid":3,"piid":7},{"did":"374586600","siid":3,"piid":8},{"did":"374586600","siid":3,"piid":9},{"did":"374586600","siid":3,"piid":10},{"did":"374586600","siid":3,"piid":11},{"did":"374586600","siid":3,"piid":12},{"did":"374586600","siid":3,"piid":13},{"did":"374586600","siid":3,"piid":14}] - {} [05/03/2022, 14:49:14] [miot] [Gateway] (Protocol) Call 192.168.68.103: get_properties - [{"did":"374586600","siid":3,"piid":15},{"did":"374586600","siid":3,"piid":16},{"did":"374586600","siid":3,"piid":17},{"did":"374586600","siid":3,"piid":18},{"did":"374586600","siid":3,"piid":19},{"did":"374586600","siid":3,"piid":20},{"did":"374586600","siid":3,"piid":21},{"did":"374586600","siid":3,"piid":22},{"did":"374586600","siid":7,"piid":1}] - {} [05/03/2022, 14:49:24] [miot] [Gateway] Splitting properties into chunks. Number of chunks: 2. Chunk size: 14 [05/03/2022, 14:49:24] [miot] [Gateway] (Protocol) Call 192.168.68.103: get_properties - [{"did":"374586600","siid":6,"piid":6},{"did":"374586600","siid":3,"piid":1},{"did":"374586600","siid":3,"piid":3},{"did":"374586600","siid":3,"piid":4},{"did":"374586600","siid":3,"piid":5},{"did":"374586600","siid":3,"piid":6},{"did":"374586600","siid":3,"piid":7},{"did":"374586600","siid":3,"piid":8},{"did":"374586600","siid":3,"piid":9},{"did":"374586600","siid":3,"piid":10},{"did":"374586600","siid":3,"piid":11},{"did":"374586600","siid":3,"piid":12},{"did":"374586600","siid":3,"piid":13},{"did":"374586600","siid":3,"piid":14}] - {} [05/03/2022, 14:49:24] [miot] [Gateway] (Protocol) Call 192.168.68.103: get_properties - [{"did":"374586600","siid":3,"piid":15},{"did":"374586600","siid":3,"piid":16},{"did":"374586600","siid":3,"piid":17},{"did":"374586600","siid":3,"piid":18},{"did":"374586600","siid":3,"piid":19},{"did":"374586600","siid":3,"piid":20},{"did":"374586600","siid":3,"piid":21},{"did":"374586600","siid":3,"piid":22},{"did":"374586600","siid":7,"piid":1}] - {} [05/03/2022, 14:49:33] [miot] [Gateway] (Protocol) Call 192.168.68.103: set_properties - [{"did":"374586600","siid":3,"piid":1,"value":"2"}] - {"retries":2,"timeout":4000} [05/03/2022, 14:49:34] [miot] [Gateway] Splitting properties into chunks. Number of chunks: 2. Chunk size: 14 [05/03/2022, 14:49:34] [miot] [Gateway] (Protocol) Call 192.168.68.103: get_properties - [{"did":"374586600","siid":6,"piid":6},{"did":"374586600","siid":3,"piid":1},{"did":"374586600","siid":3,"piid":3},{"did":"374586600","siid":3,"piid":4},{"did":"374586600","siid":3,"piid":5},{"did":"374586600","siid":3,"piid":6},{"did":"374586600","siid":3,"piid":7},{"did":"374586600","siid":3,"piid":8},{"did":"374586600","siid":3,"piid":9},{"did":"374586600","siid":3,"piid":10},{"did":"374586600","siid":3,"piid":11},{"did":"374586600","siid":3,"piid":12},{"did":"374586600","siid":3,"piid":13},{"did":"374586600","siid":3,"piid":14}] - {} [05/03/2022, 14:49:34] [miot] [Gateway] (Protocol) Call 192.168.68.103: get_properties - [{"did":"374586600","siid":3,"piid":15},{"did":"374586600","siid":3,"piid":16},{"did":"374586600","siid":3,"piid":17},{"did":"374586600","siid":3,"piid":18},{"did":"374586600","siid":3,"piid":19},{"did":"374586600","siid":3,"piid":20},{"did":"374586600","siid":3,"piid":21},{"did":"374586600","siid":3,"piid":22},{"did":"374586600","siid":7,"piid":1}] - {} [05/03/2022, 14:49:44] [miot] [Gateway] Splitting properties into chunks. Number of chunks: 2. Chunk size: 14 [05/03/2022, 14:49:44] [miot] [Gateway] (Protocol) Call 192.168.68.103: get_properties - [{"did":"374586600","siid":6,"piid":6},{"did":"374586600","siid":3,"piid":1},{"did":"374586600","siid":3,"piid":3},{"did":"374586600","siid":3,"piid":4},{"did":"374586600","siid":3,"piid":5},{"did":"374586600","siid":3,"piid":6},{"did":"374586600","siid":3,"piid":7},{"did":"374586600","siid":3,"piid":8},{"did":"374586600","siid":3,"piid":9},{"did":"374586600","siid":3,"piid":10},{"did":"374586600","siid":3,"piid":11},{"did":"374586600","siid":3,"piid":12},{"did":"374586600","siid":3,"piid":13},{"did":"374586600","siid":3,"piid":14}] - {} [05/03/2022, 14:49:44] [miot] [Gateway] (Protocol) Call 192.168.68.103: get_properties - [{"did":"374586600","siid":3,"piid":15},{"did":"374586600","siid":3,"piid":16},{"did":"374586600","siid":3,"piid":17},{"did":"374586600","siid":3,"piid":18},{"did":"374586600","siid":3,"piid":19},{"did":"374586600","siid":3,"piid":20},{"did":"374586600","siid":3,"piid":21},{"did":"374586600","siid":3,"piid":22},{"did":"374586600","siid":7,"piid":1}] - {} [05/03/2022, 14:49:45] [miot] [Gateway] (Protocol) 192.168.68.103 <- Reached maximum number of retries, giving up set_properties - [{"did":"374586600","siid":3,"piid":1,"value":"2"}] [05/03/2022, 14:49:45] [miot] [Gateway] Error: Call to device timed out [05/03/2022, 14:49:54] [miot] [Gateway] Splitting properties into chunks. Number of chunks: 2. Chunk size: 14 [05/03/2022, 14:49:54] [miot] [Gateway] (Protocol) Call 192.168.68.103: get_properties - [{"did":"374586600","siid":6,"piid":6},{"did":"374586600","siid":3,"piid":1},{"did":"374586600","siid":3,"piid":3},{"did":"374586600","siid":3,"piid":4},{"did":"374586600","siid":3,"piid":5},{"did":"374586600","siid":3,"piid":6},{"did":"374586600","siid":3,"piid":7},{"did":"374586600","siid":3,"piid":8},{"did":"374586600","siid":3,"piid":9},{"did":"374586600","siid":3,"piid":10},{"did":"374586600","siid":3,"piid":11},{"did":"374586600","siid":3,"piid":12},{"did":"374586600","siid":3,"piid":13},{"did":"374586600","siid":3,"piid":14}] - {} [05/03/2022, 14:49:54] [miot] [Gateway] (Protocol) Call 192.168.68.103: get_properties - [{"did":"374586600","siid":3,"piid":15},{"did":"374586600","siid":3,"piid":16},{"did":"374586600","siid":3,"piid":17},{"did":"374586600","siid":3,"piid":18},{"did":"374586600","siid":3,"piid":19},{"did":"374586600","siid":3,"piid":20},{"did":"374586600","siid":3,"piid":21},{"did":"374586600","siid":3,"piid":22},{"did":"374586600","siid":7,"piid":1}] - {}

Mitsosxat commented 2 years ago

[05/03/2022, 14:52:34] [miot] [Gateway] (Protocol) Call 192.168.68.103: get_properties - [{"did":"374586600","siid":3,"piid":15},{"did":"374586600","siid":3,"piid":16},{"did":"374586600","siid":3,"piid":17},{"did":"374586600","siid":3,"piid":18},{"did":"374586600","siid":3,"piid":19},{"did":"374586600","siid":3,"piid":20},{"did":"374586600","siid":3,"piid":21},{"did":"374586600","siid":3,"piid":22},{"did":"374586600","siid":7,"piid":1}] - {} [05/03/2022, 14:52:35] [miot] [Gateway] (Protocol) Call 192.168.68.103: set_properties - [{"did":"374586600","siid":3,"piid":1,"value":"2"}] - {"retries":2,"timeout":4000}

Mitsosxat commented 2 years ago

[05/03/2022, 14:52:47] [miot] [Gateway] (Protocol) 192.168.68.103 <- Reached maximum number of retries, giving up set_properties - [{"did":"374586600","siid":3,"piid":1,"value":"2"}] [05/03/2022, 14:52:47] [miot] [Gateway] Error: Call to device timed out

Mitsosxat commented 2 years ago

[05/03/2022, 14:56:00] [miot] [Gateway] (Protocol) Call 192.168.68.103: get_properties - [{"did":"374586600","siid":3,"piid":15},{"did":"374586600","siid":3,"piid":16},{"did":"374586600","siid":3,"piid":17},{"did":"374586600","siid":3,"piid":18},{"did":"374586600","siid":3,"piid":19},{"did":"374586600","siid":3,"piid":20},{"did":"374586600","siid":3,"piid":21},{"did":"374586600","siid":3,"piid":22},{"did":"374586600","siid":7,"piid":1}] - {} [05/03/2022, 14:56:05] [miot] [Gateway] (Protocol) Call 192.168.68.103: set_properties - [{"did":"374586600","siid":3,"piid":1,"value":"0"}] - {"retries":2,"timeout":4000} [05/03/2022, 14:56:17] [miot] [Gateway] (Protocol) 192.168.68.103 <- Reached maximum number of retries, giving up set_properties - [{"did":"374586600","siid":3,"piid":1,"value":"0"}] [05/03/2022, 14:56:17] [miot] [Gateway] Error: Call to device timed out

merdok commented 2 years ago

Your device does not respond anymore. You should try to turn on/off your gateway and if that does not help you could try to reset it. This might be happen due to too many requests sent to the device...

Mitsosxat commented 2 years ago

I reseted it, unplug it and plug in again and restart router. Nothing worked

merdok commented 2 years ago

You need to find out why your device does not want to respond anymore. Maybe there was an update to the device? A factory reset should usually fix the issue.

Mitsosxat commented 2 years ago

I factory reseted it, unistall it and install it again, unpair accessories. i did literally anything and it still doesnt work.

merdok commented 2 years ago

Not sure what happend to your device... I can only advice you to investigate this further and try to find the cause.

Mitsosxat commented 2 years ago

I deleted the device from Xiaomi app and istalled it again. I factory reseted it. I network reseted it. I deleted all the plug ins from homebridge. I reseted everything in homebridge and started from scratch. I installed the plug in and insert gateway either manually or automatically with log in. The arming property doesn’t work anymore and I don’t know what to do. I have literally tried everything and I can’t find what’s going on. Please tell me something I haven’t thought already. Two minds are better than 1

merdok commented 2 years ago

That is pretty much impossible that it was working before and suddenly stopped. Double check that you do not have a typo anywhere, also check during device initialization in the homebridge log that the property still exists in the device, maybe for some reason it got removed during an update?

Mitsosxat commented 2 years ago

660E39AA-DFC9-44AD-9812-1A1A6E60F1DF I have checked everything. Sometimes it is not responding at all but most of the times it just won’t go arming mode. In Xiaomi app everything works fine

merdok commented 2 years ago

Value is not a string for the property control! That should be an integer, so remove the quotes from there!

Mitsosxat commented 2 years ago

I found that when you input the values on settings then you get the numbers inside “” in config. You have to fix it. 72B71F38-8322-453D-9378-8F3E77B143D4 6E2F5218-825D-4F84-87D6-5362372713B0

merdok commented 2 years ago

This is not possible to fix it that way, the value can be any type (integer, string, boolean object, array) depends on the property. The ui can only handle 1 type so it is always string, it is recommended to add the parameters always manually in the config.json.

Anyway, did that fix your issue?

Mitsosxat commented 2 years ago

Yea I just deleted “” and it worked. There is not a single thing you said and it didn’t work. Thank you

merdok commented 2 years ago

Good to hear! Glad it works now again! Can we close the issue?

Mitsosxat commented 2 years ago

As you wish