Skip to content

Unable to set cover #93

Answered by didi31
didi31 asked this question in Q&A
Nov 13, 2023 · 7 comments · 12 replies
Discussion options

You must be logged in to vote

I removed:

  • position_open
  • position_closed
  • tilt_status_topic
  • tilt_status_template
  • tilt_command_topic
  • tilt_command_template

changed:

  • position_template to "{{ 100 - value_json.POS }}"
  • set_position_template to {"CMD":"1","POS":"{{ 100 - position }}","ANG":"127","REPO":"0","LOCK":"0","CHN":"0","send":"clear"}

and it work fine.

            - component: "cover"
              name: "cover2"
              config:
                 command_topic: "req"
                 payload_open: >-
                    {"CMD":"1","POS":"0","ANG":"127","REPO":"0","LOCK":"0","CHN":"0","send":"clear"}
                 payload_close: >-
                    {"CMD":"1","POS":"100","ANG":"127","REPO":"0","LOCK":"0","…

Replies: 7 comments 12 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@didi31
Comment options

@mak-gitdev
Comment options

Comment options

You must be logged in to vote
6 replies
@mak-gitdev
Comment options

@didi31
Comment options

@didi31
Comment options

@mak-gitdev
Comment options

@didi31
Comment options

Comment options

You must be logged in to vote
4 replies
@didi31
Comment options

Answer selected by didi31
@mak-gitdev
Comment options

@didi31
Comment options

@mak-gitdev
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants