Browse Source

Upgraded to 0.115 and trying out Attribute conditions.

pull/891/head
ccostan 4 months ago
parent
commit
cdc1a826b5
7 changed files with 23 additions and 10 deletions
  1. 1
      .gitignore
  2. 2
      config/.HA_VERSION
  3. BIN
      config/image/c5021a9e5893b88a0d8588fa168d0a0b/512x512
  4. BIN
      config/image/c5021a9e5893b88a0d8588fa168d0a0b/original
  5. 30
      config/packages/neato.yaml
  6. BIN
      config/www/custom_ui/floorplan/images/branding/att_speedtest.png
  7. BIN
      config/www/custom_ui/floorplan/images/branding/solar_readings.png

1
.gitignore

@ -27,6 +27,7 @@ __pycache__
hacs
alexa_media
custom_components
image
tts
secrets.yaml
secrets

2
config/.HA_VERSION

@ -1 +1 @@
0.114.4
0.115.0

BIN
config/image/c5021a9e5893b88a0d8588fa168d0a0b/512x512

Before After
Width: 512  |  Height: 512  |  Size: 24 KiB

BIN
config/image/c5021a9e5893b88a0d8588fa168d0a0b/original

Before After
Width: 956  |  Height: 956  |  Size: 61 KiB

30
config/packages/neato.yaml

@ -10,22 +10,34 @@
automation:
- alias: 'Vacuum -Tweet'
id: 2346efcd-e8a8-4e86-b5b6-43e54a72a95f
mode: single
trigger:
- platform: state
entity_id: vacuum.carlo_neato
to: 'cleaning'
condition:
- condition: template
value_template: "{{ states.vacuum.carlo_neato.attributes.battery_level |int < 20 }}"
- condition: template
value_template: >
{%- if states.automation.vacuum_tweet.attributes.last_triggered -%}
{{ (as_timestamp(now()) - as_timestamp(states.automation.vacuum_tweet.attributes.last_triggered)) > 15000 }}
{%- else -%}
true
{%- endif -%}
- condition: numeric_state
entity_id: vacuum.carlo_neato
attribute: battery_level
below: 20
- condition: numeric_state
entity_id: automation.vacuum_tweet
attribute: last_triggered
above: 15000
# - condition: template
# value_template: "{{ states.vacuum.carlo_neato.attributes.battery_level |int < 20 }}"
# - condition: template
# value_template: >
# {%- if states.automation.vacuum_tweet.attributes.last_triggered -%}
# {{ (as_timestamp(now()) - as_timestamp(states.automation.vacuum_tweet.attributes.last_triggered)) > 15000 }}
# {%- else -%}
# true
# {%- endif -%}
action:
- service: script.tweet_engine_image

BIN
config/www/custom_ui/floorplan/images/branding/att_speedtest.png

Before After
Width: 800  |  Height: 400  |  Size: 38 KiB Width: 800  |  Height: 400  |  Size: 37 KiB

BIN
config/www/custom_ui/floorplan/images/branding/solar_readings.png

Before After
Width: 1920  |  Height: 750  |  Size: 185 KiB Width: 1920  |  Height: 750  |  Size: 188 KiB
Loading…
Cancel
Save