Skip to content

Commit e083a6b

Browse files
feat: Support Home Assistant water device_class (#18066)
This should be sufficient for https://www.zigbee2mqtt.io/devices/ZVG1.html to be water_consumed sensor to be usable in Energy dashboard (water section). Co-authored-by: Koen Kanters <[email protected]>
1 parent 57aaa5a commit e083a6b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/extension/homeassistant.ts

+4
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,10 @@ export default class HomeAssistant extends Extension {
732732
entity_category: 'diagnostic',
733733
state_class: 'measurement',
734734
},
735+
water_consumed: {
736+
device_class: 'water',
737+
state_class: 'total_increasing',
738+
},
735739
x_axis: {icon: 'mdi:axis-x-arrow'},
736740
y_axis: {icon: 'mdi:axis-y-arrow'},
737741
z_axis: {icon: 'mdi:axis-z-arrow'},

0 commit comments

Comments
 (0)