Xiaomi Robot Vacuum Binding

Thanks for your persistance Marcel!
You were right and the FAQ helped!

Indeed my device was previously registered in CN, and without paying attention, with my new phone i registered in BE (server DE hence). After updating the binding config to use only DE servers, and restarting openhab (it was giving an error while adding the thing otherwise), it works like a charm!

thanks !

Hi Marcel,

wouldn’t it be possible to set the background to transparent?
If so, it would probably please all and fit everybodies need…

For now, I had to work around the given shape and color and ended with

image

Would be a lot easier to integrate the image without the blue background (and cropped to the “used” area only).

Sorry, if “transparent color” has already discussed (and answered) somewhere already :wink:

Nah, that has not been discussed earlier. (cropped yes, but as this graphics programming is not really my area of expertise I did not dive into that yet)
Might be a good idea indeed. Would be great if you could try it out and make a PR :slight_smile:

Thanks, for the reply.
Unfortunately, Java programming is not my area of expertise :wink:

I followed the discussion about setting up a development environment and I’m afraid, that’s beyond my possibilities :frowning:

Should I file an issue in openhab-addons on this?
Maybe someone who is convinced that this is a good idea might pick it up?

1 Like

haha… you can always learn… I did not know any java before OH :slight_smile:
yes, would be good to log an enhancement request on GH…

Hi Marcel,

thanks a lot for your amazing work on the binding :slight_smile:

I would like to use the room cleaning option described here, but I would like to set the repetitions to 2 or 3…

Is there any way to set the repeats when using segment cleaning?

Done:

:wink:

Hi,

I just added it into the my rules

I did not test it yet as everybody is asleep, but this is according to

… and up to now, everything written there was correct.

BR
PeterK

Hi,

yes that I have also seen, but I would like to use the room cleaning :slight_smile: That would be the segment cleaning, but you talk about the zone cleaning!

Is there in the segment cleaning also the possibility to specify the repetitions?

Hi,

It is just a thought…

Did you try using
EG_SA=16,16,16
instead of

?

Br
Petet

Ohh man,

that would be to easy :smiley:
Will try…

after second coffe… I assume it will not work, but I would be pleased to be corrected.

Is not working… :frowning:
Does no one knows a way to use segment clean with more than one run?
Sure I could write a rule for that…

Only thing I can think of is using the repetition of the zone-cleaning. If you define zones covering the entire room but no other room - this should work.

I saw a post somewhere using zones to clean everything but the carpet. He just defined multiple zones around the carpet.

This is a working wireshark capture:

{"id":8480,"method":"app_segment_clean","params":[{"segments":[17],"repeat":2,"clean_order_mode":0}]}

Is there any posibility to use this command with the binding?

Use the commands channel and send: app_segment_clean[{"segments":[17],"repeat":2,"clean_order_mode":0}]
in other words: first the command (method) and what is in the params goes right after it.

1 Like

Have someone done a Vacuum Widget for Main UI in OH3?

sorry if this is not the right thread…
I am using 3 yeelight rgb v1 lamps (with token) with this binding and everything works great (openhab2.5).I just want to know how can i send commands to the “execute command channel” and make use of the different yeelight sceens or the color flow feature?

Yes you can.
Google for yeelight spec and you find the scene command / color flow

ok i found the yeelight spec pdf and i read:

Method: set_power
Usage: This method is used to switch on or off the smart LED (software
managed on/off).
Parameters: 3.
 "power" can only be "on" or "off". "on" means turn on the smart LED,
"off" means turn off the smart LED.
 "effect": Refer to "set_ct_abx" method.
"duration": Refer to "set_ct_abx" method.
"mode" (optional):
 0: Normal turn on operation (default value)
 1: Turn on and switch to CT mode.
 2: Turn on and switch to RGB mode.
 3: Turn on and switch to HSV mode.
 4: Turn on and switch to color flow mode.
 5: Turn on and switch to Night light mode. (Ceiling light only).
Request Example: {"id":1,"method":"set_power","params":["on", "smooth", 500]}
Response Example: {"id":1, "result":["ok"]}

so i give to execute command channel {“id”:1,“method”:“set_power”,“params”:[“on”, “smooth”, 500]} but nothing happens ,what am i doing wrong here?