Modbus PLC YAML help

Please format your YAML properly – see point 11 here.
According to the documentation, there should be this service: modbus.write_coil. You can try calling it from developer tools with unit: 255 (slave address), hub: hub1, address: 3074 (register address) and state: true (or false).