I have a DP Link DSP-W218-20E8 smart plug with energy usage monitoring. It can be controlled via Google Home, but doesn’t seem to have the power usage being sent to Google. Thus, when I try to create an automation to send a notification on energy usage exceeding certain levels, I get an error that device.state.Energy isn’t a known type name.
Any ideas? Heres the script from the Google Home script editor…
metadata:
name: Energy consumption notification
description: Send a notification when energy consumption exceeds 25w
automations:
- starters:
- type: device.state.Energy
device: DSP-W218-20E8 - Living Room
state: energy.currentPower
greaterThan: 25w
actions:
- type: home.command.Notification
title: Energy consumption notification
body: Energy consumption notification
welcome to IP based devices, where each feature can use a different API and/or cloud service. Matter will propagate the problem.
Normally speaking you can get all of it into home assistant through various forms of hackery. You ready to open up that can of worms?