Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95483

Problem with setting up modbus with a light template

$
0
0

@gliena wrote:

Hello,

I am struggling to get my dimmer lights to work with my Siemens Logo. I was able to make it work with my non dimmable lights but here…

  - platform: template
    lights:
      living_room:
        friendly_name: "Living Room"
        level_template: "{{ states('sensor.sensorlivingroom') / 10 }}"
        value_template: "{{ states('sensor.sensorlivingroom') | int > 0 }}"
        turn_on:
          - service: modbus.write_register
            data:
              hub: hub1
              unit: 1
              address: 50
              value: 50
        turn_off:
          - service: modbus.write_register
            data:
              hub: hub1
              unit: 1
              address: 50
              value: 0
        set_level:
          - service: modbus.write_register
            data:
              hub: hub1
              unit: 1
              address: 50
              value: "{{ brigthness | int }}"

What are my issues:

  • I can’t see the state of my lights level and value

  • Turning off and turning on doesn’t work

If in run the service in the developer tools it works fine:

value_template works fine in developer tools events.

I’ve been at it for hours so am grateful for any piece of advice.
thanks,

Posts: 5

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95483

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>