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

Shutter Code Stat Message and Rules #6535

Closed
8 of 15 tasks
flashtel opened this issue Oct 1, 2019 · 9 comments
Closed
8 of 15 tasks

Shutter Code Stat Message and Rules #6535

flashtel opened this issue Oct 1, 2019 · 9 comments
Assignees
Labels
bug Type - Confirmated Bug fixed Result - The work on the issue has ended

Comments

@flashtel
Copy link

flashtel commented Oct 1, 2019

GUIDE

This BUG issue template is meant to REPORT Tasmota software BUGS ONLY>

Please DO NOT OPEN AN ISSUE:

  • If your Tasmota version is not the latest from the development branch, please update your device before submitting your issue. Your problem might already be solved. The latest precompiled binaries of Tasmota can be downloaded from http://thehackbox.org/tasmota/
  • If your issue is a flashing issue, please address it to the Tasmota Support Chat
  • If your issue is compilation problem, please address it to the Tasmota Support Chat
  • If your issue has been addressed before (i.e., duplicated issue), please ask in the original issue
  • If your issue is a Wi-Fi problem or MQTT problem, please try the steps provided in the FAQ and troubleshooting wiki articles

Please take a few minutes to complete the requested information below. Our ability to provide assistance is greatly hampered without it. The details requested potentially affect which options to pursue. The small amount of time you spend completing the template will also help the volunteers providing the assistance to you to reduce the time required to help you.

BUG DESCRIPTION

A clear and concise description of what the bug is.

REQUESTED INFORMATION

Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!

FAILURE TO COMPLETE THE REQUESTED INFORMATION WILL RESULT IN YOUR ISSUE BEING CLOSED

  • Read the Contributing Guide and Policy and the Code of Conduct
  • Searched the problem in issues
  • Searched the problem in the wiki
  • Searched the problem in the forum
  • Searched the problem in the chat
  • Device used (e.g., Sonoff Basic): Dual_R2
  • Tasmota binary firmware version number used: _____
    • Pre-compiled
    • Self-compiled
      • IDE / Compiler used: _____
  • Flashing tools used: _____
  • Provide the output of command: Backlog Template; Module; GPIO:
    Configuration output here:
    
    
    
  • If using rules, provide the output of this command: Backlog Rule1; Rule2; Rule3:
    Rules output here:
    
    
    
  • Provide the output of this command: Status 0:
    STATUS 0 output here:
    
    
    
  • Provide the output of the Console log output when you experience your issue; if applicable:
    (Please use weblog 4 for more debug information)
    Console output here:
    
    
    

TO REPRODUCE

Steps to reproduce the behavior:

The issue with the stat message from the merged code is incorrect.

21:53:48 MQT: stat/myplace/house/master_bed1/RESULT = {"ShutterClose2":0}
vs
21:53:24 MQT: stat/myplace/house/master_bed2/RESULT = {"shutterclose1":0}

The issue with Rule on the merged code is it doesn't trigger.

EXPECTED BEHAVIOUR

A clear and concise description of what you expected to happen.

Stat message is correct

Rules Trigger

SCREENSHOTS

If applicable, add screenshots to help explain your problem.

ADDITIONAL CONTEXT

Add any other context about the problem here.

Sonoff-Tasmota 6.6.0.14 by Theo Arends

21:53:48 CMD: shutterclose1
21:53:48 SHT: Start shutter in direction -1
21:53:48 MQT: stat/myplace/house/master_bed1/RESULT = {"POWER2":"ON"}
21:53:48 MQT: stat/myplace/house/master_bed1/POWER2 = ON
21:53:48 MQT: stat/myplace/house/master_bed1/RESULT = {"ShutterClose2":0}

Sonoff-Tasmota 6.6.0.14 stb-1.11 by Theo Arends

21:53:24 CMD: shutterclose
21:53:24 Start shutter in direction -1
21:53:24 MQT: stat/myplace/house/master_bed2/RESULT = {"POWER2":"ON"}
21:53:24 MQT: stat/myplace/house/master_bed2/POWER2 = ON
21:53:24 MQT: stat/myplace/house/master_bed2/RESULT = {"shutterclose1":0}

(Please, remember to close the issue when the problem has been addressed)

@flashtel
Copy link
Author

flashtel commented Oct 1, 2019

The rules issue

Sonoff-Tasmota 6.6.0.14 by Theo Arends

21:59:01 CMD: rule1
21:59:01 MQT: stat/myplace/house/master_bed1/RESULT = {"Rule1":"ON","Once":"OFF","StopOnError":"OFF","Free":435,"Rules":"on SHUTTER-1#position==100 DO Publish /status/sonoff/level {"%value%"} ENDON"}
21:59:09 CMD: shutteropen1
21:59:09 SHT: Start shutter in direction 1
21:59:09 MQT: stat/myplace/house/master_bed1/RESULT = {"POWER1":"ON"}
21:59:09 MQT: stat/myplace/house/master_bed1/POWER1 = ON
21:59:09 MQT: stat/myplace/house/master_bed1/RESULT = {"ShutterOpen1":100}
21:59:10 SHT: Shutter 0: Real Pos: 1500, Target 20000, source: Shutter, start-pos: 0 %, direction: 1, rtcshutter: 0.8 [s]
21:59:11 SHT: Shutter 0: Real Pos: 3500, Target 20000, source: Shutter, start-pos: 0 %, direction: 1, rtcshutter: 1.8 [s]
21:59:12 SHT: Shutter 0: Real Pos: 5500, Target 20000, source: Shutter, start-pos: 0 %, direction: 1, rtcshutter: 2.7 [s]
21:59:13 SHT: Shutter 0: Real Pos: 7500, Target 20000, source: Shutter, start-pos: 0 %, direction: 1, rtcshutter: 3.7 [s]
21:59:14 SHT: Shutter 0: Real Pos: 9500, Target 20000, source: Shutter, start-pos: 0 %, direction: 1, rtcshutter: 4.7 [s]
21:59:15 SHT: Shutter 0: Real Pos: 11500, Target 20000, source: Shutter, start-pos: 0 %, direction: 1, rtcshutter: 5.7 [s]
21:59:16 SHT: Shutter 0: Real Pos: 13500, Target 20000, source: Shutter, start-pos: 0 %, direction: 1, rtcshutter: 6.7 [s]
21:59:17 SHT: Shutter 0: Real Pos: 15500, Target 20000, source: Shutter, start-pos: 0 %, direction: 1, rtcshutter: 7.7 [s]
21:59:18 SHT: Shutter 0: Real Pos: 17500, Target 20000, source: Shutter, start-pos: 0 %, direction: 1, rtcshutter: 8.8 [s]
21:59:19 SHT: Shutter 0: Real Pos: 19500, Target 20000, source: Shutter, start-pos: 0 %, direction: 1, rtcshutter: 9.8 [s]
21:59:19 MQT: stat/myplace/house/master_bed1/SHUTTER1 = 100
21:59:19 MQT: stat/myplace/house/master_bed1/RESULT = {"POWER1":"OFF"}
21:59:19 MQT: stat/myplace/house/master_bed1/POWER1 = OFF
21:59:19 MQT: tele/myplace/house/master_bed1/RESULT = {"Shutter1":{"Position":100,"direction":0}}

Sonoff-Tasmota 6.6.0.14 stb-1.11 by Theo Arends

21:58:44 CMD: rule1
21:58:44 MQT: stat/myplace/house/master_bed2/RESULT = {"Rule1":"ON","Once":"OFF","StopOnError":"OFF","Free":435,"Rules":"on SHUTTER-1#position==100 DO Publish /status/sonoff/level {"%value%"} ENDON"}
21:58:52 CMD: shutteropen1
21:58:52 Start shutter in direction 1
21:58:52 MQT: stat/myplace/house/master_bed2/RESULT = {"POWER1":"ON"}
21:58:52 MQT: stat/myplace/house/master_bed2/POWER1 = ON
21:58:52 MQT: stat/myplace/house/master_bed2/RESULT = {"shutteropen1":100}
21:58:53 Shutter 0: Real Pos: 1700, Target 20000, source: Shutter, start-pos: 0 %, direction: 1, rtcshutter: 0.9 [s]
21:58:54 Shutter 0: Real Pos: 3700, Target 20000, source: Shutter, start-pos: 0 %, direction: 1, rtcshutter: 1.9 [s]
21:58:55 Shutter 0: Real Pos: 5700, Target 20000, source: Shutter, start-pos: 0 %, direction: 1, rtcshutter: 2.9 [s]
21:58:56 Shutter 0: Real Pos: 7700, Target 20000, source: Shutter, start-pos: 0 %, direction: 1, rtcshutter: 3.9 [s]
21:58:57 Shutter 0: Real Pos: 9700, Target 20000, source: Shutter, start-pos: 0 %, direction: 1, rtcshutter: 4.8 [s]
21:58:58 Shutter 0: Real Pos: 11700, Target 20000, source: Shutter, start-pos: 0 %, direction: 1, rtcshutter: 5.8 [s]
21:58:59 Shutter 0: Real Pos: 13700, Target 20000, source: Shutter, start-pos: 0 %, direction: 1, rtcshutter: 6.8 [s]
21:59:00 Shutter 0: Real Pos: 15700, Target 20000, source: Shutter, start-pos: 0 %, direction: 1, rtcshutter: 7.8 [s]
21:59:01 Shutter 0: Real Pos: 17700, Target 20000, source: Shutter, start-pos: 0 %, direction: 1, rtcshutter: 8.9 [s]
21:59:02 Shutter 0: Real Pos: 19700, Target 20000, source: Shutter, start-pos: 0 %, direction: 1, rtcshutter: 9.9 [s]
21:59:02 MQT: stat/myplace/house/master_bed2/SHUTTER1 = 100
21:59:02 MQT: stat/myplace/house/master_bed2/RESULT = {"POWER1":"OFF"}
21:59:02 MQT: stat/myplace/house/master_bed2/POWER1 = OFF
21:59:02 MQT: tele/myplace/house/master_bed2/RESULT = {"SHUTTER-1":{"position":100, "direction":0}}
21:59:02 RUL: SHUTTER-1#POSITION==100 performs "Publish /status/sonoff/level {"100"}"
21:59:02 MQT: /status/sonoff/level = {"100"}

@ascillato
Copy link
Contributor

Please, complete the template. What is your issue?

@flashtel
Copy link
Author

flashtel commented Oct 1, 2019

The issue with the stat message from the merged code is incorrect.

21:53:48 MQT: stat/myplace/house/master_bed1/RESULT = {"ShutterClose2":0}
vs
21:53:24 MQT: stat/myplace/house/master_bed2/RESULT = {"shutterclose1":0}

The issue with Rule on the merged code is it doesn't trigger.

@meingraham
Copy link
Collaborator

6.6.0.14 stb-1.11

is this in the Tasmota branch being enhanced with the shutter feature or in Stefan's fork?

@arendst
Copy link
Owner

arendst commented Oct 1, 2019

Yes Mike. I'll work on it once I find the time...

arendst added a commit that referenced this issue Oct 1, 2019
Fix ShutterClose Index display (#6535)
@arendst
Copy link
Owner

arendst commented Oct 1, 2019

Regarding rules, the message has changed so you will need to update your rule to trigger on the correct message syntax.

Original message:

21:59:02 MQT: tele/myplace/house/master_bed2/RESULT = {"SHUTTER-1":{"position":100, "direction":0}}

New message:

21:59:19 MQT: tele/myplace/house/master_bed1/RESULT = {"Shutter1":{"Position":100,"direction":0}}

So just update your rule to handle the new message syntax.

@arendst arendst added the fixed Result - The work on the issue has ended label Oct 1, 2019
@flashtel
Copy link
Author

flashtel commented Oct 1, 2019

I can see it now and the rules are confirmed as working, thanks.

23:28:45 MQT: tele/myplace/house/master_bed1/RESULT = {"Shutter1":{"Position":100,"direction":0}}
23:28:45 RUL: SHUTTER1#POSITION==100 performs "Publish /status/sonoff/level {"100"}"
23:28:45 MQT: /status/sonoff/level = {"100"}

@ascillato2
Copy link
Collaborator

Great!

Closing this issue as it has been fixed.

@flashtel
Copy link
Author

flashtel commented Oct 1, 2019

The stat message is fixed? I'll recompile and test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Type - Confirmated Bug fixed Result - The work on the issue has ended
Projects
None yet
Development

No branches or pull requests

5 participants