-
-
Notifications
You must be signed in to change notification settings - Fork 561
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
zhimi.heater.mc2 not fully supported #880
Comments
It seems this should not be a bug, but a new feature, but I dont seem to be able to change that. |
Miot specs: https://miot-spec.org/miot-spec-v2/instance?type=urn:miot-spec-v2:device:heater:0000A01A:zhimi-mc2:1
|
I can confirm that the below commands work: ###READS### Get Switch Status Get fault Get Mode - NOT WORKING Get Environment Get Temperature Get Physical Control Locked stauts Get Alarm stauts ###WRITES### Countdown Switch Status Target Temperature Mode Physical Control Locked Alarm Indicator Light The problem is that it only works with raw_commands, not with heater device commands. |
This is fine because the |
Great! Thank you for the feedback! |
already several models using miotspec (ma2, ma3, mc2, na1, nb1, za2, zb1). |
I'm not a developer, but I created a HeaterMiot.py that I tested and it works. If someone can create the pull request it would be great. Apart from this new file, only a small edit to init to include this new class. ` import click #from .airfilter_util import FilterType, FilterTypeUtil _LOGGER = logging.getLogger(name) class LedBrightness(enum.Enum): class HeaterMiotException(DeviceException): class HeaterMiotStatus:
class HeaterMiot(MiotDevice):
` |
Thank you for your analysis. If you want to use this file (HeaterMiot.py) on your home Assistant, see the |
I can’t really understand if you missed some text there. |
Off topic but there is a custom component
https://github.com/sunfang1cn/homeassistant-mi-heater
…On Sat, 5 Dec, 2020, 8:11 pm ee02217, ***@***.***> wrote:
If you want to use this file (HeaterMiot.py) on your home Assistant, see
the
Can you tell me what to do?
I can’t really understand if you missed some text there.
I would love to integrate this in home assistant , but I have no idea
how... :(
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#880 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHHBO44PVDKCPSAFKDNHYN3STJBADANCNFSM4UL74C4A>
.
|
It doesn’t support this device. And people are saying it doesn’t work anymore :( |
This fork works https://github.com/gaussian8/homeassistant-mi-heater for
zhimi.heater.za1. It uses raw miio commands AFAIK. Maybe a starting point for when miio adds heater support.
…On Sat, 5 Dec, 2020, 9:31 pm ee02217, ***@***.***> wrote:
It doesn’t support this device. And people are saying it doesn’t work
anymore :(
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#880 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHHBO426FGAU5RM2U3SXJLTSTJKMPANCNFSM4UL74C4A>
.
|
Through,
I got,
I have run other raw_command's like several users here, but same result. The device was added to local network through Mi Home app. The device token is the right one, got while it was in AP mode through Packet Sender. Specs:
|
token changes each time your device connects to wifi (is paired). token from ap mode is useless after bind. |
What method do you recommend to get that token after paired? |
There are some xiaomi cloud clients which can retrieve all tokens of your mihome account from the cloud. f.e. https://github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor |
Added support for this heater in #895 |
@rytilahti Can we close this as support for this device was merged in #895 ? |
Yes. Let's close this issue. The device is supported now. Thanks! |
Describe the bug
zhimi.heater.mc2 is not fully supported.
Info command works correctly providing the below output:
$ miiocli heater --ip 192.168.86.94 --token XXXXXXXXXXXXXX info Model: zhimi.heater.mc2 Hardware version: esp32 Firmware version: 2.0.8
However, any other command results in error:
$ miiocli heater --ip 192.168.86.94 --token XXXXXXXXXXXXXX on Powering on Error: {'code': -5001, 'message': 'command error'}
Version information (please complete the following information):
Device information:
To Reproduce
Steps to reproduce the behavior:
miiocli heater --ip 192.168.86.94 --token XXXXXXXXXXXXXX on
Expected behavior
Heater should turn on.
Console output
Powering on Error: {'code': -5001, 'message': 'command error'}
The text was updated successfully, but these errors were encountered: