Skip to content
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

bllind port #15

Open
megamarco833 opened this issue May 13, 2020 · 9 comments
Open

bllind port #15

megamarco833 opened this issue May 13, 2020 · 9 comments

Comments

@megamarco833
Copy link

Hi, here a log about tasmota with blind application.
immagine

inside domoticz i set 4 dummy devices set as blind inverted with percentage.
inside tasmota i have this configuration:

8 output connected to PCF8574 to menage 4 blinds (1relay for open(up) ; 1 repay for close(down))

immagine
8switches for wall switch push button (1button=up blind1 ; 2button=down blind2)
immagine

logs from tasmota from boot to 1st tele message:

00:00:00 CFG: Loaded from flash at F6, Count 126
00:00:00 SHT: Shutter 1 (Relay:1): Init. Pos: 15000 [50 %], Open Vel.: 100, Close Vel.: 187 , Max Way: 30000, Opentime 15.0 [s], Closetime 8.0 [s], CoeffCalc: c0: 300, c1 500, c2: 700, c3: 900, c4: 1000, binmask 3, is inverted 0, is locked 0, end stop time enabled 0, webButtons inverted 0, shuttermode 0, motordelay 0
00:00:00 SHT: Shutter 2 (Relay:3): Init. Pos: 13500 [45 %], Open Vel.: 100, Close Vel.: 187 , Max Way: 30000, Opentime 15.0 [s], Closetime 8.0 [s], CoeffCalc: c0: 300, c1 500, c2: 700, c3: 900, c4: 1000, binmask 15, is inverted 0, is locked 0, end stop time enabled 0, webButtons inverted 0, shuttermode 0, motordelay 0
00:00:00 SHT: Shutter 3 (Relay:5): Init. Pos: 15900 [53 %], Open Vel.: 100, Close Vel.: 187 , Max Way: 30000, Opentime 15.0 [s], Closetime 8.0 [s], CoeffCalc: c0: 300, c1 500, c2: 700, c3: 900, c4: 1000, binmask 63, is inverted 0, is locked 0, end stop time enabled 0, webButtons inverted 0, shuttermode 0, motordelay 0
00:00:00 SHT: Shutter 4 (Relay:7): Init. Pos: 15300 [51 %], Open Vel.: 100, Close Vel.: 187 , Max Way: 30000, Opentime 15.0 [s], Closetime 8.0 [s], CoeffCalc: c0: 300, c1 500, c2: 700, c3: 900, c4: 1000, binmask 255, is inverted 0, is locked 0, end stop time enabled 0, webButtons inverted 0, shuttermode 0, motordelay 0
00:00:00 I2C: PCF8574 found at 0x20
00:00:00 PCF: Total devices 1, PCF8574 output ports 8
00:00:00 Project tasmota Tasmota_blind Version 8.2.0.6(tasmota)-2_7_0
00:00:01 WIF: Connecting to AP1 NETGEAR Channel 13 BSSId 80:3F:5D:6E:37:67 in mode 11N as tasmota_blind-2767...
00:00:03 WIF: Connected
00:00:03 HTP: Web server active on tasmota_blind-2767 with IP address 192.168.0.158
18:28:52 MQT: Attempting connection...
18:28:52 MQT: Connected
18:28:52 MQT: tele/tasmota_blind/LWT = Online (retained)
18:28:52 MQT: cmnd/tasmota_blind/POWER = 
18:28:52 MQT: tele/tasmota_blind/INFO1 = {"Module":"","Version":"8.2.0.6(tasmota)","FallbackTopic":"cmnd/DVES_014ACF_fb/","GroupTopic":"cmnd/tasmotas/"}
18:28:52 MQT: tele/tasmota_blind/INFO2 = {"WebServerMode":"Admin","Hostname":"tasmota_blind-2767","IPAddress":"192.168.0.158"}
18:28:52 MQT: tele/tasmota_blind/INFO3 = {"RestartReason":"Software/System restart"}
18:28:52 MQT: stat/tasmota_blind/RESULT = {"POWER1":"OFF"}
18:28:52 MQT: stat/tasmota_blind/POWER1 = OFF
18:28:52 MQT: stat/tasmota_blind/RESULT = {"POWER2":"OFF"}
18:28:52 MQT: stat/tasmota_blind/POWER2 = OFF
18:28:52 MQT: stat/tasmota_blind/RESULT = {"POWER3":"OFF"}
18:28:52 MQT: stat/tasmota_blind/POWER3 = OFF
18:28:52 MQT: stat/tasmota_blind/RESULT = {"POWER4":"OFF"}
18:28:52 MQT: stat/tasmota_blind/POWER4 = OFF
18:28:52 MQT: stat/tasmota_blind/RESULT = {"POWER5":"OFF"}
18:28:52 MQT: stat/tasmota_blind/POWER5 = OFF
18:28:52 MQT: stat/tasmota_blind/RESULT = {"POWER6":"OFF"}
18:28:52 MQT: stat/tasmota_blind/POWER6 = OFF
18:28:52 MQT: stat/tasmota_blind/RESULT = {"POWER7":"OFF"}
18:28:52 MQT: stat/tasmota_blind/POWER7 = OFF
18:28:52 MQT: stat/tasmota_blind/RESULT = {"POWER8":"OFF"}
18:28:52 MQT: stat/tasmota_blind/POWER8 = OFF

log moving blind1 to close direction at 30%

18:30:00 SHT: Start in dir 0
18:30:00 MQT: tele/tasmota_blind/STATE = {"Time":"2020-05-13T18:30:00","Uptime":"0T00:01:15","UptimeSec":75,"Heap":26,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER1":"OFF","POWER2":"ON","POWER3":"OFF","POWER4":"OFF","POWER5":"OFF","POWER6":"OFF","POWER7":"OFF","POWER8":"OFF","Wifi":{"AP":1,"SSId":"NETGEAR","BSSId":"80:3F:5D:6E:37:67","Channel":5,"RSSI":60,"Signal":-70,"LinkCount":1,"Downtime":"0T00:00:05"}}
18:30:00 MQT: stat/tasmota_blind/RESULT = {"POWER2":"ON"}
18:30:00 MQT: stat/tasmota_blind/POWER2 = ON
18:30:00 MQT: stat/tasmota_blind/RESULT = {"ShutterPosition1":30}
18:30:00 SHT: Shutter1 Real 13504, Start 15000, Stop 9000, Dir -1, Delay 0, Rtc 0.55 [s], Freq 0
18:30:01 MQT: stat/tasmota_blind/RESULT = {"Shutter1":{"Position":45,"Direction":-1,"Target":30},"Shutter2":{"Position":45,"Direction":0,"Target":45},"Shutter3":{"Position":53,"Direction":0,"Target":53},"Shutter4":{"Position":51,"Direction":0,"Target":51}}
18:30:01 SHT: Shutter1 Real 9764, Start 15000, Stop 9000, Dir -1, Delay 0, Rtc 1.40 [s], Freq 0
18:30:01 MQT: stat/tasmota_blind/RESULT = {"Shutter1":{"Position":33,"Direction":-1,"Target":30},"Shutter2":{"Position":45,"Direction":0,"Target":45},"Shutter3":{"Position":53,"Direction":0,"Target":53},"Shutter4":{"Position":51,"Direction":0,"Target":51}}
18:30:02 MQT: tele/tasmota_blind/STATE = {"Time":"2020-05-13T18:30:02","Uptime":"0T00:01:17","UptimeSec":77,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":37,"MqttCount":1,"POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","POWER4":"OFF","POWER5":"OFF","POWER6":"OFF","POWER7":"OFF","POWER8":"OFF","Wifi":{"AP":1,"SSId":"NETGEAR","BSSId":"80:3F:5D:6E:37:67","Channel":5,"RSSI":60,"Signal":-70,"LinkCount":1,"Downtime":"0T00:00:05"}}
18:30:02 MQT: stat/tasmota_blind/RESULT = {"POWER2":"OFF"}
18:30:02 MQT: stat/tasmota_blind/POWER2 = OFF
18:30:02 SHT: Shutter1 Real 8829, Start 15000, Stop 9000, Dir -1, Delay 0, Rtc 1.70 [s], Freq 0
18:30:02 MQT: stat/tasmota_blind/SHUTTER1 = 29
18:30:02 MQT: stat/tasmota_blind/RESULT = {"Shutter1":{"Position":29,"Direction":0,"Target":30},"Shutter2":{"Position":45,"Direction":0,"Target":45},"Shutter3":{"Position":53,"Direction":0,"Target":53},"Shutter4":{"Position":51,"Direction":0,"Target":51}}

log to move blind1 to open direction at 76%

18:31:34 SHT: Start in dir 0
18:31:34 MQT: tele/tasmota_blind/STATE = {"Time":"2020-05-13T18:31:34","Uptime":"0T00:02:49","UptimeSec":169,"Heap":26,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":40,"MqttCount":1,"POWER1":"ON","POWER2":"OFF","POWER3":"OFF","POWER4":"OFF","POWER5":"OFF","POWER6":"OFF","POWER7":"OFF","POWER8":"OFF","Wifi":{"AP":1,"SSId":"NETGEAR","BSSId":"80:3F:5D:6E:37:67","Channel":5,"RSSI":56,"Signal":-72,"LinkCount":1,"Downtime":"0T00:00:05"}}
18:31:34 MQT: stat/tasmota_blind/RESULT = {"POWER1":"ON"}
18:31:34 MQT: stat/tasmota_blind/POWER1 = ON
18:31:34 MQT: stat/tasmota_blind/RESULT = {"ShutterPosition1":76}
18:31:34 SHT: Shutter1 Real 10529, Start 8829, Stop 22800, Dir 1, Delay 0, Rtc 0.85 [s], Freq 0
18:31:34 MQT: stat/tasmota_blind/RESULT = {"Shutter1":{"Position":35,"Direction":1,"Target":76},"Shutter2":{"Position":45,"Direction":0,"Target":45},"Shutter3":{"Position":53,"Direction":0,"Target":53},"Shutter4":{"Position":51,"Direction":0,"Target":51}}
18:31:35 SHT: Shutter1 Real 12529, Start 8829, Stop 22800, Dir 1, Delay 0, Rtc 1.85 [s], Freq 0
18:31:35 MQT: stat/tasmota_blind/RESULT = {"Shutter1":{"Position":42,"Direction":1,"Target":76},"Shutter2":{"Position":45,"Direction":0,"Target":45},"Shutter3":{"Position":53,"Direction":0,"Target":53},"Shutter4":{"Position":51,"Direction":0,"Target":51}}
18:31:36 SHT: Shutter1 Real 14529, Start 8829, Stop 22800, Dir 1, Delay 0, Rtc 2.85 [s], Freq 0
18:31:36 MQT: stat/tasmota_blind/RESULT = {"Shutter1":{"Position":48,"Direction":1,"Target":76},"Shutter2":{"Position":45,"Direction":0,"Target":45},"Shutter3":{"Position":53,"Direction":0,"Target":53},"Shutter4":{"Position":51,"Direction":0,"Target":51}}
18:31:37 SHT: Shutter1 Real 16529, Start 8829, Stop 22800, Dir 1, Delay 0, Rtc 3.85 [s], Freq 0
18:31:37 MQT: stat/tasmota_blind/RESULT = {"Shutter1":{"Position":55,"Direction":1,"Target":76},"Shutter2":{"Position":45,"Direction":0,"Target":45},"Shutter3":{"Position":53,"Direction":0,"Target":53},"Shutter4":{"Position":51,"Direction":0,"Target":51}}
18:31:38 SHT: Shutter1 Real 18529, Start 8829, Stop 22800, Dir 1, Delay 0, Rtc 4.85 [s], Freq 0
18:31:38 MQT: stat/tasmota_blind/RESULT = {"Shutter1":{"Position":62,"Direction":1,"Target":76},"Shutter2":{"Position":45,"Direction":0,"Target":45},"Shutter3":{"Position":53,"Direction":0,"Target":53},"Shutter4":{"Position":51,"Direction":0,"Target":51}}
18:31:39 SHT: Shutter1 Real 20529, Start 8829, Stop 22800, Dir 1, Delay 0, Rtc 5.85 [s], Freq 0
18:31:39 MQT: stat/tasmota_blind/RESULT = {"Shutter1":{"Position":68,"Direction":1,"Target":76},"Shutter2":{"Position":45,"Direction":0,"Target":45},"Shutter3":{"Position":53,"Direction":0,"Target":53},"Shutter4":{"Position":51,"Direction":0,"Target":51}}
18:31:40 SHT: Shutter1 Real 22729, Start 8829, Stop 22800, Dir 1, Delay 0, Rtc 6.95 [s], Freq 0
18:31:40 MQT: stat/tasmota_blind/RESULT = {"Shutter1":{"Position":76,"Direction":1,"Target":76},"Shutter2":{"Position":45,"Direction":0,"Target":45},"Shutter3":{"Position":53,"Direction":0,"Target":53},"Shutter4":{"Position":51,"Direction":0,"Target":51}}
18:31:41 MQT: tele/tasmota_blind/STATE = {"Time":"2020-05-13T18:31:41","Uptime":"0T00:02:56","UptimeSec":176,"Heap":26,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":50,"MqttCount":1,"POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","POWER4":"OFF","POWER5":"OFF","POWER6":"OFF","POWER7":"OFF","POWER8":"OFF","Wifi":{"AP":1,"SSId":"NETGEAR","BSSId":"80:3F:5D:6E:37:67","Channel":5,"RSSI":58,"Signal":-71,"LinkCount":1,"Downtime":"0T00:00:05"}}
18:31:41 MQT: stat/tasmota_blind/RESULT = {"POWER1":"OFF"}
18:31:41 MQT: stat/tasmota_blind/POWER1 = OFF
18:31:41 SHT: Shutter1 Real 22829, Start 8829, Stop 22800, Dir 1, Delay 0, Rtc 7.05 [s], Freq 0
18:31:41 MQT: stat/tasmota_blind/SHUTTER1 = 76
18:31:41 MQT: stat/tasmota_blind/RESULT = {"Shutter1":{"Position":76,"Direction":0,"Target":76},"Shutter2":{"Position":45,"Direction":0,"Target":45},"Shutter3":{"Position":53,"Direction":0,"Target":53},"Shutter4":{"Position":51,"Direction":0,"Target":51}}

move blind2 to close direction at 0% (all close)

18:32:53 SHT: Start in dir 0
18:32:53 MQT: tele/tasmota_blind/STATE = {"Time":"2020-05-13T18:32:53","Uptime":"0T00:04:08","UptimeSec":248,"Heap":26,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","POWER4":"ON","POWER5":"OFF","POWER6":"OFF","POWER7":"OFF","POWER8":"OFF","Wifi":{"AP":1,"SSId":"NETGEAR","BSSId":"80:3F:5D:6E:37:67","Channel":5,"RSSI":56,"Signal":-72,"LinkCount":1,"Downtime":"0T00:00:05"}}
18:32:53 MQT: stat/tasmota_blind/RESULT = {"POWER4":"ON"}
18:32:53 MQT: stat/tasmota_blind/POWER4 = ON
18:32:53 MQT: stat/tasmota_blind/RESULT = {"ShutterPosition2":0}
18:32:53 SHT: Shutter2 Real 11630, Start 13500, Stop 0, Dir -1, Delay 0, Rtc 0.50 [s], Freq 0
18:32:53 MQT: stat/tasmota_blind/RESULT = {"Shutter1":{"Position":76,"Direction":0,"Target":76},"Shutter2":{"Position":39,"Direction":-1,"Target":0},"Shutter3":{"Position":53,"Direction":0,"Target":53},"Shutter4":{"Position":51,"Direction":0,"Target":51}}
18:32:54 SHT: Shutter2 Real 8077, Start 13500, Stop 0, Dir -1, Delay 0, Rtc 1.45 [s], Freq 0
18:32:54 MQT: stat/tasmota_blind/RESULT = {"Shutter1":{"Position":76,"Direction":0,"Target":76},"Shutter2":{"Position":27,"Direction":-1,"Target":0},"Shutter3":{"Position":53,"Direction":0,"Target":53},"Shutter4":{"Position":51,"Direction":0,"Target":51}}
18:32:55 SHT: Shutter2 Real 4150, Start 13500, Stop 0, Dir -1, Delay 0, Rtc 2.50 [s], Freq 0
18:32:55 MQT: stat/tasmota_blind/RESULT = {"Shutter1":{"Position":76,"Direction":0,"Target":76},"Shutter2":{"Position":14,"Direction":-1,"Target":0},"Shutter3":{"Position":53,"Direction":0,"Target":53},"Shutter4":{"Position":51,"Direction":0,"Target":51}}
18:32:56 SHT: Shutter2 Real 410, Start 13500, Stop 0, Dir -1, Delay 0, Rtc 3.50 [s], Freq 0
18:32:56 MQT: stat/tasmota_blind/RESULT = {"Shutter1":{"Position":76,"Direction":0,"Target":76},"Shutter2":{"Position":1,"Direction":-1,"Target":0},"Shutter3":{"Position":53,"Direction":0,"Target":53},"Shutter4":{"Position":51,"Direction":0,"Target":51}}
18:32:57 MQT: tele/tasmota_blind/STATE = {"Time":"2020-05-13T18:32:57","Uptime":"0T00:04:12","UptimeSec":252,"Heap":26,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":83,"MqttCount":1,"POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","POWER4":"OFF","POWER5":"OFF","POWER6":"OFF","POWER7":"OFF","POWER8":"OFF","Wifi":{"AP":1,"SSId":"NETGEAR","BSSId":"80:3F:5D:6E:37:67","Channel":5,"RSSI":54,"Signal":-73,"LinkCount":1,"Downtime":"0T00:00:05"}}
18:32:57 MQT: stat/tasmota_blind/RESULT = {"POWER4":"OFF"}
18:32:57 MQT: stat/tasmota_blind/POWER4 = OFF
18:32:57 SHT: Shutter2 Real 0, Start 13500, Stop 0, Dir -1, Delay 0, Rtc 3.65 [s], Freq 0
18:32:57 MQT: stat/tasmota_blind/SHUTTER2 = 0
18:32:57 MQT: stat/tasmota_blind/RESULT = {"Shutter1":{"Position":76,"Direction":0,"Target":76},"Shutter2":{"Position":0,"Direction":0,"Target":0},"Shutter3":{"Position":53,"Direction":0,"Target":53},"Shutter4":{"Position":51,"Direction":0,"Target":51}}

log related to move blind2 at open direction 100% (all open)

18:34:41 SHT: Start in dir 0
18:34:41 MQT: tele/tasmota_blind/STATE = {"Time":"2020-05-13T18:34:41","Uptime":"0T00:05:56","UptimeSec":356,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":22,"MqttCount":1,"POWER1":"OFF","POWER2":"OFF","POWER3":"ON","POWER4":"OFF","POWER5":"OFF","POWER6":"OFF","POWER7":"OFF","POWER8":"OFF","Wifi":{"AP":1,"SSId":"NETGEAR","BSSId":"80:3F:5D:6E:37:67","Channel":5,"RSSI":56,"Signal":-72,"LinkCount":1,"Downtime":"0T00:00:05"}}
18:34:41 MQT: stat/tasmota_blind/RESULT = {"POWER3":"ON"}
18:34:41 MQT: stat/tasmota_blind/POWER3 = ON
18:34:41 MQT: stat/tasmota_blind/RESULT = {"ShutterPosition2":100}
18:34:41 SHT: Shutter2 Real 1000, Start 0, Stop 30000, Dir 1, Delay 0, Rtc 0.50 [s], Freq 0
18:34:41 MQT: stat/tasmota_blind/RESULT = {"Shutter1":{"Position":76,"Direction":0,"Target":76},"Shutter2":{"Position":3,"Direction":1,"Target":100},"Shutter3":{"Position":53,"Direction":0,"Target":53},"Shutter4":{"Position":51,"Direction":0,"Target":51}}
18:34:42 SHT: Shutter2 Real 2900, Start 0, Stop 30000, Dir 1, Delay 0, Rtc 1.45 [s], Freq 0
18:34:42 MQT: stat/tasmota_blind/RESULT = {"Shutter1":{"Position":76,"Direction":0,"Target":76},"Shutter2":{"Position":10,"Direction":1,"Target":100},"Shutter3":{"Position":53,"Direction":0,"Target":53},"Shutter4":{"Position":51,"Direction":0,"Target":51}}
18:34:43 SHT: Shutter2 Real 4900, Start 0, Stop 30000, Dir 1, Delay 0, Rtc 2.45 [s], Freq 0
18:34:43 MQT: stat/tasmota_blind/RESULT = {"Shutter1":{"Position":76,"Direction":0,"Target":76},"Shutter2":{"Position":16,"Direction":1,"Target":100},"Shutter3":{"Position":53,"Direction":0,"Target":53},"Shutter4":{"Position":51,"Direction":0,"Target":51}}
18:34:44 SHT: Shutter2 Real 6900, Start 0, Stop 30000, Dir 1, Delay 0, Rtc 3.45 [s], Freq 0
18:34:44 MQT: stat/tasmota_blind/RESULT = {"Shutter1":{"Position":76,"Direction":0,"Target":76},"Shutter2":{"Position":23,"Direction":1,"Target":100},"Shutter3":{"Position":53,"Direction":0,"Target":53},"Shutter4":{"Position":51,"Direction":0,"Target":51}}
18:34:45 SHT: Shutter2 Real 9000, Start 0, Stop 30000, Dir 1, Delay 0, Rtc 4.50 [s], Freq 0
18:34:45 MQT: stat/tasmota_blind/RESULT = {"Shutter1":{"Position":76,"Direction":0,"Target":76},"Shutter2":{"Position":30,"Direction":1,"Target":100},"Shutter3":{"Position":53,"Direction":0,"Target":53},"Shutter4":{"Position":51,"Direction":0,"Target":51}}
18:34:46 SHT: Shutter2 Real 11000, Start 0, Stop 30000, Dir 1, Delay 0, Rtc 5.50 [s], Freq 0
18:34:46 MQT: stat/tasmota_blind/RESULT = {"Shutter1":{"Position":76,"Direction":0,"Target":76},"Shutter2":{"Position":37,"Direction":1,"Target":100},"Shutter3":{"Position":53,"Direction":0,"Target":53},"Shutter4":{"Position":51,"Direction":0,"Target":51}}
18:34:48 SHT: Shutter2 Real 13300, Start 0, Stop 30000, Dir 1, Delay 0, Rtc 6.65 [s], Freq 0
18:34:48 MQT: stat/tasmota_blind/RESULT = {"Shutter1":{"Position":76,"Direction":0,"Target":76},"Shutter2":{"Position":44,"Direction":1,"Target":100},"Shutter3":{"Position":53,"Direction":0,"Target":53},"Shutter4":{"Position":51,"Direction":0,"Target":51}}
18:34:48 SHT: Shutter2 Real 14900, Start 0, Stop 30000, Dir 1, Delay 0, Rtc 7.45 [s], Freq 0
18:34:48 MQT: stat/tasmota_blind/RESULT = {"Shutter1":{"Position":76,"Direction":0,"Target":76},"Shutter2":{"Position":50,"Direction":1,"Target":100},"Shutter3":{"Position":53,"Direction":0,"Target":53},"Shutter4":{"Position":51,"Direction":0,"Target":51}}
18:34:49 SHT: Shutter2 Real 16900, Start 0, Stop 30000, Dir 1, Delay 0, Rtc 8.45 [s], Freq 0
18:34:49 MQT: stat/tasmota_blind/RESULT = {"Shutter1":{"Position":76,"Direction":0,"Target":76},"Shutter2":{"Position":56,"Direction":1,"Target":100},"Shutter3":{"Position":53,"Direction":0,"Target":53},"Shutter4":{"Position":51,"Direction":0,"Target":51}}
18:34:50 SHT: Shutter2 Real 19000, Start 0, Stop 30000, Dir 1, Delay 0, Rtc 9.50 [s], Freq 0
18:34:50 MQT: stat/tasmota_blind/RESULT = {"Shutter1":{"Position":76,"Direction":0,"Target":76},"Shutter2":{"Position":63,"Direction":1,"Target":100},"Shutter3":{"Position":53,"Direction":0,"Target":53},"Shutter4":{"Position":51,"Direction":0,"Target":51}}
18:34:51 SHT: Shutter2 Real 21000, Start 0, Stop 30000, Dir 1, Delay 0, Rtc 10.50 [s], Freq 0
18:34:51 MQT: stat/tasmota_blind/RESULT = {"Shutter1":{"Position":76,"Direction":0,"Target":76},"Shutter2":{"Position":70,"Direction":1,"Target":100},"Shutter3":{"Position":53,"Direction":0,"Target":53},"Shutter4":{"Position":51,"Direction":0,"Target":51}}
18:34:52 SHT: Shutter2 Real 23000, Start 0, Stop 30000, Dir 1, Delay 0, Rtc 11.50 [s], Freq 0
18:34:52 MQT: stat/tasmota_blind/RESULT = {"Shutter1":{"Position":76,"Direction":0,"Target":76},"Shutter2":{"Position":77,"Direction":1,"Target":100},"Shutter3":{"Position":53,"Direction":0,"Target":53},"Shutter4":{"Position":51,"Direction":0,"Target":51}}
18:34:53 SHT: Shutter2 Real 25000, Start 0, Stop 30000, Dir 1, Delay 0, Rtc 12.50 [s], Freq 0
18:34:53 MQT: stat/tasmota_blind/RESULT = {"Shutter1":{"Position":76,"Direction":0,"Target":76},"Shutter2":{"Position":83,"Direction":1,"Target":100},"Shutter3":{"Position":53,"Direction":0,"Target":53},"Shutter4":{"Position":51,"Direction":0,"Target":51}}
18:34:55 SHT: Shutter2 Real 27400, Start 0, Stop 30000, Dir 1, Delay 0, Rtc 13.70 [s], Freq 0
18:34:55 MQT: stat/tasmota_blind/RESULT = {"Shutter1":{"Position":76,"Direction":0,"Target":76},"Shutter2":{"Position":91,"Direction":1,"Target":100},"Shutter3":{"Position":53,"Direction":0,"Target":53},"Shutter4":{"Position":51,"Direction":0,"Target":51}}
18:34:55 SHT: Shutter2 Real 28900, Start 0, Stop 30000, Dir 1, Delay 0, Rtc 14.45 [s], Freq 0
18:34:55 MQT: stat/tasmota_blind/RESULT = {"Shutter1":{"Position":76,"Direction":0,"Target":76},"Shutter2":{"Position":96,"Direction":1,"Target":100},"Shutter3":{"Position":53,"Direction":0,"Target":53},"Shutter4":{"Position":51,"Direction":0,"Target":51}}
18:34:56 MQT: tele/tasmota_blind/STATE = {"Time":"2020-05-13T18:34:56","Uptime":"0T00:06:11","UptimeSec":371,"Heap":26,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":25,"MqttCount":1,"POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","POWER4":"OFF","POWER5":"OFF","POWER6":"OFF","POWER7":"OFF","POWER8":"OFF","Wifi":{"AP":1,"SSId":"NETGEAR","BSSId":"80:3F:5D:6E:37:67","Channel":5,"RSSI":54,"Signal":-73,"LinkCount":1,"Downtime":"0T00:00:05"}}
18:34:56 MQT: stat/tasmota_blind/RESULT = {"POWER3":"OFF"}
18:34:56 MQT: stat/tasmota_blind/POWER3 = OFF
18:34:56 SHT: Shutter2 Real 30000, Start 0, Stop 30000, Dir 1, Delay 0, Rtc 15.05 [s], Freq 0
18:34:56 MQT: stat/tasmota_blind/SHUTTER2 = 100
18:34:56 MQT: stat/tasmota_blind/RESULT = {"Shutter1":{"Position":76,"Direction":0,"Target":76},"Shutter2":{"Position":100,"Direction":0,"Target":100},"Shutter3":{"Position":53,"Direction":0,"Target":53},"Shutter4":{"Position":51,"Direction":0,"Target":51}}

log using wall switch to perform close direction orientation (1.2 second trigger close motor)

18:37:45 RUL: SWITCH1#STATE=2 performs "backlog power1 on;delay 5;power1 off"
18:37:46 SHT: Wait for Motorstop..
18:37:46 MQT: tele/tasmota_blind/STATE = {"Time":"2020-05-13T18:37:46","Uptime":"0T00:09:01","UptimeSec":541,"Heap":26,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":27,"MqttCount":1,"POWER1":"ON","POWER2":"OFF","POWER3":"OFF","POWER4":"OFF","POWER5":"OFF","POWER6":"OFF","POWER7":"OFF","POWER8":"OFF","Wifi":{"AP":1,"SSId":"NETGEAR","BSSId":"80:3F:5D:6E:37:67","Channel":5,"RSSI":46,"Signal":-77,"LinkCount":1,"Downtime":"0T00:00:05"}}
18:37:46 MQT: stat/tasmota_blind/RESULT = {"POWER1":"ON"}
18:37:46 MQT: stat/tasmota_blind/POWER1 = ON
18:37:46 MQT: stat/tasmota_blind/RESULT = {"Delay":5}
18:37:46 SHT: Shutter1 Real 14856, Start 14356, Stop 30000, Dir 1, Delay 0, Rtc 0.25 [s], Freq 0
18:37:46 MQT: stat/tasmota_blind/RESULT = {"Shutter1":{"Position":50,"Direction":1,"Target":100},"Shutter2":{"Position":51,"Direction":0,"Target":51},"Shutter3":{"Position":53,"Direction":0,"Target":53},"Shutter4":{"Position":51,"Direction":0,"Target":51}}
18:37:47 MQT: tele/tasmota_blind/STATE = {"Time":"2020-05-13T18:37:47","Uptime":"0T00:09:02","UptimeSec":542,"Heap":26,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":77,"MqttCount":1,"POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","POWER4":"OFF","POWER5":"OFF","POWER6":"OFF","POWER7":"OFF","POWER8":"OFF","Wifi":{"AP":1,"SSId":"NETGEAR","BSSId":"80:3F:5D:6E:37:67","Channel":5,"RSSI":60,"Signal":-70,"LinkCount":1,"Downtime":"0T00:00:05"}}
18:37:47 MQT: stat/tasmota_blind/RESULT = {"POWER1":"OFF"}
18:37:47 MQT: stat/tasmota_blind/POWER1 = OFF
18:37:47 SHT: Shutter1 Real 15756, Start 14356, Stop 15056, Dir 1, Delay 0, Rtc 0.70 [s], Freq 0
18:37:47 MQT: stat/tasmota_blind/SHUTTER1 = 53
18:37:47 MQT: stat/tasmota_blind/RESULT = {"Shutter1":{"Position":53,"Direction":0,"Target":50},"Shutter2":{"Position":51,"Direction":0,"Target":51},"Shutter3":{"Position":53,"Direction":0,"Target":53},"Shutter4":{"Position":51,"Direction":0,"Target":51}}

log using wall switch to perform open direction orientation (1.2 second trigger open motor)

18:39:25 MQT: stat/tasmota_blind/RESULT = {"Command":"Unknown"}
18:39:28 RUL: SWITCH2#STATE=2 performs "backlog power2 on;delay 5;power2 off"
18:39:28 SHT: Wait for Motorstop..
18:39:29 MQT: tele/tasmota_blind/STATE = {"Time":"2020-05-13T18:39:29","Uptime":"0T00:10:44","UptimeSec":644,"Heap":26,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":35,"MqttCount":1,"POWER1":"OFF","POWER2":"ON","POWER3":"OFF","POWER4":"OFF","POWER5":"OFF","POWER6":"OFF","POWER7":"OFF","POWER8":"OFF","Wifi":{"AP":1,"SSId":"NETGEAR","BSSId":"80:3F:5D:6E:37:67","Channel":5,"RSSI":44,"Signal":-78,"LinkCount":1,"Downtime":"0T00:00:05"}}
18:39:29 MQT: stat/tasmota_blind/RESULT = {"POWER2":"ON"}
18:39:29 MQT: stat/tasmota_blind/POWER2 = ON
18:39:29 SHT: Shutter1 Real 15569, Start 15756, Stop 0, Dir -1, Delay 0, Rtc 0.05 [s], Freq 0
18:39:29 MQT: stat/tasmota_blind/RESULT = {"Shutter1":{"Position":52,"Direction":-1,"Target":0},"Shutter2":{"Position":51,"Direction":0,"Target":51},"Shutter3":{"Position":53,"Direction":0,"Target":53},"Shutter4":{"Position":51,"Direction":0,"Target":51}}
18:39:29 MQT: stat/tasmota_blind/RESULT = {"Delay":5}
18:39:29 SHT: Shutter1 Real 14073, Start 15756, Stop 0, Dir -1, Delay 0, Rtc 0.45 [s], Freq 0
18:39:29 MQT: stat/tasmota_blind/RESULT = {"Shutter1":{"Position":47,"Direction":-1,"Target":0},"Shutter2":{"Position":51,"Direction":0,"Target":51},"Shutter3":{"Position":53,"Direction":0,"Target":53},"Shutter4":{"Position":51,"Direction":0,"Target":51}}
18:39:30 MQT: tele/tasmota_blind/STATE = {"Time":"2020-05-13T18:39:30","Uptime":"0T00:10:45","UptimeSec":645,"Heap":24,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":69,"MqttCount":1,"POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","POWER4":"OFF","POWER5":"OFF","POWER6":"OFF","POWER7":"OFF","POWER8":"OFF","Wifi":{"AP":1,"SSId":"NETGEAR","BSSId":"80:3F:5D:6E:37:67","Channel":5,"RSSI":54,"Signal":-73,"LinkCount":1,"Downtime":"0T00:00:05"}}
18:39:30 MQT: stat/tasmota_blind/RESULT = {"POWER2":"OFF"}
18:39:30 MQT: stat/tasmota_blind/POWER2 = OFF
18:39:30 SHT: Shutter1 Real 13325, Start 15756, Stop 13699, Dir -1, Delay 0, Rtc 0.65 [s], Freq 0
18:39:30 MQT: stat/tasmota_blind/SHUTTER1 = 44
18:39:30 MQT: 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}}
@joba-1
Copy link
Owner

joba-1 commented May 13, 2020

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?

@megamarco833
Copy link
Author

megamarco833 commented May 13, 2020

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? :-)

@megamarco833
Copy link
Author

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!

@joba-1
Copy link
Owner

joba-1 commented May 23, 2020

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.

@megamarco833
Copy link
Author

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!

@megamarco833
Copy link
Author

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....

@DAVIZINH0
Copy link

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?

@megamarco833
Copy link
Author

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 :)

@DAVIZINH0
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants