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

can ts1201.py send the same command through multiple ieee? #3350

Open
foice opened this issue Sep 7, 2024 · 0 comments
Open

can ts1201.py send the same command through multiple ieee? #3350

foice opened this issue Sep 7, 2024 · 0 comments

Comments

@foice
Copy link

foice commented Sep 7, 2024

I have many of the same IR blasters that work with ts1201.py. each has its own ieee number. I want to send the same command through many ieee devices without creating a new autoamtion/script for each of the devices is it possible to just pass a list to ieee?

I tried to play with the yaml but I did not succeed.

Here is my working yaml

- candele_6h:
    alias: Candele6H
    sequence:
    - service: zha.issue_zigbee_cluster_command
      data:
        cluster_type: in
        endpoint_id: 1
        cluster_id: 57348
        ieee: 0c:ae:5f:zz:zz:zz:22:f1
        command_type: server
        command: 2
        params:
          code: BZYjkRE+AuADAQOhBj4C4AcBQBPAA0AB4AcL4AMBQBvgBwFAE8ADQAHAC8AHCdmfliPOCD4C///gAgcCCD4C
    description: ''
    icon: mdi:candle

and my attempt to make ieee a list

        ieee: 
          - 0c:ae:5f:ff:fe:9z:z2:z1
             zz:we:44:ff:zz:dd:e3

which failed because the interpreter has simpy removed the new line. I am not a master of YAML so maybe I am just missing that, but I suppose the python must be expecting a string not a list of strings ...

Any idea to use the same command on multiple ieee?

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

1 participant