mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
add missing controller/datetime
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user