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

Support for Xiaomi Xiao AI Smart Alarm Clock (zimi.clock.myk01) #505

Closed
fr00kt opened this issue May 9, 2019 · 9 comments · Fixed by #558
Closed

Support for Xiaomi Xiao AI Smart Alarm Clock (zimi.clock.myk01) #505

fr00kt opened this issue May 9, 2019 · 9 comments · Fixed by #558
Assignees

Comments

@fr00kt
Copy link

fr00kt commented May 9, 2019

WARNING:miio.discovery:Found unsupported device zimi-clock-myk01_miio257384045._miio._udp.local. at xxx.xxx.xxx.xxx, please report to developers

@fr00kt fr00kt changed the title Support Xiaomi Xiao AI Smart Alarm Clock (zimi.clock.myk01) Support for Xiaomi Xiao AI Smart Alarm Clock (zimi.clock.myk01) May 9, 2019
@rytilahti
Copy link
Owner

Could you provide information about the available commands etc. See https://github.com/aholstenson/miio/blob/master/docs/missing-devices.md for information how to extract this.

@rytilahti
Copy link
Owner

I have now such a device myself, and I have began implementing this, but it will take some time to do it properly.

@rytilahti rytilahti self-assigned this Aug 8, 2019
@rezmus
Copy link

rezmus commented Aug 8, 2019

us version of this clock is coming soon, including alexa support.

https://www.zmiusa.com/pages/zmihome-sf-companion-ai-alarm-clock

@KVinS
Copy link

KVinS commented Aug 9, 2024

@rytilahti, in the end support was not added? I don't see the file in the master branch. I would like to use this as an alarm (melody + button) in Home Assistant.
(And I need a BT Gateway near the bed.)

@rytilahti
Copy link
Owner

The file is here https://github.com/rytilahti/python-miio/blob/master/miio/integrations/zimi/clock/alarmclock.py but it wasn't never really fully implemented. Note that this specific device was replaced by some other product years ago, so it's unlikely you can get this device anywhere even if you wanted to..

@LittleChest
Copy link

LittleChest commented Oct 21, 2024

Will we ever actually add it? It's a very specific type of device.

I want to keep its screen off all the time (by adjusting night mode) to save power and use it as a speaker and mesh gateway.

@rytilahti
Copy link
Owner

This issue has been closed for years, but if you take a look into the linked source, you can find the command to adjust the night mode & just use miiocli device raw_command to adjust it.

If you want to contribute, feel free to submit a PR to implement the command.

@LittleChest
Copy link

LittleChest commented Oct 27, 2024

This issue has been closed for years, but if you take a look into the linked source, you can find the command to adjust the night mode & just use miiocli device raw_command to adjust it.

If you want to contribute, feel free to submit a PR to implement the command.

root@localhost:~# miiocli device --ip 172.16.0.109 --token PRIVATE raw_command "{"id":248,"method":"set_night_mode","params":[1,"11:00","10:00"]}"
Running command raw_command
ERROR:miio.miioprotocol:Got error when receiving: timed out
Error: No response from the device

@rytilahti
Copy link
Owner

The raw command expects the command and its parameters separately, so you could try something like miiocli device --ip 172.16.0.109 --token PRIVATE raw_command set_night_mode '[1,"11:00","10:00"]'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants