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

  • kigmatzomat@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    welcome to IP based devices, where each feature can use a different API and/or cloud service. Matter will propagate the problem.

  • griphon31@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    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?