Dimmer Lovelace Card

hi

i’m using ligth dimmer card for dimmering ligth. But i can do the same thing from wall button, so if i dimmer from wall button the card should change value.

The card turn on if i push the button, but if i dimmer the light the card value is the same.

this is the code for receive/send value to the PLC by mqtt

  • name: “Luce seminterrato centro”
    state_topic: “ha/light/basement/light_cx/state”
    command_topic: “ha/light/basement/light_cx/cmd”
    brightness_state_topic: “ha/light/basement/light_cx/brightness/state”
    brightness_command_topic: “ha/light/basement/light_cx/brightness/set”
    availability:
    - topic: “ha/light/basement/light_cx/error”
    qos: 0
    payload_on: “ON”
    payload_off: “OFF”
    optimistic: false
    unique_id: “light.basement_cx.light”

the value is changing on “ha/light/basement/light_cx/brightness/state”

thank’s

Gianluca

Hi,

I’ve do a mistake on node-red component, so i’ll send te wrong message, now i’ve solved the problem.

thank’s

Gian-Luca