Skip to content

Commit

Permalink
Create const.py
Browse files Browse the repository at this point in the history
  • Loading branch information
khaledemam authored Aug 27, 2024
1 parent 0bc198c commit 2f827bb
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions custom_components/HA-inepro-Modbus/const.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
DOMAIN = "modbus_integration"

SENSOR_LIST = [
{
"name": "Voltage",
"unique_id": "V",
"device_class": "voltage",
"state_class": "measurement",
"precision": 2,
"address": 0x5000,
"input_type": "holding",
"count": 2,
"data_type": "float32",
"unit_of_measurement": "V",
"scan_interval": 5
},
{
"name": "L1 Voltage",
"unique_id": "L1V",
"device_class": "voltage",
"state_class": "measurement",
"precision": 2,
"address": 0x5002,
"input_type": "holding",
"count": 2,
"data_type": "float32",
"unit_of_measurement": "V",
"scan_interval": 5
},
# Add the rest of your sensors here...
]

0 comments on commit 2f827bb

Please sign in to comment.