Description
Describe the bug
I wanted to ask if anyone has actually tested the set_rotate
method in FanMiot
. I'm using the FanP10
class with a P18 device as they have the same services definition. As far as I was able to test, everything works as expected except the set_rotate method.
This is the message that is being sent:
[{'did': 'set_move', 'siid': 2, 'piid': 9, 'value': ['right']}]
This is what I think should've been sent (it works):
[{'did': 'set_move', 'siid': 2, 'piid': 9, 'value': 2}]
the urn file for both p10 and p18 says value should be uint8 (if I understant that correctly)
{
"iid": 9,
"description": "Motor Control",
"format": "uint8",
"access": [
"write"
],
"unit": "none",
"value-list": [
{
"value": 0,
"description": "NO"
},
{
"value": 1,
"description": "LEFT"
},
{
"value": 2,
"description": "RIGHT"
}
]
},
Version information (please complete the following information):
- OS: Linux,Windows
- python-miio: 0.5.6
Device information:
If the issue is specific to a device:
- Model: P10 (I'm using it with P18 but hopefully that should not matter)
- Hardware version: esp8266
- Firmware version: 2.0.7
To Reproduce
Steps to reproduce the behavior:
- try to send set_rotate command for an instance of FanP10 by:
fan.set_rotate(MoveDirection("left"))
- the device beeps but nothing happens
Expected behavior
device should turn 5°
Console output
If applicable, add console output to help explain your problem.
If the issue is about communication with a specific device, consider including the output using the --debug
flag.