diff --git a/Untitled.md b/Untitled.md deleted file mode 100644 index e69de29..0000000 diff --git a/ha weather warning.md b/ha weather warning.md new file mode 100644 index 0000000..e4e49cc --- /dev/null +++ b/ha weather warning.md @@ -0,0 +1,62 @@ +``` +type: entities +title: Edmonton Alerts +entities: + - type: conditional + conditions: + - entity: sensor.edmonton_warnings + state: "1" + row: + entity: sensor.edmonton_warnings + type: attribute + name: " " + secondary_info: last-changed + attribute: alert_1 + icon: mdi:lightning-bolt + tap_action: + action: url + url_path: https://weather.gc.ca/warnings/report_e.html?ab33= + - type: conditional + conditions: + - entity: sensor.edmonton_watches + state: "1" + row: + entity: sensor.edmonton_watches + type: attribute + attribute: alert_1 + icon: mdi:lightning-bolt + name: " " + secondary_info: last-changed + tap_action: + action: url + url_path: https://weather.gc.ca/warnings/report_e.html?ab33= + - type: conditional + conditions: + - entity: sensor.edmonton_watches + state: "0" + - entity: sensor.edmonton_warnings + state: "0" + - entity: sensor.edmonton_statements + state: "0" + row: + type: attribute + entity: input_text.no_alerts + attribute: text1 + icon: none + name: No alerts + - type: conditional + conditions: + - entity: sensor.edmonton_statements + state: "1" + row: + type: attribute + entity: sensor.edmonton_statements + attribute: alert_1 + icon: mdi:cloud-alert + name: " " + secondary_info: last-changed + tap_action: + action: url + url_path: https://weather.gc.ca/warnings/report_e.html?ab33= + +``` \ No newline at end of file