Comments (11)
Hi,
I was able to find out the following:
If I have the value AA
/protocol.xml?protocol=9004082100020300AAffffff&_=1586803111
If I replaced one of the tables here, I can use it to adjust the angle.
from wms_webcontrol.
Sorry for the late reply, I must have had notifications turned off at some point.
Yes, in principle that should be possible. Unfortunately I don't have any blinds which support angle change, so I can't reverse engineer or test this, but what @Stephan1908 wrote certainly is in line with what I observed for the rest of the calls, i.e. rather arbitrary mapping of HEX values to open/close settings.
If you have blinds which support angle and are able to extend this, I'd be happy to review any pull request you send.
from wms_webcontrol.
I'm closing this for lack of a reply.
from wms_webcontrol.
hi,
sorry for reopen this one.
i added a fix value for the angle/tilt, cause i only need my raffsatores down and tilt closed.
therefore i changed SHADE_POSITION = '03{}dfffffff'
when i now set postion in a python console from (eg. shades[0].set_shade_position(100)) it works as expected,
when i do the same in Home Assistant (regardless if via automatisation or manual via UI) the first time a day, it just go down to the position set, but the tilt stays open.
if i repeat the command in console, tilt closes.
then it works in Home Assistat too, until the next day.
do you have any hints what i miss here?
thanks,
roland
from wms_webcontrol.
That sounds very strange indeed.
I would recommend enabling debug logging in HA for the warema module. That will show you which commands are actually being send.
from wms_webcontrol.
i added following to the config.yaml:
logger: default: debug logs: warema_wms_webcontrol: debug homeassistant.components.warema_wms_webcontrol: debug
where can i find this logs now?
(sorry, as you already noticed, i'm a noob)
from wms_webcontrol.
hi, the logs can be found in the HA front-end under
Configuration -> Server Controls -> Logs.
The logger specification doesn't look quite right but I have no means of testing it out right now.
from wms_webcontrol.
hi cornim,
thanks, i found it already but without gain of knowledge, haha
after some "reverse engineering" with wireshark, i extended your code, now i'm able to adjust the angle/tilt too.
it works via python console, now i have to adapt your HA Integration when i get time.
if you are interested i can provide this extensions.
thanks,
roland
from wms_webcontrol.
sounds good. if you set up a pull request i'm happy to review it.
from wms_webcontrol.
also i can possibly give some pointers on how to adapt the HA integration if I see how tilt is implemented in the library.
from wms_webcontrol.
I'll try to figure out how these pull requests work, I've never done it before, I just have to ask for a little patience until I find time for it.
tips & hints regarding the HA Integration would be very helpful and welcome.
a first quick n' dirty approach results in an attribute error (Shade object has no attribute 'stop_moving_shade' or something like that), but had no time for debugging.
from wms_webcontrol.
Related Issues (7)
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 wms_webcontrol.