Hello
I wonder if i will use in my project a Modbus input it will be enough quick (responsive) to use for DoubleClick event?
Thank you
Hello
I wonder if i will use in my project a Modbus input it will be enough quick (responsive) to use for DoubleClick event?
Thank you
It looks like sofar working (if limiting number of modbus devices).
I using the following setup:
uart:
- id: mbus_fast
tx_pin: 17
rx_pin: 16
baud_rate: 115200 #115200
stop_bits: 1
- id: mbus
tx_pin: 1
rx_pin: 3
baud_rate: 9600 #9600
stop_bits: 1
modbus:
- id: ga_f_eloszto_modbus1
uart_id: mbus
- id: ga_f_eloszto_modbus2
uart_id: mbus_fast
modbus_controller:
- id: ga_f_eloszto_mbsl32di_1
## the Modbus device addr
address: 10
modbus_id: ga_f_eloszto_modbus2
setup_priority: -20
update_interval: 0.08s
- id: ga_f_eloszto_mbsl32di_2
## the Modbus device addr
address: 11
modbus_id: ga_f_eloszto_modbus2
setup_priority: -20
update_interval: 0.08s
#command_throttle: 100ms
- id: ga_f_eloszto_24c3d32
## the Modbus device addr
address: 30
modbus_id: ga_f_eloszto_modbus1
setup_priority: -10
#update_interval: 1s
Please note even if i add one new device with a very slow update interval ā15sā it became unstable.
Also i force to read 4 Byte intsed of 2 ( response_size ) in order to limit a number of transaction on the bus:
- platform: modbus_controller
internal: true
modbus_controller_id: ga_f_eloszto_mbsl32di_1
name: ga_f_eloszto_1_I01
id: ga_f_eloszto_1_I01
register_type: holding
response_size: 4 # Reading 4 byte to cache the other registry content (only 2read possible in this rate on the fast_modebus wire)
address: 0 #0x40001
bitmask: 0x2
on_multi_click:
- timing:
- ON for 40ms to 400ms
- OFF for 40ms to 400ms
- ON for 40ms to 400ms
- OFF for at least 430ms
then:
- text_sensor.template.publish:
id: ga_f_eloszto_kiseloszoba_Kapcsolo_KEYS
state: !lambda 'return "double_01";'
- timing:
- ON for 40ms to 400ms
- OFF for 40ms to 400ms
- ON for 40ms to 400ms
- OFF for 40ms to 400ms
- ON for 40ms to 400ms
- OFF for at least 50ms
then:
- text_sensor.template.publish:
id: ga_f_eloszto_kiseloszoba_Kapcsolo_KEYS
state: !lambda 'return "triple_01";'