mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-08-28 05:24:29 +00:00
Support for PP-WHT-US new sensors (#1718)
* Support for PP-WHT-US new sensors * Update homeassistant.js
This commit is contained in:
@@ -165,11 +165,29 @@ const configurations = {
|
||||
type: 'sensor',
|
||||
object_id: 'power',
|
||||
discovery_payload: {
|
||||
unit_of_measurement: 'Watt',
|
||||
icon: 'mdi:flash',
|
||||
unit_of_measurement: 'W',
|
||||
icon: 'mdi:factory',
|
||||
value_template: '{{ value_json.power }}',
|
||||
},
|
||||
},
|
||||
'sensor_current': {
|
||||
type: 'sensor',
|
||||
object_id: 'current',
|
||||
discovery_payload: {
|
||||
unit_of_measurement: 'A',
|
||||
icon: 'mdi:power-plug',
|
||||
value_template: '{{ value_json.current }}',
|
||||
},
|
||||
},
|
||||
'sensor_voltage': {
|
||||
type: 'sensor',
|
||||
object_id: 'voltage',
|
||||
discovery_payload: {
|
||||
unit_of_measurement: 'V',
|
||||
icon: 'mdi:flash',
|
||||
value_template: '{{ value_json.voltage }}',
|
||||
},
|
||||
},
|
||||
'sensor_action': {
|
||||
type: 'sensor',
|
||||
object_id: 'action',
|
||||
@@ -662,7 +680,10 @@ const mapping = {
|
||||
],
|
||||
'IM6001-BTP01': [configurations.sensor_click, configurations.sensor_temperature],
|
||||
'AV2010/34': [configurations.sensor_click],
|
||||
'PP-WHT-US': [configurations.switch, configurations.sensor_power],
|
||||
'PP-WHT-US': [
|
||||
configurations.switch, configurations.sensor_power,
|
||||
configurations.sensor_current, configurations.sensor_voltage,
|
||||
],
|
||||
'CR701-YZ': [
|
||||
configurations.binary_sensor_battery_low, configurations.binary_sensor_carbon_monoxide,
|
||||
configurations.binary_sensor_gas,
|
||||
|
||||
Reference in New Issue
Block a user