Zooz Zen32 Automation to change LED indicator color

I am trying to setup an automation so that when a light is on, the scene indicator LED on the switch is white. When the light is off, the scene indicator LED is red. Whenever I set this up I get an error when I try and set the color to white. The other colors don’t give this error.

Message malformed: not a valid value for dictionary value @ data['type']

What does the YAML code look like if you switch to YAML mode (after saving the automation)? You’re probably running into a bug, in either the frontend or the integration, where 0 values (White is 0) are not handled correctly for device actions. You can switch the action to “Call service” and use zwave_js.set_config_parameter instead of of the device action.

I suspect you are seeing issue https://github.com/home-assistant/frontend/issues/13729.

alias: Bar Scene 5 Indicator Light
description: ""
use_blueprint:
  path: sle118/set-zen32-indicator-for-switch-with-onoff-state-overwrite.yaml
  input:
    zooz_switch: b4a99522c296d316c28edff8f0050a55
    target_light: switch.bar_scene_switch
    scene_button: "0"
    off_state: "3"
    off_color: "3"
    on_state: "3"
    on_color: "0"

For those curious, zwave js has built in parameter actions now. i know it’s 2 years later but here’s an example code…

service: zwave_js.set_config_parameter
metadata: {}
data:
  parameter: "6"
  value: "3"
target:
  device_id:
    - a9c8b4d98f4a98c4b98d4f9a8c4badfb
    - aba7a7abaaba7ab383bcbd8dcbcbdb8a