Simple Dehumidifier Automation

Hey, all, hopefull everyone is doing well so far today :slightly_smiling_face: Today im trying to optimize and simplify some of my basic GUI automations, is there a way to simplify these two automations and to create one out of them ?

https://dpaste.org/enZFP#L25

Got solved by someone on Discord, thanks for all the help I got here :slight_smile:

Would love to have that automation if you don’t mind :wink:

Off course :slight_smile:
https://dpaste.org/V7GmY