mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-29 22:24:26 +00:00 
			
		
		
		
	Modbus controller (#1779)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
		| @@ -36,6 +36,14 @@ i2c: | ||||
|  | ||||
| modbus: | ||||
|   uart_id: uart1 | ||||
|   flow_control_pin: 5 | ||||
|   id: mod_bus1 | ||||
|  | ||||
| modbus_controller: | ||||
|   - id: modbus_controller_test | ||||
|     address: 0x2 | ||||
|     modbus_id: mod_bus1 | ||||
|  | ||||
|  | ||||
| binary_sensor: | ||||
|   - platform: gpio | ||||
| @@ -150,6 +158,14 @@ sensor: | ||||
|       name: "SelecEM2M Maximum Demand Apparent Power" | ||||
|       disabled_by_default: true | ||||
|  | ||||
|   - id: battery_voltage | ||||
|     name: "Battery voltage2" | ||||
|     platform: modbus_controller | ||||
|     modbus_controller_id: modbus_controller_test | ||||
|     address: 0x331A | ||||
|     register_type: read | ||||
|     value_type: U_WORD | ||||
|  | ||||
|   - platform: t6615 | ||||
|     uart_id: uart2 | ||||
|     co2: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user