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

new controller via script with payload #1351

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TheArdent
Copy link

I'm using ZosungIRBlaster and ZHA(without MQTT) and it`s only one way to controlling my devices.
Example of codes device config:

  "supportedController":"Script",
  "commandsEncoding":"Base64",

Example of config contoller_data:

climate:
  - platform: smartir
    name: Office AC
    unique_id: office_ac
    device_code: 1000
    controller_data: script.controller_ir_blaster
    temperature_sensor: sensor.temperature
    humidity_sensor: sensor.humidity
    power_sensor: binary_sensor.ac_power

Example of script:

action: zha.issue_zigbee_cluster_command
data:
  cluster_type: in
  ieee: ff:ff:ff:ff:ff:ff:ff:ff
  endpoint_id: 1
  cluster_id: 57348
  command: 2
  command_type: server
  params: 
    code: "{{payload}}"

I think it may be useful for someone who use the same device or want to easy to create custom integration.

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

Successfully merging this pull request may close these issues.

1 participant