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

Jonr P20 PRO #654

Open
blazer83pl opened this issue Jan 14, 2025 · 3 comments
Open

Jonr P20 PRO #654

blazer83pl opened this issue Jan 14, 2025 · 3 comments
Assignees
Labels
new device Request new device support

Comments

@blazer83pl
Copy link

Hi,
can u add this device?
https://home.miot-spec.com/s/xtl.vacuum.xm2216

@blazer83pl blazer83pl added the new device Request new device support label Jan 14, 2025
@merdok
Copy link
Owner

merdok commented Jan 14, 2025

Did you already tried to add it to the plugin? And what does not work if you do?

@blazer83pl
Copy link
Author

Hi, yes i add it and logs loks like this:
[15/01/2025, 19:04:55] [homebridge-miot] [John] Model known: xtl.vacuum.xm2216!
[15/01/2025, 19:04:55] [homebridge-miot] [John] Initializing device!
[15/01/2025, 19:04:55] [homebridge-miot] [John] Initializing device services
[15/01/2025, 19:04:55] [homebridge-miot] [John] Device services: [
"vacuum",
"battery",
"robotic-vacuum"
]
[15/01/2025, 19:04:55] [homebridge-miot] [John] Initializing device properties
[15/01/2025, 19:04:55] [homebridge-miot] [John] Device properties: [
"vacuum:status",
"battery:battery-level",
"robotic-vacuum:disturb-switch",
"robotic-vacuum:break-clean-switch",
"robotic-vacuum:collect-dust",
"robotic-vacuum:dry-mop",
"robotic-vacuum:wash-mop",
"robotic-vacuum:child-lock",
"robotic-vacuum:carpet-boost-switch",
"robotic-vacuum:clean-type",
"robotic-vacuum:clean-type-status",
"robotic-vacuum:clean-mode",
"robotic-vacuum:carpet-clean-prefer",
"robotic-vacuum:water-mode",
"robotic-vacuum:fan-mode",
"robotic-vacuum:clean-count",
"robotic-vacuum:volume",
"robotic-vacuum:scheduled-timer",
"robotic-vacuum:scheduled-timers",
"robotic-vacuum:disturb-time-action",
"robotic-vacuum:disturb-time",
"robotic-vacuum:dust-collection-freq",
"robotic-vacuum:drying-switch",
"robotic-vacuum:drying-time",
"robotic-vacuum:mop-wash-frequency",
"robotic-vacuum:time-zone",
"robotic-vacuum:language-voice",
"robotic-vacuum:clean-time",
"robotic-vacuum:clean-area",
"robotic-vacuum:battery",
"robotic-vacuum:clean-area-total",
"robotic-vacuum:clean-count-total",
"robotic-vacuum:clean-time-total",
"robotic-vacuum:consumables",
"robotic-vacuum:consumables-action",
"robotic-vacuum:clean-values",
"robotic-vacuum:error",
"robotic-vacuum:message",
"robotic-vacuum:map-infos",
"robotic-vacuum:map-data",
"robotic-vacuum:save-map-switch",
"robotic-vacuum:areas-split",
"robotic-vacuum:areas-merge",
"robotic-vacuum:erp-switch",
"robotic-vacuum:mop-augment-switch",
"robotic-vacuum:auto-solution-switch",
"robotic-vacuum:mop-wash-temp",
"robotic-vacuum:clean-records",
"robotic-vacuum:multifloor-switch",
"robotic-vacuum:return-status",
"robotic-vacuum:robot-status",
"robotic-vacuum:auto-water-change",
"robotic-vacuum:clean-water-cistern",
"robotic-vacuum:drain-cistern",
"robotic-vacuum:dust-bag",
"robotic-vacuum:mop-clean-tank",
"robotic-vacuum:robot-set-status",
"robotic-vacuum:virtual-walls-action",
"robotic-vacuum:save-map-action",
"robotic-vacuum:map-id",
"robotic-vacuum:map-info",
"robotic-vacuum:area-info",
"robotic-vacuum:voice-lang-info",
"robotic-vacuum:control-order",
"robotic-vacuum:push-code",
"robotic-vacuum:expanded-map",
"robotic-vacuum:fine-drag",
"robotic-vacuum:aw-check-data",
"robotic-vacuum:aw-check-switch-data",
"robotic-vacuum:exit-control-data",
"robotic-vacuum:customization-action",
"robotic-vacuum:carpetmarking-action",
"robotic-vacuum:aw-check-sign",
"robotic-vacuum:carpet-cleantwice",
"robotic-vacuum:carpet-cleanchoice",
"robotic-vacuum:room-edite-result",
"robotic-vacuum:cp-preference-data",
"robotic-vacuum:language-ver",
"robotic-vacuum:station-error"
]
[15/01/2025, 19:04:55] [homebridge-miot] [John] Initializing device actions
[15/01/2025, 19:04:55] [homebridge-miot] [John] Device actions: [
"vacuum:start-sweep",
"vacuum:stop-sweeping",
"vacuum:pause-sweeping",
"battery:start-charge",
"robotic-vacuum:start-clean",
"robotic-vacuum:pause-continue-work",
"robotic-vacuum:stop-clean",
"robotic-vacuum:seek-robot",
"robotic-vacuum:set-virtual-walls",
"robotic-vacuum:save-map",
"robotic-vacuum:edite-map",
"robotic-vacuum:del-map",
"robotic-vacuum:switch-map",
"robotic-vacuum:fast-building",
"robotic-vacuum:clean-building",
"robotic-vacuum:get-map-data",
"robotic-vacuum:get-map-infos",
"robotic-vacuum:report-log",
"robotic-vacuum:edite-area-info",
"robotic-vacuum:set-schedule-timer",
"robotic-vacuum:set-split-area",
"robotic-vacuum:set-merge-areas",
"robotic-vacuum:sync-time-zone",
"robotic-vacuum:reset-consumable",
"robotic-vacuum:switch-voice-lang",
"robotic-vacuum:give-up-map-extended",
"robotic-vacuum:clear-maps-except",
"robotic-vacuum:set-disturb-switch",
"robotic-vacuum:set-break-switch",
"robotic-vacuum:set-fan-mode",
"robotic-vacuum:set-water-mode",
"robotic-vacuum:set-clean-count",
"robotic-vacuum:set-save-map-switch",
"robotic-vacuum:set-disturb-time",
"robotic-vacuum:set-volume",
"robotic-vacuum:set-dust-collection",
"robotic-vacuum:set-carpet-prefer",
"robotic-vacuum:set-carpet-boost",
"robotic-vacuum:set-mop-augment",
"robotic-vacuum:set-child-lock",
"robotic-vacuum:set-erp-switch",
"robotic-vacuum:set-auto-solution",
"robotic-vacuum:set-wash-mop",
"robotic-vacuum:set-dry-mop",
"robotic-vacuum:set-collect-dust",
"robotic-vacuum:set-drying-time",
"robotic-vacuum:set-mop-wash-freq",
"robotic-vacuum:set-mop-wash-temp",
"robotic-vacuum:set-clean-mode",
"robotic-vacuum:set-mfloor-switch",
"robotic-vacuum:set-drying-switch",
"robotic-vacuum:manual-control",
"robotic-vacuum:fine-drag-switch",
"robotic-vacuum:awater-check-switch",
"robotic-vacuum:exit-control-switch",
"robotic-vacuum:customization-rooms",
"robotic-vacuum:carpet-marking",
"robotic-vacuum:setcarpetcleantwice",
"robotic-vacuum:setcarpetcleanfirst",
"robotic-vacuum:carpet-preference"
]
[15/01/2025, 19:04:55] [homebridge-miot] [John] Successfully created a custom accessory device! It is a Robot Cleaner. Make sure to configure the properties and actions!
[15/01/2025, 19:04:55] [homebridge-miot] [John] Initializing accessory!
[15/01/2025, 19:04:55] [homebridge-miot] [John] =PC= Property vacuum:clean-mode does not exist on this device. Skipping property control!
[15/01/2025, 19:04:55] [homebridge-miot] [John] Accessory successfully initialized!
[15/01/2025, 19:04:55] [homebridge-miot] [John] Registering 1 accessories!
[15/01/2025, 19:04:55] [homebridge-miot] [John] Everything looks good! Initiating property polling!
[15/01/2025, 19:04:55] [homebridge-miot] [John] Device found! Setting up miot device from local connection!
[15/01/2025, 19:04:55] [homebridge-miot] [John] Connected to device: xtl.vacuum.xm2216
[15/01/2025, 19:04:55] [homebridge-miot] [John] Doing initial property fetch.
[15/01/2025, 19:05:07] [homebridge-miot] [John] Starting property polling.
[15/01/2025, 19:05:59] [homebridge-miot] [John] Poll failed 4 times in a row! Stopping polling and trying to reconnect! Reason: Error: Call to device timed out
[15/01/2025, 19:06:05] [Homebridge UI] Accessory layout changes saved for blazer.
[15/01/2025, 19:06:59] [homebridge-miot] [John] Device found! Setting up miot device from local connection!
[15/01/2025, 19:06:59] [homebridge-miot] [John] Connected to device: xtl.vacuum.xm2216
[15/01/2025, 19:06:59] [homebridge-miot] [John] Doing initial property fetch.
[15/01/2025, 19:07:11] [homebridge-miot] [John] Starting property polling.
[15/01/2025, 19:07:53] [homebridge-miot] [John] Poll failed 4 times in a row! Stopping polling and trying to reconnect! Reason: Error: Call to device timed out

And this is my json file:
{
"devices": [
{
"name": "John",
"ip": "192.168.xx.xx",
"token": "xxxxxxxx",
"deviceId": "xxxxxxxx",
"pollingInterval": 10,
"deepDebugLog": false,
"silentLog": false,
"deviceEnabled": true,
"customAccessory": true,
"buzzerControl": false,
"ledControl": false,
"childLockControl": false,
"modeControl": true,
"actionButtons": [
{
"action": "vacuum:start-sweep",
"name": "Clean",
"params": [
"00002804"
]
}
],
"propertyControl": [
{
"property": "vacuum:clean-mode",
"name": "Mode"
}
]
}
],
"_bridge": {
"username": "0E:1A:ED:6D:73:13",
"port": 41755
},
"platform": "miot"
}

Action button in HomeKit dont work and its says that the batter lvl is low.

@merdok
Copy link
Owner

merdok commented Jan 16, 2025

Oh, ok... Then I guess some mapping is required for your device. Will have a look at it.

@merdok merdok self-assigned this Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new device Request new device support
Projects
None yet
Development

No branches or pull requests

2 participants