-
Notifications
You must be signed in to change notification settings - Fork 17
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
Problems with philips.light.sread1 // Different MCU commands? #29
Comments
MiIO vs MiOTUnfortunately, this device is using the older "MiIO" protocol, which is not supported by this component. The new "miot" protocol uses integer ID's for service/properties ( For identification, you can see the "miio2miot" tag on the philips.light.sread1 MiOT spec search results. I also have an unsupported "Mi Smart Antibacterial Humidifier" collecting dust because of this. Notice in this link how the ESP8266 quirks
The ESP8266 is too weak to handle 2 serial ports in parallel, causing lost characters ( One serial port is from the uart used by this component uart:
tx_pin: GPIO15
rx_pin: GPIO13
baud_rate: 115200
miot:
id: miot_main while the second serial port is enabled by default by the logger:
level: DEBUG
# Important: Disable UART1 logging to avoid hardware errors on main UART0
baud_rate: 0 ... but that's not going to help having an unsupported device. |
Thanks for that clarification, so I found probably the config settings for that old model spec: hass-xiaomi-miot I am sadly not that firm with C++, only with python, but I will take a look, if I can manage to do at least some progress, I still have a few old devices, that would be to sad to throw away. I also came across that protocol: "miio2litter" do you know anything about that maybe?
|
It's a compatibility layer, as far as I know, so that you can use integrations like "Xiaomi Miot Auto" with older devices. However that's with the original firmware. The HA integrations speak To use the device under esphome with truly open firmware someone has to implement the miio protocol as an external component. As you may have seen, the miio protocol is a bit more of a wild west, so harder to create a component for :/ , and too different from miot to just add support in this project. |
For my project( dmaker.airfresh.t2017), I made the following patch for this old type of commands. |
I discovered this project and try to implement it on a: philips.light.sread1
Hardware is: Xiaomi MHCW03P module
The MiOT Spec page should be: philips.light.sread1
But I guess it is incomplete, the ambient, nightcare etc are not listed and are availble to control with the Xiaomi Miio HomeAssistant Integration.
This is the log from the HA integration:
I use the following ESPHome Config:
Details
MCU identification and load of the module is ok:
Got MCU UART communication:
Sometimes I get timeouts:
[21:06:44][E][miot:086]: Timeout while receiving from MCU, dropping message 'get_do???'
Log when it tries to get the current state from the MCU:
Now the interesting part:
If I operate the device on the buttons I get the following communication:
And this is the output if i try to use the switches with the siid and piid from the miot spec:
Anyone a clue how can I fix that?
The text was updated successfully, but these errors were encountered: