Skip to content

How to add new sub/gateway devices? #2765

Answered by Privatecoder
Privatecoder asked this question in Q&A
Discussion options

You must be logged in to vote

@make-all thank you! Here is what I came up with:

name: Roller blind
products:
  - id: slrxhmozdm3qq9cl
    manufacturer: GW Motor
    model: Roller blind
    name: Sub-device roller blind (gateway)
entities:
  - entity: cover
    class: blind
    dps:
      - id: 1
        name: control
        type: string
        mapping:
          - conditions:
              - dps_val: ["0", "1", "2"]
                mapping:
                  - dps_val: "0"
                    value: open
                  - dps_val: "1"
                    value: close
                  - dps_val: "2"
                    value: stop
              # set options when there are non during startup
              - dps_va…

Replies: 1 comment 2 replies

Comment options

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

Answer selected by Privatecoder
@Privatecoder
Comment options

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