this post was submitted on 22 Nov 2023
1 points (100.0% liked)

Home Automation

79 readers
2 users here now

Home automation is the residential extension of building automation.

It is automation of the home, housework or household activity.

Home automation may include centralized control of lighting, HVAC (heating, ventilation and air conditioning), appliances, security locks of gates and doors and other systems, to provide improved convenience, comfort, energy efficiency and security.

Warning: Working with electricity can result in injury, property damage, or even death if it is not done properly. Please keep this in mind while assisting others. If you are not sure about what you are doing, hire a licensed professional.

Rules

founded 11 months ago
MODERATORS
 

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

top 2 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 10 months ago

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

[–] [email protected] 1 points 10 months 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?