Code Monkey home page Code Monkey logo

Comments (11)

Stephan1908 avatar Stephan1908 commented on August 11, 2024

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.

grafik

from wms_webcontrol.

cornim avatar cornim commented on August 11, 2024

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.

cornim avatar cornim commented on August 11, 2024

I'm closing this for lack of a reply.

from wms_webcontrol.

thesaint1975 avatar thesaint1975 commented on August 11, 2024

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.

cornim avatar cornim commented on August 11, 2024

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.

thesaint1975 avatar thesaint1975 commented on August 11, 2024

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.

cornim avatar cornim commented on August 11, 2024

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.

thesaint1975 avatar thesaint1975 commented on August 11, 2024

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.

cornim avatar cornim commented on August 11, 2024

sounds good. if you set up a pull request i'm happy to review it.

from wms_webcontrol.

cornim avatar cornim commented on August 11, 2024

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.

thesaint1975 avatar thesaint1975 commented on August 11, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.