Add TPZRCO2HT-Z3 homeassistant mapping (#4155)

Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
This commit is contained in:
mog422
2020-08-22 12:24:28 +02:00
committed by GitHub
co-authored by Koen Kanters
parent f15b314634
commit e6f8cee968
+10
View File
@@ -509,6 +509,15 @@ const cfg = {
icon: 'mdi:rotate-3d-variant',
},
},
'sensor_co2': {
type: 'sensor',
object_id: 'co2',
discovery_payload: {
unit_of_measurement: 'ppm',
value_template: '{{ value_json.co2 }}',
icon: 'mdi:molecule-co2',
},
},
// Light
'light_brightness_colortemp_colorxy': {
@@ -1892,6 +1901,7 @@ const mapping = {
'GWA1521': [cfg.switch],
'GWA1522': [switchEndpoint('l1'), switchEndpoint('l2')],
'GWA1531': [cfg.cover_position],
'TPZRCO2HT-Z3': [cfg.sensor_temperature, cfg.sensor_humidity, cfg.sensor_battery, cfg.sensor_co2],
};
const defaultStatusTopic = 'homeassistant/status';