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

Use MQTT retained value as condition?

$
0
0

@halest wrote:

Hey,
Google wasn’t too helpful, so here’s my question for all of you lovely folks.
As far as I see it right now it is not possible in an automation condition to ask for an MQTT state, something along the lines of (and I’m completely making this up)

condition:
  - condition: template
    value_template: '{{ mqtt("my/topic") > 0 }}'

Am I correct in that assumption? I would guess I’d have to incorporate an input_number into that automation?

Best regards and happy new year
Halest

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95925

Trending Articles



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