ulriklystbaek / smarthouse-ha

Carlo Gavazzi SmartHouse integration with Home assistant
8 stars 1 forks source link

Dimming lights from second generation #2

Open SindreNorge opened 8 months ago

SindreNorge commented 8 months ago

Thank you for your code. I've used the build.js, but only get my light functions as simple functions, like this:

      - name: "(Fx) Kontor - Taklys(Fx) Kontor - Taklys"
        address: 1182
        slave: 1
        write_type: holding
        scan_interval: 1
        verify:
          input_type: holding
          address: 1182
          state_on: 1
          state_off: 0

Which I get in HA, but then I only get on/off. The lights are controlled by: sh2d500w230 Which is second generation. In the Carlo Gavazzi app I can choose the dimming by using "S2", "S3" and "S4". Do you know if I can get the dimming function into HA?

jeybee74 commented 2 months ago

Thank you for your code. I've used the build.js, but only get my light functions as simple functions, like this:

      - name: "(Fx) Kontor - Taklys(Fx) Kontor - Taklys"
        address: 1182
        slave: 1
        write_type: holding
        scan_interval: 1
        verify:
          input_type: holding
          address: 1182
          state_on: 1
          state_off: 0

Which I get in HA, but then I only get on/off. The lights are controlled by: sh2d500w230 Which is second generation. In the Carlo Gavazzi app I can choose the dimming by using "S2", "S3" and "S4". Do you know if I can get the dimming function into HA?

Hi, did you get this to work? I am all new to HA and I am trying to connect to my Carlo Gavazzi UWP.30 controller for control of lights, thermostats, switches for water heater and energy meters and control my EV-charger and solar inverter based on input from some of these sensors.

SindreNorge commented 2 months ago

Yes, you can use: command_on: 7 command_off: 0 For lights. Different values equals different dimming if you have the same dimmer as I have.

jeybee74 commented 2 months ago

Yes, you can use: command_on: 7 command_off: 0 For lights. Different values equals different dimming if you have the same dimmer as I have.

That's great, I have just started to test this out and has not got anything to work yet :( , started with just one light function, so I guess I have done something wrong..
its just the code in the configuration.yaml that's needed?

EDIT: as stated above, I just added one on/off light function to test. It's working perfectly now. found out that I had not restarted completely and all ok now after a restart of HA. Now I will implement more functions :)