Due to Gree modbus protocol limitation to write command_on/off I need to use function code 10 = holdings, but how to configure it in yaml? below does not work:
It looks like you’re on the right track! To configure the command_on and command_off for the switches in YAML, you need to specify the value instead of using hexadecimal values directly. Here’s an updated version of your YAML configuration:
it does not work:
"
Invalid config for ‘modbus’ at modbus.yaml, line 23: expected int for dictionary value ‘modbus->0->switches->0->command_on’, got [170, 0]
Invalid config for ‘modbus’ at modbus.yaml, line 26: expected int for dictionary value ‘modbus->0->switches->0->command_off’, got [85, 0]
"