My current setup is a Hassio installation, a Carlo Gavazzi Smarthouse SH2WEB24 controller which is a IHC like device for controlling light relay’s in my house. It also has a Modbus TCP server that i can connect to.
I managed to get my light working with Hassio by using the modbus tcp and all is good there.
What i’m having issues with is that i have a dimmer in my Smarthouse setup that i would also like to integrate with Hassio.
Hassio does have the switch “working” but my issue is that the SmartHouse controller is reporting back the dimmer value. So it’s not a 0 or 1 on off thing.
So my question is, can i somehow make Hassio see the light as ON is the value reported back (which is in hex format) if the value is above 0? and how do i do so?
Here’s what the log gives me: 2019-10-28 15:24:14 ERROR (SyncWorker_8) [homeassistant.components.modbus.switch] Unexpected response from hub SmartHouse, slave 1 register 1129, got 0x1a
The 0x1a value gives me in decimal 26 which is the current dimmer level.
i hope my issue makes sense and someone can get me in the right direction.
@wellsy thaks alot for the input…
Now i can read the correct value by a sensor.
Just have to figure out how to create a light with dimmer in lovelace and the… any hint’s and tips?
Just need some clarification on the lovelace thing.
i need to define it as a normal modbus switch and a modbus sensor and a input_number?
how would i add it to lovelace card? as a light? or which card type?
@Heine_Madsen FIRST your config looks to be good… fyi “slider2” is just my name for that input_number…you can call that what you want but must adjust accordingly here as well:
Next is the dimmer working atm? IE: you can change the brightness?
The switch advice I gave may be wrong? Maybe you just set the dimmer value to ‘0’ OR is there another register or a “coil” which is the switch for the dimmer?
Do you have a manual or other documentation to refer to or do they have tech help/support?
Hi @Heine_Madsen, I’m like you have a Hassio --> Carlo Gavazzi Smarthouse (SH2WEB24) Set up in my house. I have not been able to find any information about how to connect the SH2WEB24 with Hassio and it seems there in’t much about it on the web.
Is there any chance you can help me in the right direction how you configure HAssio and SH2WEB24 to communicate?
Hi again, Sorry for late replay from me to. No I have not mange to get things to work. I know how to set the SH2WEB24 as slave but don’t know how to retrieve info about things called coils and register.
I have the same carlo gavazzi controller for my smarthome but I have not managed to integrate with hassio… I have however managed to build a python/modbuslib script to read and control lights based on function 1 and 5 accordingly.
I tried to follow your setup to move everything to hassio but I cannot understand where to find the registers that you used (ie. 119, 143 etc). Based on my setup (and smarthome configurator help file), function 5 used input coils with addresses 5376-5503.
More specifically in my setup, I have for instance the “Living room Spots” which I call function 1 to register address (dec) 1333 to read (dupline address G6),and function 5 with register address (dec) 5442 (dupline address I3) to toggle.
Can you please let me know how to find these (working) registers in my setup or how to convert the function 5 register address to hassio?
Any other help would be greatly appreciated, I really need to move the python/modbuslib setup to hassio…
And almost everything works. I can send value to modbus and read it back. sensor.light updates when I change the value on modbus side. I just can’t get to update slider with value I set on modbus side. Any help appreciated.
Hi, Any guys still active here ? I’m going to integrate this, but don’t know where to find the register addresses ? Any hints, maybe, someone who can post working configs on a dimmer configuration ?