Code Monkey home page Code Monkey logo

Comments (9)

joba-1 avatar joba-1 commented on May 29, 2024

that could be difficult...

In tasmoticz I only see mqtt messages.

I need to detect there are shutters or blinds involved.
-> some RESULT messages contain shutter info. OK, I can create domoticz devices with that and update their state as the positions change. But do I need to distinguish between shutters and blinds? How?
And to activate shutter movements from domoticz, it seems I need a robust relation between POWERx and SHUTTERy and I don't see how I can get that. Or is there another mqtt command to move SHUTTERy without POWERx?

from tasmoticz.

megamarco833 avatar megamarco833 commented on May 29, 2024

hi, i think to move from domoticz to tasmota could be quite simple:
example:
topic: cmnd/tasmota_blind/shutterposition1
mesage: 67
this will move shutter1 at 67%

cmnd/tasmota_blind/shutterposition3 24
this will move shutter3 at 24%

related to position...tasmota use SHUTTER to define a position...
stat/tasmota_blind/RESULT = {"Shutter1":{"Position":44,"Direction":0,"Target":46},"Shutter2":{"Position":51,"Direction":0,"Target":51},"Shutter3":{"Position":53,"Direction":0,"Target":53},"Shutter4":{"Position":51,"Direction":0,"Target":51}}
i think that you can have a look at position and/or target
not sure what is the best to avoid a "ping-pong" between tasmota and domoticz.
i mean if i start the moviment from tasmota, domoticz need just to move the slider to update the percentage of dummy device and NOT triggering tasmota for any moviment, otherwise it create a ping-pong message between tasmota and domoticz.

anyhow,i never see used "blind" in logs...
blind is part of my topic: tasmota_blind
immagine

if you want you can have a look here:
https://tasmota.github.io/docs/Blinds-and-Shutters/
here is well documented how it works and at the bottom of the page there are some examples how to integrate it inside homehass, maybe it can inspire you on your script to integration with domoticz? :-)

from tasmoticz.

megamarco833 avatar megamarco833 commented on May 29, 2024

hi @joba-1 :)
did you get the time to read about my post?
what do you think about suggestion to listen about position and target and publish for shutterposition?
do you think that it could be feasible to implement inside your script to have also blind integration?
if you need any support please ask...unfortunatly not for phyton code (shame on me) , but for tests or whatever you need :)
thanks again!

from tasmoticz.

joba-1 avatar joba-1 commented on May 29, 2024

It looks like doable and not very complicated.
But that is just like color control or combining temperature and humidity. And look how old my issues for those are although I would have a personal benefit from implementing those.

Could be you learning python is faster...

I still want to implement it, just trying to be realistic: better don't hold your breath.

from tasmoticz.

megamarco833 avatar megamarco833 commented on May 29, 2024

It looks like doable and not very complicated.
But that is just like color control or combining temperature and humidity. And look how old my issues for those are although I would have a personal benefit from implementing those.

Could be you learning python is faster...

I still want to implement it, just trying to be realistic: better don't hold your breath.

....hey ciao...sorry but maybe i do not understand properly your answer :-)
you would like to implement and it's just a matter of time?
or
it's quite similar to combine temperature and humudity, where (as i understand) you find some issue and so you are expexting some personal benefit to implement blind?
thanks!

from tasmoticz.

megamarco833 avatar megamarco833 commented on May 29, 2024

It looks like doable and not very complicated.
But that is just like color control or combining temperature and humidity. And look how old my issues for those are although I would have a personal benefit from implementing those.

Could be you learning python is faster...

I still want to implement it, just trying to be realistic: better don't hold your breath.

hey ciao Joba.
i tried to implement inside your script the blind control but it's a disaster for me....
i find too much difficult understand how the code work and how to send command to:
cmnd/tasmota_blind/shutterposition1
instead of POWER

and read POSITION and TARGET
from
stat/tasmota_blind/RESULT = {"Shutter1":{"Position":44,"Direction":0,"Target":46},"Shutter2":{"Position":51,"Direction":0,"Target":51},"Shutter3":{"Position":53,"Direction":0,"Target":53},"Shutter4":{"Position":51,"Direction":0,"Target":51}}
i think that you can have a look at position and/or target

i find something here:
https://indomus.it/guide/integrare-la-gestione-tapparelle-di-tasmota-a-home-assistant-via-mqtt/
that explain how to read from tasmota the value of blind and using inside homeassistant.

do you want to try to implement that inside tasmoticz?
from my side i can support inevery kind of test or whatever you want but modify phyton it's impossible from my side :( sorry for that. and thanks if you would like to try....

from tasmoticz.

DAVIZINH0 avatar DAVIZINH0 commented on May 29, 2024

Hello.
I have a simple sonoff dual r2 to control a blind. Its easy, one rele to up, one rele to down. And with tasmoticz apears the 2 switches in domoticz (one for up and one for down).
But maybe its posible that apears a devide "blinds inverter percentage" that allow to up and down, and sincronice with the tasmota % of position.

its this posible, or its not in the development plans?

from tasmoticz.

megamarco833 avatar megamarco833 commented on May 29, 2024

Hello. I have a simple sonoff dual r2 to control a blind. Its easy, one rele to up, one rele to down. And with tasmoticz apears the 2 switches in domoticz (one for up and one for down). But maybe its posible that apears a devide "blinds inverter percentage" that allow to up and down, and sincronice with the tasmota % of position.

its this posible, or its not in the development plans?

You can use mqtt autodiscovery that it's implemented on latest version of domoticz
On tasmota you can activate mqtt autodiscovery with command
Setoption19 1
In domoticz you need to add in hardware page the mqtt autodiscovery and that's it :)

from tasmoticz.

DAVIZINH0 avatar DAVIZINH0 commented on May 29, 2024

wow, I use the autodiscover for other devices, but for tasmota i allways use the tasmoticz. I will try!
With topic y must configure in autodiscover for tasmota devices?

thanks @megamarco833

from tasmoticz.

Related Issues (20)

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.