Hi Everyone,
I’m new here. I’ve been using openHAB for over 5 years but have decided to test HA and possibly fully migrate due to the slow pace of the bindings/integration development of OH.
I’ve successfully installed HA and installed all the simple integrations (Ring, Hue, iRobot, Sonos, Nanoleaf, XBox, Shelly). All my OH lights etc are zigbee & zwave and are available via a local Mosquitto MQTT broker. I have at least 50 devices.
I have setup the MQTT integration and am able to edit the configuration.yaml using Visual Studio Code. I’ve been using YAML for 3 days so I’ve still got a lot to learn!
I have managed to turn a light bulb on and off in the UI using the following code but I’m struggling to adjust the brightness. I’ve read many posts and the official documentation but I’m a little stuck.
I’ve read these amongst many other articles and videos:
Please can someone help me or point me in the right direction so I can get started?
Here is my UI:
show_name: true
show_icon: true
type: button
entity: light.test_light
name: Test OH MQTT Light
icon: mdi:lightbulb
show_state: true
Here is my config for standard on/off:
mqtt:
light:
- unique_id: Test_Light
name: "Test Light"
command_topic: 'mqtt/moes_bulbgu10_01/set/state'
state_topic: 'mqtt/moes_bulbgu10_01/state'
Here are my topics:
'mqtt/moes_bulbgu10_01/color_mode', payload 'color_temp'
'mqtt/moes_bulbgu10_01/color-x', payload '0.3804'
'mqtt/moes_bulbgu10_01/color-y', payload '0.3767'
'mqtt/moes_bulbgu10_01/color-hue', payload '40'
'mqtt/moes_bulbgu10_01/color-saturation', payload '49'
'mqtt/moes_bulbgu10_01/brightness', payload '175'
'mqtt/moes_bulbgu10_01/state', payload 'ON'
'mqtt/moes_bulbgu10_01/linkquality', payload '135'
'mqtt/moes_bulbgu10_01/color_temp', payload '250'
This is where I’ve got to so far, it’s actually a colour bulb (x/y) but for now I would be happy if I can at least dim it. Many thanks.