Update Energy Package

This commit is contained in:
2022-09-04 08:09:41 -07:00
parent 86bfdef296
commit 7ede540ae8
2 changed files with 16 additions and 12 deletions

View File

@@ -36,12 +36,14 @@ sensor:
- name: Flex Alert RSS
platform: rest
resource: 'http://content.caiso.com/awe/noticeflexRSS.xml'
value_template: >
value_tempalte: >
{{
(
state_attr('sensor.flex_alert_rss', 'item')
value_json['rss']['channel']['item']
| selectattr('title', 'search', 'NOTICE')
| list
)[0]['title']
}}
json_attributes_path: '$.rss.channel'
json_attributes:
- item

View File

@@ -36,12 +36,14 @@ sensor:
- name: Flex Alert RSS
platform: rest
resource: 'http://content.caiso.com/awe/noticeflexRSS.xml'
value_template: >
value_tempalte: >
{{
(
state_attr('sensor.flex_alert_rss', 'item')
value_json['rss']['channel']['item']
| selectattr('title', 'search', 'NOTICE')
| list
)[0]['title']
}}
json_attributes_path: '$.rss.channel'
json_attributes:
- item