Can someone help me with automation Milight remote dimming Philips Hue lights

Hello. I am Thijs from The Netherlands and want to ask if someone can help making a automation where my Milight remote can change the brighness of my Philips Hue lights. I have created a sensor for the Milight remote with the Milight MQTT hub. I receive the remote values. I want to create one automation for changing the brightness value. Can someone help me with getting this to work. I want to use the value the remote generates to set the brightness of the Hue bulb. Thanks. Here are my sensors in the configuration file:

  • platform: mqtt
    name: “Remote kantoor 3 staat”
    state_topic: “milightb/updates/0x5E2B/fut089/3”
    value_template: “{{ value_json.state }}”

  • platform: mqtt
    name: “Remote kantoor 3 helderheid”
    state_topic: “milightb/updates/0x5E2B/fut089/3”
    value_template: “{{ value_json.brightness }}”

Please see the sticky post on how to format code correctly.