Leaving everything below for reference, but this solution is flawed. Any time Wink make an update element are added to the page breaking the counts. So @fabaff suggested using the feedreader component. The below config will send a notification of the update’s title.
Setup the feed.
feedreader:
urls:
- http://status.winkapp.com/history.atom
And the automation
- alias: wink feed
trigger:
- platform: event
event_type: feedreader
action:
service: notify.notify
data_template:
message: "{{ trigger.event.data.title }}"
I also believe that trigger.event.data.content can be used to get the details of the feed update.
Everything below is here for reference, but doesn’t work correctly.
There have been Home-Assistant issues opened in the past for issue that were actually a result of Wink API issues. These sensors parse the http://status.winkapp.com page and will provide users with an easy way to check/get notify of Wink API problems. @fabaff Thanks for the work on the new scrape platform!
Below are all of the availble API statuses. Chances are you won’t want/need all of them. To get the status of all systems, use the first sensor. This will report “All Systems Operational” if everything is working.
If you would like more specifc statuses review the other availble sensors, The wink.com sensor will not indicate any issues with devices, and is only reporting on the status of the end user wink.com public site.
As far as I can tell there are 5 possible statuses for the sensors (other than the overall status sensor) those statuses are listed below.
Operational
Degraded Performance
Partial Outage
Major Outage
Maintenance
At the bottom of this post I have also included an automation example for sending a notification based on the status of the wink core api.
- platform: scrape
resource: http://status.winkapp.com/
name: Overall Wink Status
select: "span:nth-of-type(5)"
- platform: scrape
resource: http://status.winkapp.com/
name: Wink.com
select: "span:nth-of-type(9)"
- platform: scrape
resource: http://status.winkapp.com/
name: Wink core API
select: "span:nth-of-type(13)"
- platform: scrape
resource: http://status.winkapp.com/
name: Wink hub API
select: "span:nth-of-type(16)"
- platform: scrape
resource: http://status.winkapp.com/
name: Nest integration
select: "span:nth-of-type(19)"
- platform: scrape
resource: http://status.winkapp.com/
name: TCP integration
select: "span:nth-of-type(22)"
- platform: scrape
resource: http://status.winkapp.com/
name: Honeywell integration
select: "span:nth-of-type(25)"
- platform: scrape
resource: http://status.winkapp.com/
name: Chamberlain MyQ integration
select: "span:nth-of-type(28)"
- platform: scrape
resource: http://status.winkapp.com/
name: Sensi integration
select: "span:nth-of-type(31)"
- platform: scrape
resource: http://status.winkapp.com/
name: Echo integration
select: "span:nth-of-type(34)"
Automation
- alias: wink troubles
trigger:
platform: state
entity_id: sensor.wink_core_api
from: "Operational"
action:
service: notify.notify
data_template:
message: >
Wink core API {{ states.sensor.wink_core_api.state }}.