Sylvania Lightify Setup

I recently installed some Sylvania Lightify Recessed fixtures. I added them to my Smartthings Hub, which is connected to HA using the Smartthings MQTT Bridge. The lights work fine in the ST app.

I sort of have them working using the code below, but have a couple issues. First, when choosing a color from the color wheel, the lights do not change. Second issue is when I the white level, it is appears to be a different scale on HA, only 150-500, not the 2700-6500 I’d expect

To be honest I really only got this far by copying other examples, so if you see something in the code below that makes no sense, it is only because I don’t quite understand all this yet…

light 6:
  platform: mqtt
  name: "Rear Right Recessed"
  state_topic: "smartthings/Rear Right Recessed/switch"
  command_topic: "smartthings/Rear Right Recessed/switch"
  state_value_template: "{{ value_json.state }}"
  brightness_state_topic: "smartthings/Rear Right Recessed/level"
  brightness_command_topic: "smartthings/Rear Right Recessed/level"
  brightness_value_template: "{{ value_json.brightness }}"
  hs_state_topic: "smartthings/Rear Right Recessed"
  hs_command_topic: "smartthings/Rear Right Recessed"
  hs_value_template: "{{ value_json.rgb | join(',') }}"
  color_temp_state_topic: "smartthings/Rear Right Recessed/colorTemperature"
  color_temp_command_topic: "smartthings/Rear Right Recessed/colorTemperature"
  color_temp_value_template: "{{ (1000000/float(value)) | int }}"
  hs: true
  qos: 0
  payload_on: "on"
  payload_off: "off"
  retain: true
  google_assistant: false

MQTT traffic generated from the Smartthings App:
smartthings/Rear Right Recessed/switch on
smartthings/Rear Right Recessed/level 50
smartthings/Rear Right Recessed/colorTemperature 6494
For color, it sends the following back to back…
smartthings/Rear Right Recessed/hue 81
smartthings/Rear Right Recessed/saturation 77

MQTT traffic generated from the HA code above.
smartthings/Rear Right Recessed/switch on - Good

smartthings/Rear Right Recessed/level 17 - Good
smartthings/Rear Right Recessed/switch on

smartthings/Rear Right Recessed 270.0,100.0 - Colors not in the same Hue/Saturation format. Not sure how to fix this…

smartthings/Rear Right Recessed/colorTemperature 441 - Scale is off. HA uses mired scale, so while the commands work, they aren’t really changing anything
smartthings/Rear Right Recessed/switch on

Also, I haven’t done anything with regards to the templates, and I’m sure they are messed up.

Thanks!

I’m replying to my comment to bump it up. I’ve added more info as well, with regards to the MQTT traffic from ST and HA. Hoping someone can get me pointed in the right direction.

Thanks!

Curious if this was ever resolved? I have the same issue. Colortemp is showing in hundreds and the color of the bulb changes. But its not the correct color.