Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 102856

Script with multiple conditional actions

$
0
0

Hi,
I’ve searched the forum for solutions to this but haven’t found any.

I have a input text helper that I continously update with different values (based on sensors etc. in HA). The helper is mirrored to a dot matrix display powered via ESPHome. It serves as an information display that shows “crucial” information for the household. I have solved this with a script does the following:

  • Show outside temperature
  • pause for 3 seconds
  • Show weather forecast
  • pause for 3 seconds
  • Show car battery percent
  • pause for 3 seconds
  • Show car battery charging status
  • pause for 3 seconds
  • Show car preheating status
  • pause for 3 seconds
  • …etc
  • Repeat sequence

But, let’s say that I only want to show certain info during certain conditions, for example:

  • Show outside temperature
  • pause for 3 seconds
  • Show weather forecast
  • pause for 3 seconds
  • Show car battery percent
  • pause for 3 seconds

*** Only if car battery is charging:**

  • Show car battery charging status
  • pause for 3 seconds

*** Only if car is preheating:**

  • Show car preheating status

  • pause for 3 seconds

  • …etc

  • Repeat sequence

Is that possible, and in that case how? Maybe there are other ways to get the same result?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 102856

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>