Comments (3)
Nice find, it's unfortunate that both commands return result
instead of the action
one e.g. action_result
.
Since the actions of my device just return a code, does this patch fix it?
0001-properly-parse-action-results.patch.txt
from esphome-miot.
Works with your patch applied, without breaking other sensors.
[21:28:07][V][miot:171]: Sending reply 'down action 5 6' to MCU
[21:28:07][V][miot:091]: Received MCU message 'result 5 6 0 12 "0,255,255,255,255,1,255,255,255,255,2,8,0,5,0,3,255,255,255,255,4,255,255,255,255"'
[21:28:07][V][miot.text_sensor:011]: MCU reported text sensor 5:12 is: 0,255,255,255,255,1,255,255,255,255,2,8,0,5,0,3,255,255,255,255,4,255,255,255,255
[21:28:07][V][text_sensor:013]: 'Feed Plan': Received new state 0,255,255,255,255,1,255,255,255,255,2,8,0,5,0,3,255,255,255,255,4,255,255,255,255
[21:28:07][D][text_sensor:064]: 'Feed Plan': Sending state '0,255,255,255,255,1,255,255,255,255,2,8,0,5,0,3,255,255,255,255,4,255,255,255,255'
[21:28:07][V][miot:171]: Sending reply 'ok' to MCU
from esphome-miot.
Nice, thanks for the test drive. Fix pushed to main
from esphome-miot.
Related Issues (10)
- Mi Air Purifier 3C (zhimi.airp.mb4a) HOT 37
- Guru Meditation Error in miot.cpp HOT 20
- Xiaomi Smart Air Purifier 4 Lite - Wiki update HOT 8
- Xiaomi Air Purifier 4 Lite (zhimi.airp.rma2) support HOT 4
- MCU time request: no time source available HOT 6
- Support for dmaker.fan.p18 and dmaker.fan.p33 HOT 12
- Heartbeat SIID/PIID not really optional HOT 3
- Support switch and binary_sensor as int HOT 4
- Support `event_occurred` MCU message HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esphome-miot.