I had a Smart Things multi-purpose sensors on the washing machine detecting vibration to send notifications that the washing machine was finished, but I got a lot of false positives. So Instead I now have the zooz plug with monitoring. I can see it getting the power data fine so I know its working. I can’t figure out how to get the Notification automation working.
I saw some other posts using the Numeric State trigger for below a certain wattage for 5 minutes. I have checked the Attributes under Developer Tools for the washing machine power meter, and I do see the “unit_of_measurement: W”. I have tried 3 different automation setups with the Attribute in Numeric State set to “W”, Set to “unit_of_measurement: W” and set to “unit of measurement” with Below 3 and For 5 minutes, but none of these will trigger.
Any help would be appreciated. Below is the one I thought would work, but I have also tried with “attribute: Unit_of_Measurement: W” and no luck.
alias: New Power - Washing Finished
description: ""
trigger:
- platform: numeric_state
entity_id: sensor.washing_machine_switch_power_meter
for:
hours: 0
minutes: 5
seconds: 0
attribute: W
below: 3
condition: []
action:
- service: notify.alexa_media_living_room_echo
data:
message: The Washing Machine Has finished.
target: notify.alexa_media_living_room_echo
data:
type: tts
mode: single
I’ve set my automation up to only push a notification if the motion sensor in the laundry room is not active. Don’t want a notification if someone is already in there.
I have the " Zooz Z-Wave Plus Power Switch ZEN15". I am getting data from the Power Meter and the Energy Consumption just fine. The power meter is definitely the entity I want, just not sure why its not triggering the automation. It was added via smart things.
The issue with the Motion and vibration sensor is it starts and stops, and I know I could prb tweak the time for no motion\vibration but the power meter sounded more solid.
I think you are confused about what attributes are. Not all entities have attributes, and what you’re doing (probably?) doesn’t require them. If you go to Developer Tools → States and search for your entity, you can see what the state is and also what attributes it has (if any) and what the attributes’ values are.
My guess is that the entity sensor.washing_machine_switch_power_meter reports a state that is a value in Watts. That should be all you need. If you never knew that attributes existed, you’d probably have a working automation already.
When you look at your entity in developer tools, does the state report the number that you want to act upon? If so, just delete the attribute: W line from your automation and it will probably work.
Yes numeric_state is still the trigger you want. You’d only want the attribute: line if you are monitoring a specific attribute for a change. Since none of those attributes you’ve listed are numbers, you can’t use numeric state for them anyways. But even if you change to a state trigger, and added the line attribute: unit_of_measurement then your automation would only trigger when the unit of measurement changes from W to something else, like kW for example. Which will never happen. In fact none of those attributes you’ve listed should ever change, so it would be silly to create an automation that triggers off of any of them. But hopefully this highlights what that attribute line does.