How to get status Dooya DT360E
How to get status Dooya DT360E
I don't know, I'm afraid. Do you know if they use the same protocol?
it seems so. just got mine here.
In [17]: devices = broadlink.discover(timeout=5)
In [18]: devices[0]
Out[18]: <broadlink.device instance at 0x1107cafc8>
In [19]: devices[0].auth()
Out[19]: True
In [20]: devices[0].type
Out[20]: 'Unknown'
i can see traffic between it and e-control ios app through wireshark. any advice on how to decrypt/decode/reverse packets structure?
after some digging i can only say that its id is 0x4E4D. seems to be broadlink protocol, but might be some new flavor of it.
opened PR to add Dooya: https://github.com/mjg59/python-broadlink/pull/134
@jaxer I am writing code to control dooya cover in HomeAssistant using broadlink.dooya class but when I call open() function, i failed and get a bug like:
File "/srv/homeassistant/lib/python3.5/site-packages/broadlink/init.py", line 837, in _send return ord(payload[4]) TypeError: ord() expected string of length 1, but int found
@Hoanthieu right, need to remove ord wrapper from _send in broadlink. I guess i need to open PR for that. Maybe you can do that?
Thanks for creating proper hass component.
@jaxer I'm not sure that I can do that =))). I'm only a beginner
@jaxer I tried and could open and stop dooya curtain, but how to get its state, on or off ???
i've opened PR https://github.com/mjg59/python-broadlink/pull/216
get_percentage() should return 0-100 number where 0=closed and 100=opened.
Fixed with https://github.com/mjg59/python-broadlink/pull/134. Thank you!