#configuring the payload for mqtt light on/off command

1 messages · Page 1 of 1 (latest)

ember dune
#

i am using the following mqtt light entity definition:

  mqtt:
    light:
    - name: 'Light'
      state_topic: 'home/ambi/power'
      payload_on: '1'
      payload_off: '0'
      command_topic: 'home/ambi/setpower'
      brightness_state_topic: 'home/ambi/brightness'
      brightness_command_topic: 'home/ambi/setflowparams'
      brightness_command_template: '{"brightness": {{ value }}}'
      brightness_scale: 100
      rgb_state_topic: 'home/ambi/rgb'
      rgb_command_topic: 'home/ambi/setrgb'
      optimistic: false

how do i configure the payload for command on and off? i would like to make it a json value...
for example - when a payload of '{"power": true}' received - turn the light on

undone pawn
#

change payload_on and payload_off

ember dune
#

these keys are for the incoming notification - not the one being sent on powering on/off the light

undone pawn