Hello,
I have two Galletti FM fancoil that use open modbus and I would like to integrate using D1 mini and a TTL/RS485 converter. I wrote this yaml but I’m not sure about the addresses to use as sensors and whether they are written correctly and I don’t know how to send the changes (writes).
This is my yaml (incomplete)
# SOSTITUZIONI
substitutions:
fancoil_id: "0x1"
# CONFIGURAZIONE MODBUS RS485
uart:
tx_pin: GPIO01
rx_pin: GPIO03
baud_rate: 9600
parity: none
stop_bits: 1
modbus:
id: modbus1
modbus_controller:
- id: fm043
address: ${fancoil_id}
modbus_id: modbus1
setup_priority: -10
update_interval: 30s
command_throttle: 200ms
# PULSANTE RESET D1 MINI
button:
- platform: restart
name: restart
# CONFIGURAZIONE SENSORI
sensor:
- platform: wifi_signal
name: rssi
update_interval: 60s
# TEMPERATURA AMBIENTE (R)
- platform: modbus_controller
modbus_controller_id: fm043
id: temp_ambiente
name: temperatura_ambiente
register_type: read
address: 400010
value_type: U_WORD
skip_updates: 30
unit_of_measurement: "°C"
device_class: temperature
accuracy_decimals: 1
filters:
- multiply: 10
# VELOCITA VENTOLA (R)
- platform: modbus_controller
modbus_controller_id: fm043
id: velocita_ventola
name: velocita_ventola
register_type: holding
address: 300001
value_type: U_WORD
# OSCILLAZIONE DEFLETTORE (R)
- platform: modbus_controller
modbus_controller_id: fm043
id: deflettore
name: deflettore
register_type: holding
address: 300002
value_type: U_WORD
# MODALITA FUNZIONAMENTO (R)
- platform: modbus_controller
modbus_controller_id: fm043
id: mode
name: modalita
register_type: holding
address: 300000
value_type: U_WORD
# SETPOINT (R)
- platform: modbus_controller
modbus_controller_id: fm043
id: temperatura_setpoint
name: temperatura_setpoint
register_type: holding
address: 300003
value_type: U_WORD
unit_of_measurement: "°C"
device_class: temperature
accuracy_decimals: 1
filters:
- multiply: 10
# ON OFF (R)
- platform: modbus_controller
modbus_controller_id: fm043
id: acceso_spento
name: acceso_spento
register_type: coil
address: 100000
value_type: U_WORD
number:
# IMPOSTAZIONE SETPOINT (W)
- platform: modbus_controller
modbus_controller_id: fm043
id: set_tempertaura_setpoint
name: temperatura_setpoint
address: 300003
value_type: U_WORD
min_value: 16
max_value: 30
multiply: 10
unit_of_measurement: "°C"
device_class: temperature
step: 1
# IMPOSTAZIONE MODO (W)
- platform: modbus_controller
modbus_controller_id: fm043
id: set_mode
name: modalita
address: 300000
value_type: U_WORD
max_value: 10
min_value: 1
step: 1
Thanks for your help