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

Compare debian version

$
0
0

@weado wrote:

Hello,

I have an automation, where I compare the debian version on my host and on the internet. If the version is different, I want to notify me.
It’s not difficult, but my automation doesn’t work. My debian version isn’t the same version with internet, but it’s never notify.
This is my automation :

- alias: Compare Debian Version
  initial_state: true
  trigger:
    platform: time
    at: "03:00:00"
  condition:
    condition: template
    value_template: "{{ states('sensor.current_debian_version.state') != states('sensor.installed_debian_version.state') }}"
  action:
    service: persistent_notification.create
    data:
      title: "Debian Version"
      message: "Please upgrade your Debian Version"

When I put my “value_template” in the template service in HA, the result is “True”.

Thank you

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 96121

Trending Articles



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