Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A8S and Modbus sensor
#8
Hello,
If some one would be looking for the same thing, this is the part of yaml that works for me:

modbus:
id: modbus1
uart_id: mod_bus

modbus_controller:
- id: a8s
address: 0x01
modbus_id: modbus1
setup_priority: -10
update_interval: 5s

uart:
id: mod_bus
tx_pin: 33
rx_pin: 32
baud_rate: 9600
stop_bits: 1
parity: NONE


sensor:

- platform: modbus_controller
modbus_controller_id: a8s
name: "Box Temp"
id: modbus_temp
register_type: holding
address: 0
unit_of_measurement: "°C"
value_type: S_WORD
accuracy_decimals: 1
filters:
- lambda: return x / 10.0;

- platform: modbus_controller
modbus_controller_id: a8s
name: "Box Hum"
id: modbus_Hum
register_type: holding
address: 1
unit_of_measurement: "%"
value_type: S_WORD
accuracy_decimals: 1
filters:
- lambda: return x / 10.0;
Reply


Messages In This Thread
A8S and Modbus sensor - by milan.net - 06-10-2024, 10:34 AM
RE: A8S and Modbus sensor - by admin - 06-10-2024, 12:56 PM
RE: A8S and Modbus sensor - by milan.net - 06-10-2024, 01:32 PM
RE: A8S and Modbus sensor - by admin - 06-10-2024, 10:31 PM
RE: A8S and Modbus sensor - by milan.net - 06-12-2024, 10:20 AM
RE: A8S and Modbus sensor - by admin - 06-12-2024, 11:09 AM
RE: A8S and Modbus sensor - by milan.net - 06-12-2024, 05:54 PM
RE: A8S and Modbus sensor - by milan.net - 06-15-2024, 09:22 PM
RE: A8S and Modbus sensor - by admin - 06-15-2024, 10:36 PM
RE: A8S and Modbus sensor - by martinvysnovsky - 07-26-2024, 12:31 PM
RE: A8S and Modbus sensor - by admin - 07-27-2024, 12:43 AM
RE: A8S and Modbus sensor - by martinvysnovsky - 08-20-2024, 09:54 AM
RE: A8S and Modbus sensor - by admin - 08-20-2024, 12:12 PM
RE: A8S and Modbus sensor - by martinvysnovsky - 08-21-2024, 06:47 AM
RE: A8S and Modbus sensor - by admin - 08-21-2024, 07:42 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)