mirror of
https://github.com/esphome/esphome.git
synced 2026-02-08 00:31:58 +00:00
[dsmr] Fix issue with parsing lines like 1-0:0.2.0((ER11)) (#13780)
This commit is contained in:
@@ -1 +1 @@
|
|||||||
069fa9526c52f7c580a9ec17c7678d12f142221387e9b561c18f95394d4629a3
|
37ec8d5a343c8d0a485fd2118cbdabcbccd7b9bca197e4a392be75087974dced
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ async def to_code(config):
|
|||||||
cg.add_build_flag("-DDSMR_WATER_MBUS_ID=" + str(config[CONF_WATER_MBUS_ID]))
|
cg.add_build_flag("-DDSMR_WATER_MBUS_ID=" + str(config[CONF_WATER_MBUS_ID]))
|
||||||
|
|
||||||
# DSMR Parser
|
# DSMR Parser
|
||||||
cg.add_library("esphome/dsmr_parser", "1.0.0")
|
cg.add_library("esphome/dsmr_parser", "1.1.0")
|
||||||
|
|
||||||
# Crypto
|
# Crypto
|
||||||
cg.add_library("polargoose/Crypto-no-arduino", "0.4.0")
|
cg.add_library("polargoose/Crypto-no-arduino", "0.4.0")
|
||||||
|
|||||||
@@ -718,14 +718,6 @@ CONFIG_SCHEMA = cv.Schema(
|
|||||||
device_class=DEVICE_CLASS_POWER,
|
device_class=DEVICE_CLASS_POWER,
|
||||||
state_class=STATE_CLASS_MEASUREMENT,
|
state_class=STATE_CLASS_MEASUREMENT,
|
||||||
),
|
),
|
||||||
cv.Optional("fw_core_version"): sensor.sensor_schema(
|
|
||||||
accuracy_decimals=3,
|
|
||||||
state_class=STATE_CLASS_MEASUREMENT,
|
|
||||||
),
|
|
||||||
cv.Optional("fw_module_version"): sensor.sensor_schema(
|
|
||||||
accuracy_decimals=3,
|
|
||||||
state_class=STATE_CLASS_MEASUREMENT,
|
|
||||||
),
|
|
||||||
}
|
}
|
||||||
).extend(cv.COMPONENT_SCHEMA)
|
).extend(cv.COMPONENT_SCHEMA)
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,9 @@ CONFIG_SCHEMA = cv.Schema(
|
|||||||
cv.Optional("sub_equipment_id"): text_sensor.text_sensor_schema(),
|
cv.Optional("sub_equipment_id"): text_sensor.text_sensor_schema(),
|
||||||
cv.Optional("gas_delivered_text"): text_sensor.text_sensor_schema(),
|
cv.Optional("gas_delivered_text"): text_sensor.text_sensor_schema(),
|
||||||
cv.Optional("fw_core_checksum"): text_sensor.text_sensor_schema(),
|
cv.Optional("fw_core_checksum"): text_sensor.text_sensor_schema(),
|
||||||
|
cv.Optional("fw_core_version"): text_sensor.text_sensor_schema(),
|
||||||
cv.Optional("fw_module_checksum"): text_sensor.text_sensor_schema(),
|
cv.Optional("fw_module_checksum"): text_sensor.text_sensor_schema(),
|
||||||
|
cv.Optional("fw_module_version"): text_sensor.text_sensor_schema(),
|
||||||
cv.Optional("telegram"): text_sensor.text_sensor_schema().extend(
|
cv.Optional("telegram"): text_sensor.text_sensor_schema().extend(
|
||||||
{cv.Optional(CONF_INTERNAL, default=True): cv.boolean}
|
{cv.Optional(CONF_INTERNAL, default=True): cv.boolean}
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ lib_deps_base =
|
|||||||
wjtje/qr-code-generator-library@1.7.0 ; qr_code
|
wjtje/qr-code-generator-library@1.7.0 ; qr_code
|
||||||
functionpointer/arduino-MLX90393@1.0.2 ; mlx90393
|
functionpointer/arduino-MLX90393@1.0.2 ; mlx90393
|
||||||
pavlodn/HaierProtocol@0.9.31 ; haier
|
pavlodn/HaierProtocol@0.9.31 ; haier
|
||||||
esphome/dsmr_parser@1.0.0 ; dsmr
|
esphome/dsmr_parser@1.1.0 ; dsmr
|
||||||
polargoose/Crypto-no-arduino@0.4.0 ; dsmr
|
polargoose/Crypto-no-arduino@0.4.0 ; dsmr
|
||||||
https://github.com/esphome/TinyGPSPlus.git#v1.1.0 ; gps
|
https://github.com/esphome/TinyGPSPlus.git#v1.1.0 ; gps
|
||||||
; This is using the repository until a new release is published to PlatformIO
|
; This is using the repository until a new release is published to PlatformIO
|
||||||
|
|||||||
Reference in New Issue
Block a user