I‘m not sure if I use the most efficient and easiest way to implement my thought. Therefore I hope you can help.
I would like to implement the below.
I have a high humidity in Winter in some rooms of my house. To bring it down I have to exchange the air but only if the absolute humidity is outside lower than inside. For that I would like to ask Alexa whether it is a good idea to open the windows😁 This step is not so important. First I have to solve the following issue.
Actually I would use an automation. I have already implemented the and-conditions e.g. absolute humidity outside is lower than inside. I thought the action is a text that means if and-condition is true then the text is „yes“ and if not then „no“. But unfortunately I‘m not able to generate the text😢
Because indentation and spacing are as big a part of YAML as the actual keywords, can you format that in the way that the site FAQ asks. It will very much help us help you. How to help us help you - or How to ask a good question.
Assuming it is actually formatted correctly, the automation you have shared works as follows:
Every 10 minutes it checks your 3 conditions, if they are all true it sets the value of your Input Text Helper to “Ja”.
Unless there is more to the automation (or another automation) that you have not shown, there are no actions when the conditions are not all true, so the Helper’s value will never change to anything else. It will stay “unknown” until it turns to “Ja”, and then it will stay that way forever.
You would likely be better served by combining your required conditions into a Template binary sensor.