I somehow managed to get it on to lovelace now…
but i have one issue… it shows as if it’s off
Any hints and tips?
Configuration.yaml
# Smarthouse Modbus
modbus:
name: SmartHouse
type: tcp
host: 192.168.50.2
port: 502
# SmartHouse Functions
switch:
platform: modbus
scan_interval: 10
registers:
- name: lys loft multirum
hub: SmartHouse
slave: 1
register: 119
command_on: 1
command_off: 0
...............
- name: Stue - Spots
hub: SmartHouse
slave: 1
register: 1129
command_on: 1
command_off: 0
sensor:
platform: modbus
registers:
- name: Stue - Spots - Sensor
hub: SmartHouse
slave: 1
register: 1129
input_number:
slider2:
name: Dimmer value
initial: 10
min: 10
max: 100
step: 1
automation.yaml
- id: SpotDimmerStue
alias: Spots stue
trigger:
platform: state
entity_id: input_number.slider2
action:
service: modbus.write_register
data_template:
hub: SmartHouse
unit: 1
address: 1129
value: "{{ states.input_number.slider2.state|int }}"