Update Energy Package
This commit is contained in:
@@ -36,12 +36,14 @@ sensor:
|
|||||||
- name: Flex Alert RSS
|
- name: Flex Alert RSS
|
||||||
platform: rest
|
platform: rest
|
||||||
resource: 'http://content.caiso.com/awe/noticeflexRSS.xml'
|
resource: 'http://content.caiso.com/awe/noticeflexRSS.xml'
|
||||||
value_template: >
|
value_tempalte: >
|
||||||
(
|
{{
|
||||||
state_attr('sensor.flex_alert_rss', 'item')
|
(
|
||||||
| selectattr('title', 'search', 'NOTICE')
|
value_json['rss']['channel']['item']
|
||||||
| list
|
| selectattr('title', 'search', 'NOTICE')
|
||||||
)[0]['title']
|
| list
|
||||||
|
)[0]['title']
|
||||||
|
}}
|
||||||
json_attributes_path: '$.rss.channel'
|
json_attributes_path: '$.rss.channel'
|
||||||
json_attributes:
|
json_attributes:
|
||||||
- item
|
- item
|
||||||
|
|||||||
@@ -36,12 +36,14 @@ sensor:
|
|||||||
- name: Flex Alert RSS
|
- name: Flex Alert RSS
|
||||||
platform: rest
|
platform: rest
|
||||||
resource: 'http://content.caiso.com/awe/noticeflexRSS.xml'
|
resource: 'http://content.caiso.com/awe/noticeflexRSS.xml'
|
||||||
value_template: >
|
value_tempalte: >
|
||||||
(
|
{{
|
||||||
state_attr('sensor.flex_alert_rss', 'item')
|
(
|
||||||
| selectattr('title', 'search', 'NOTICE')
|
value_json['rss']['channel']['item']
|
||||||
| list
|
| selectattr('title', 'search', 'NOTICE')
|
||||||
)[0]['title']
|
| list
|
||||||
|
)[0]['title']
|
||||||
|
}}
|
||||||
json_attributes_path: '$.rss.channel'
|
json_attributes_path: '$.rss.channel'
|
||||||
json_attributes:
|
json_attributes:
|
||||||
- item
|
- item
|
||||||
|
|||||||
Reference in New Issue
Block a user