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
fan.xiaomi_miio_set_oscillation_angle accepts strings only #9
Comments
That's weird because the config schema evaluates a list of integeres:
And the method signature expects an integer, too:
Could you test it again with integers and may be debug log enabled? I asked for testing some other values: For this tests the schema above must be extended temporary. Could a add the value
Thanks for your support! |
Using {"angle": 30} or {"angle": 120} works fine here!
This is normal behaviour. Please note that messing with the oscillation angle is approximative in Mi Home app too. Sometimes setting 30 deg will result in an oscillation of 90 deg. Similarly even on the official app, the left/right direction functions do not work during oscillation. I need to stop the oscillation before changing the direction, then star the oscillation again. This is something we could make better here than on the app by stopping the oscillation, then changing the direction before starting the oscillation again automatically... Let me know if you would rather I add a feature request on here! |
Could you extend the validation schema by "the" random value
and restart HA? This time the HA error "value is not allowed for dictionary value @ data['angle']." won't be triggered and the value ("10") will be passed to the device. I'm interested in the response of the device. |
Nothing happened, only errors in the log.
|
Thanks for your support. It looks like this feature works fine. |
using numeric value seems to hang whole Hass.io :-/ passing string values works only for: "30", "60", "90", "120" for other values nothing happens and get this king of error: Invalid service data for fan.xiaomi_miio_set_oscillation_angle: value is not allowed for dictionary value @ data['angle']. Got '50'
#4 (comment)
@jacekpaszkowski
The text was updated successfully, but these errors were encountered: