I think I should have explained what Iām trying to do better
What I would like to do is, while the State is finished, but not emptied, turn on a red LED in another room, and have it turn off once it is emptied, Perhaps a custom action alongside the notification reminders would do it (just as the start watchdog and end custom actions work)?
With my limited HA experience, I think that I would be able to use a āStateā for the whole automation, moving from running > stopped > emptied
Where I would do the following during the statesā¦
Stopped (the machine is done running, but I have been lazy and not emptied it yet):
It is hard for me to help when I have no idea on what your power is doing through the cycle. Is your power settings set up correctly? The FAQ shows you how to set this up.
Maybe you can provide a zoom up screen shot of your power cycle graph so I can see what is happening. Also let me know what is going wrong and maybe use the start notify option to first set it up so you know it has triggered it at the start and then you can eliminate if it is the start trigger or the end trigger is the problem. Once you got it working you can disable it if you donāt want the start notification.
One thing I noticed is that you missed entering the 2 number helpers into Power Tracking > Power Tracking - Start Number Helper & Power Tracking - End Number Helper. The FAQ shows you how to set up these number helpers.
Could you please provide us your YAML of the automation? This YAML code are the settings you have selected in the automation so I can help. To do this go into your automation, top right 3 dots, Edit in YAML, copy all the code, come back to the forum and in your reply at the top tool bar click on ā</>ā and paste code in there.
You would still create your number helper then have a custom automation to change it for you.
Create a new custom automation > 3 dots top right > edit in YAML and paste the code below then in the Then do expand it out and in each of the action change it to your energy rate and your number entity ID.
NOTE: It takes the number at the end of the cycle so if it crosses over the cost is not accurate.
alias: Energy Cost
description: Energy Cost During The Day
triggers:
- trigger: time
at: "08:00:00"
id: morning
- trigger: time
at: "15:00:00"
id: afternoon
- trigger: time
at: "21:00:00"
id: evening
actions:
- choose:
- conditions:
- condition: trigger
id: morning
sequence:
- data:
value: 0.2
action: input_number.set_value
target:
entity_id: input_number.electricity_rate
- conditions:
- condition: trigger
id: afternoon
sequence:
- data:
value: 0.35
action: input_number.set_value
target:
entity_id: input_number.electricity_rate
- conditions:
- condition: trigger
id: evening
sequence:
- data:
value: 0.15
action: input_number.set_value
target:
entity_id: input_number.electricity_rate
mode: single
Yes you can, but you would have to do it in the custom actions and record it to a number helper but that will only last for 10 days. You can do other things to record the data into HA but it is quite involved and should proceed with caution.
Regards the image of your notification, I not sure if your asking a question or just showing your notification. Because I donāt know your currency I am not sure if $11.17 is correctā¦ it might be . For me my electricity rate is 35 cents so my number helper must be 0.35 then it would be 0.09 x 0.35 = $0.03.