diff --git a/packages/version.yaml b/packages/version.yaml deleted file mode 100644 index 8c5d554..0000000 --- a/packages/version.yaml +++ /dev/null @@ -1,54 +0,0 @@ ---- -sensor: - - platform: version - source: docker - - platform: version - source: local - ################################################################# - ## Available Unifi Version - ################################################################# - # https://community.home-assistant.io/t/sensor-for-latest-docker-image-versions/4874 - - platform: command_line - name: Unifi Controller Latest Docker - # yamllint disable-line rule:line-length - command: curl -s -L https://registry.hub.docker.com/v2/repositories/jacobalberty/unifi/tags/ | grep -Eo '"name":\s"[0-9]*[.]+[0-9]*[.]+[0-9]*"' | head -1 | sed -e "s/\"name\":\s\"/${replace}/g" | sed -e "s/\"/${replace}/g" - scan_interval: 28800 - -automation: - ################################################################# - ## New Unifi Controller Version - ################################################################# - - id: ed9c5ff8-b4f2-4763-a347-57ad487dd12b - alias: 'Notify of new Unifi Controller Version' - initial_state: true - trigger: - - platform: state - entity_id: sensor.unifi_controller_latest_docker - action: - - service: notify.kevin - data: - message: "Neue Unifi Controller Version verfügbar: {{states.sensor.unifi_controller_latest_docker.state}}" - condition: - condition: template - value_template: > - {{ trigger.to_state.state not in [trigger.from_state.state, 'unavailable'] }} - ################################################################# - ## New Home Assistant Version - ################################################################# - - id: a8a91979-2f53-48f2-88fe-935a2340558e - alias: 'Notify of new Homeassistant Version' - initial_state: true - trigger: - - platform: state - entity_id: sensor.latest_version - action: - - service: notify.kevin - data: - message: "Neue Homeassistant Version verfügbar: {{states.sensor.latest_version.state}}" - condition: - - condition: template - value_template: > - {{ trigger.to_state.state not in [trigger.from_state.state, 'unavailable', 'unknown'] }} - - condition: template - value_template: > - {{ trigger.from_state.state not in ['unavailable', 'unknown'] }}