#Message malformed: extra keys not allowed @ data['script']

1 messages · Page 1 of 1 (latest)

chrome swan
#

Code copy/pasta from the HA Broadlink integration guide https://www.home-assistant.io/integrations/broadlink/#learned-codes-storage-location, changed entity, script name and added commands.

# Example configuration.yaml entry for learning remote codes with Broadlink
script:
  learn_dyson_fan_pwron:
    sequence:
      - action: remote.learn_command
        target:
          entity_id: remote.broadlink_rm4_pro
        data:
          device: fan
          command: 
            - turn on
            - turn off
            - fan speed up
            - fan speed down
            - oscilate on or off
          command_type: ir

Cannot save script with error: Message malformed: extra keys not allowed @ data['script']

I'm new, please be gentileish

Home Assistant

Instructions on setting up Broadlink within Home Assistant.

dim mantle
#

That block of code is intended to be copied directly into configuration.yaml. But you shouldn't do that because it will cause other issues

#

can you please format the code so that it's readable?

queen mauveBOT
#

To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks.
```yaml
example: here
```
Don't forget you can edit your post rather than repeatedly posting the same thing.

dim mantle
#

the bottom line is that you should use the UI to create that script rather than trying to use YAML directly until you know what you're doing

chrome swan
#

I'm not seeing any option to learn command under Broadlink in the UI, only power on/off and toggle. If UI = scripts

dim mantle