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