This library can connect to a Warema WMS WebControl web server to send control commands.
Currently only vertical blinds are supported. Feel free to extend support to other devices.
Usage:
from warema_wms import Shade
shades = Shade.get_all_shades()
shades[0].set_shade_position(25) #0=open; 100=closed
shades[1].get_shade_state(True) #Force update and get shade state
in case your WebControl server is not under http://webcontrol.local
you'll
have to create and pass your own WmsController.
from warema_wms import WmsController, Shade
shades = Shade.get_all_shades(WmsController('http://server_addr'))
An undocumented example integration for home assistant can be found here:
https://github.com/cornim/ha-warema-integration
- Improved error handling while updating shades (network timeouts)
- Fixed error log message in set_shade_position method
- Fixed misnamed variable in error log in set_shade_position method
- Increased stability by checking if set position cmd was received
- Made update procedure more resilient
- Introduced parameters to set number of retries and time between commands
- Set default time between commands to 0.1s
- Set default number of retries to 3
- Removed bug on system were 'http://webcontrol.local' does not resolve
- Reduced wait time between sending http commands to wms webcontrol webserver to 0.5 seconds
- Changed package structure
- Improved documentation
- Improved protocol
- Fixed bug where moving state was always true.