add missing controller/datetime

This commit is contained in:
proddy
2025-10-18 17:15:26 +02:00
parent a949673539
commit 27fbafbe62
2 changed files with 5 additions and 2 deletions

View File

@@ -39,6 +39,8 @@ rm -f ./src/core/modbus_entity_parameters.hpp ./docs/dump_entities.csv
echo "test entity_dump" | ./emsesp | python3 ./scripts/strip_csv.py > ./docs/dump_entities.csv echo "test entity_dump" | ./emsesp | python3 ./scripts/strip_csv.py > ./docs/dump_entities.csv
cat ./docs/dump_entities.csv | python3 ./scripts/update_modbus_registers.py > ./src/core/modbus_entity_parameters.hpp cat ./docs/dump_entities.csv | python3 ./scripts/update_modbus_registers.py > ./src/core/modbus_entity_parameters.hpp
exit 0
# regenerate dump_entities.csv but without the Modbus entity parameters # regenerate dump_entities.csv but without the Modbus entity parameters
make clean make clean
make -s ARGS=-DEMSESP_STANDALONE make -s ARGS=-DEMSESP_STANDALONE

View File

@@ -42,7 +42,8 @@ string_sizes = {
"thermostat/switchtime2": 16, "thermostat/switchtime2": 16,
"thermostat/switchtime": 16, "thermostat/switchtime": 16,
"thermostat/switchtimeww": 21, "thermostat/switchtimeww": 21,
"controller/datetime": 25 "controller/datetime": 25,
"connect/datetime": 30
} }
tag_to_tagtype = { tag_to_tagtype = {
@@ -193,7 +194,7 @@ for entity in entities:
if int(entity["modbus count"]) <= 0: if int(entity["modbus count"]) <= 0:
raise Exception('Entity "' + entity_dev_name + ' (' + entity_shortname + ')' + raise Exception('Entity "' + entity_dev_name + ' (' + entity_shortname + ')' +
'" does not have a size - string sizes need to be added manually to update_modbus_registers.py/string_sizes') '" does not have a size - string sizes need to be added manually to update_modbus_registers.py/string_sizes[]')
# if entity["modbus count"] == "0": # if entity["modbus count"] == "0":
# print("ignoring " + entity_dev_name + " - it has a register length of zero") # print("ignoring " + entity_dev_name + " - it has a register length of zero")