#Message malformed: expected a dictionary for dictionary Error when Saving Automation from Blueprint

1 messages · Page 1 of 1 (latest)

fleet swallow
#

I am creating an automation Blueprint to set LED light values on specific Zwave and Zigbee switches. When ever I try to save the automation based on the blueprint I get the following error:

Message malformed: expected a dictionary for dictionary value @ data['actions'][0]['choose'][0]['sequence'][0]['repeat']['sequence'][0]['choose'][0]['sequence'][0]['target']

I've tried several things but I have no luck correcting this. I'm not sure what to do to fix it.

Blueprint:
https://gist.github.com/JDIacobbo/016e4206ffa7724889750417f2bca657

Gist

GitHub Gist: instantly share code, notes, and snippets.

neat geyser
#

You're passing a list of devices to a target selector, doesn't seem right

#

inovelli_dimmer is a device selector, so it needs to be:

target:
  device: !input inovelli_dimmer

Not ```
target: !input inovelli_dimmer

fleet swallow
#

That doesn't seem to work:

#

I tried:

                      target:
                        device_id: !input inovelli_dimmer

But got error:

Message malformed: template value should be a string @ data['actions'][0]['choose'][0]['sequence'][0]['repeat']['sequence'][0]['choose'][2]['sequence'][0]['target']['device_id'][0]
neat geyser
#

This is an error in a different place?

#

We had an error in choose[0], now it says choose[2]

fleet swallow
#

Can I assume that ['choose'][2] is referring to the third condition which would be the inovelli_fan_light_combo condition?

neat geyser
#

Correct

#

If you updated that, show what you updated it with.

fleet swallow
neat geyser
#

afk a bit.

fleet swallow
#

I am also going to be heading out in about 30 for a while. I'm hoping to be able to test some more later tonight or tomorrow night.

neat geyser
fleet swallow
#

It won't save so I don't have any yaml. I was adding one device to the blue 2-in-1 selector.

neat geyser
#

You can still "View in YAML"?

fleet swallow
#

Ok. I'll have to try that a bit later when I'm at my computer.

#

I'll report back.

neat geyser
#

Sure. Edit in Yaml is in the top right dotsvertical

fleet swallow
#
description: ""
alias: 1 - Inovelli LED Color Change Test
use_blueprint:
  path: JDIacobbo/Inovelli_Set_LED_Color.yaml
  input:
    inovelli_blue_2_in_1:
      - f7a5bf5bad5cb91777a08b0d6c7ae44c
    inovelli_red_2_in_1: []
    inovelli_dimmer: []
    inovelli_switch: []
    inovelli_fan_light_combo: []
    color: 195
#

Odd, I can save it now