Skip to content

Commit

Permalink
Merge pull request #56 from jquatier/patch-2
Browse files Browse the repository at this point in the history
Fix for auto firmware upgrades - sensor name
  • Loading branch information
aderusha authored Jun 10, 2019
2 parents c08d2f9 + e7b51ca commit 1d9bc88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ automation:
at: '3:00:00'
condition:
- condition: template
value_template: '{{ states.sensor.plate01_status.attributes.updateESPAvailable == true }}'
value_template: '{{ states.sensor.plate01_status.attributes.updateEspAvailable == true }}'
- condition: state
entity_id: 'binary_sensor.plate01_connected'
state: 'on'
action:
- service: mqtt.publish
data_template:
topic: 'hasp/plate01/command/espupdate'
payload: ''
payload: ''
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ binary_sensor:

sensor:
- platform: mqtt
name: plate01 Sensor
name: plate01 Status
state_topic: "hasp/plate01/status"
availability_topic: "hasp/plate01/status"
payload_available: "ON"
Expand Down Expand Up @@ -217,4 +217,4 @@ automation:
{%- for item in states.automation if ((item.entity_id | lower).startswith('automation.hasp_plate01_')) -%}
{{ item.entity_id }}
{% if not loop.last %}, {% endif %}
{%- endfor -%}
{%- endfor -%}

0 comments on commit 1d9bc88

Please sign in to comment.