message: Fixes for lights in home assistant
diff: @@ -276,11 +276,11 @@ module.exports = {
  object_id: 'dimmer',
  discovery_payload: {
  schema: 'template',
  - brightness_template: '{{ value_json.value }}',
  + brightness_template: '{{ (value_json.value / 99 * 255) | round(0) }}',
  state_topic: true,
  state_template: '{{ "off" if value_json.value == 0 else "on" }}',
  command_topic: true,
  - command_on_template: '{{ brightness if brightness is defined else 255 }}',
  + command_on_template: '{{ ((brightness / 255 * 99) | round(0)) if brightness is defined else 255 }}',
  command_off_template: '0'
  }
  },
  