Sidebar, I have been an on again/off again user of HA for a long time, but I am really getting serious about it now, and I am trying to move as much of my other automation into HASS as it makes sense.
Background
I have a binary sensor on the washer and the dryer in my laundry room that are True when the machine is running (one for each machine).
I have a python script that I run separately to send a slack message when the washer or dryer finishes, and I have an extra gate to notice when one is done, but not the other, which doesnât send a slack message.
The Question
How do I achieve this same functionality, or better in HA?
I would like to have the UI show some other state from the result of these calculations. For example, âWashingâ, âRunningâ, âNeeds Changeâ, âCleanâ, or âIdleâ.
I am not sure which pieces need to come together for this. Automation? Scripts? Events? How do I make a new state?
More thoughts.
Hereâs one thing I could do:
If washer turns off, and dryer is already off:
- Set the status (how do I make this status to change in this automation?) to âNeeds Changeâ
- Send slack message
- Wait 60 mins
- Reset state to âIdleâ
If dryer turns off, and washer is already off:
- Set the status to âCleanâ (But somehow only when the washer wasnât running?)
- Send slack message
- Wait 60 mins
- Reset state to âIdleâ
Then what happens when the washer finishes before the dryer? Then we need it to go to âNeeds Changeâ.
I feel like this will end up being like 15 lines of config, but Iâm not sure how to frame this in the language of HA.