Change rtl_433_mqtt_hass.py to support storm_dist_km from WH31L (#2748)
This commit is contained in:
parent
7e6a4bafb9
commit
8950dc4182
1 changed files with 11 additions and 0 deletions
|
@ -615,6 +615,17 @@ mappings = {
|
|||
}
|
||||
},
|
||||
|
||||
"storm_dist_km": {
|
||||
"device_type": "sensor",
|
||||
"object_suffix": "stdist",
|
||||
"config": {
|
||||
"name": "Lightning Distance",
|
||||
"unit_of_measurement": "km",
|
||||
"value_template": "{{ value|int }}",
|
||||
"state_class": "measurement"
|
||||
}
|
||||
},
|
||||
|
||||
"storm_dist": {
|
||||
"device_type": "sensor",
|
||||
"object_suffix": "stdist",
|
||||
|
|
Loading…
Add table
Reference in a new issue