I’m trying to get a dimmable light controlled by modbus to work in HA.
I have created a sensor which reads the value of the dimmable light and it works great:
The light is on when ever the sensor is above 0, and it’s turned off when it’s 0
If i use the developer tools i can use the service and write the modbus register which is working.
But i cant get the light card to function. It’s acting wierd… and as i see it it sets the brightness, but it sets it back to 0 right after.
Modbus IoT class is Local Push (look at the top right part of the page).
Local Push Offers direct communication with device. Home Assistant will be notified as soon as a new state is available.
As such, those calls to homeassistant.update_entity are not needed. In fact, not sure what will happen when you use that on a push device.
Does the on/off switch work in the card? Is it just the brightness slider that doesn’t work? Keep in mind the slider is going to give you a value between 0-255. I don’t see any translation in your switch, so maybe that’s the correct input you’re expecting. If you need it to be between 0-100, you’ll have to modify the set_level function to convert the value.
The on off is not working. If drag the dimmer slider above 39 it sets the modbus register to 0. If set to a number lower thatn 39 the REAL light turns on but the light in HA stays off
Switched from states.sensor.stuespotsensor.state to states(‘sensor.stuespotsensor’). This will help in the event modbus template isn’t available before the template light is available. With the new change, if it’s not there, this wont throw an error.
Convert 0-255 brightness values to/from modbus. Assuming it is 0-100, HA sends all brightness commands as the 8 bit value. So we need to translate the state correctly (level_template) as well as translate the requests to/from our template light.
Removed the service calls to update the sensor. This is a push sensor, so they aren’t needed.
Wish I had a modbus thing to test with! Hope this helps.
Then I got a light card in lovelace UI, but when I turn on the light, the UI button not toggle to the position “ON”. I tried several times, but I failed.
It is appreciates that you could sharing your fully configurations of MosBUS Ligfht, for example: include the input_number section and so on…
Hi, I’m trying to implement this myself but I cannot get it to work. The register value updates only when the on/off switch is toggled. When the dimmer state is on, and I use the slider, the register does not update continuously. Is it still working smoothly for you? Any idea what I could be doing wrong? My dimmer config in configuration.yaml is the following:
I currently have a Enocean-Dali-Gateway setup to control my Dali lights with HA. However, due to some additional Dali devices, I need to switch to a different gateway, one being able to handle a multi master setting.
I’m looking at either Modbus TCP-Dali or MQTT-Dali, with the following products
The MQTT light integration in HA seems to be more mature than Modbus TCP lights, especially when it comes to dimming. And therefore easier to implement. However, from the actual products above, I’d prefer the Lunatone device, which would mean the Modbus setup.
What is your experience with your dimmable Modbus lights in HA? Does your config work as you want it to? How is the response time? And how reliable is the setting?
Is there made any progress on this topic?
I’ve been planning my smart home layout and for me the dali4net would be a perfect fit in combination with a lot of dali drivers.
I would like to know if this would work through the modbus interface to properly control dali lights through the Dali 4Net Gateway.
Disclaimer: I am working for Atios in Switzerland.
Our Atios SmartCore supports control of DALI Lights (DT6, DT7, DT8, Adress and Group control) and DALI-2 Keypads. Pairing to Home Assistant can be done via HomeKit or Matter, certified since October 2023.
Future firmware updates will add support of further DALI-2 Sensors such as Motion, Presence, Temperature, AirQuality and so on. We are also integrating Blinds / Curtain controls via existing DALI-modules on the market. Directly assigning addresses to new DALI loads on the bus via our webinterface will be the icing on the cake.