mirror of
https://github.com/GeorgeSG/sarah.git
synced 2025-12-28 20:30:29 +00:00
Replace darksky with pirateweather where possible
This commit is contained in:
@@ -6,25 +6,6 @@ cards:
|
||||
- input_boolean.purifier_turned_on_for_bad_air
|
||||
- binary_sensor.aqi_above_threshold
|
||||
|
||||
- type: custom:mini-graph-card
|
||||
hours_to_show: 168
|
||||
points_per_hour: 0.25
|
||||
# line_width: 2
|
||||
entities:
|
||||
- sensor.dark_sky_cloud_coverage
|
||||
- sensor.dark_sky_uv_index
|
||||
- type: custom:mini-graph-card
|
||||
hours_to_show: 168
|
||||
points_per_hour: 0.25
|
||||
# line_width: 2
|
||||
entities:
|
||||
- sensor.dark_sky_precip_intensity
|
||||
- sensor.dark_sky_precip_probability
|
||||
- type: history-graph
|
||||
hours_to_show: 168
|
||||
entities:
|
||||
- sensor.dark_sky_precip
|
||||
- sensor.dark_sky_precip_probability
|
||||
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
|
||||
@@ -11,7 +11,7 @@ stacked-weather:
|
||||
}
|
||||
cards:
|
||||
- type: custom:simple-weather-card
|
||||
entity: weather.dark_sky
|
||||
entity: weather.pirateweather
|
||||
backdrop: true
|
||||
secondary_info:
|
||||
- humidity
|
||||
@@ -79,5 +79,4 @@ stacked-weather:
|
||||
|
||||
- type: markdown
|
||||
content: >-
|
||||
{% set forecast = states('sensor.dark_sky_hourly_summary') %}
|
||||
It will be {{ forecast[0] | lower }}{{ forecast [1:] }}
|
||||
It will be {{ state_attr('weather.pirateweather', 'forecast')[0]['condition'] }}
|
||||
|
||||
@@ -193,7 +193,7 @@ card:
|
||||
}
|
||||
cards:
|
||||
- type: custom:simple-weather-card
|
||||
entity: weather.dark_sky
|
||||
entity: weather.pirateweather
|
||||
backdrop: true
|
||||
secondary_info:
|
||||
- humidity
|
||||
@@ -261,8 +261,7 @@ card:
|
||||
|
||||
- type: markdown
|
||||
content: >-
|
||||
{% set forecast = states('sensor.dark_sky_hourly_summary') %}
|
||||
It will be {{ forecast[0] | lower }}{{ forecast [1:] }}
|
||||
It will be {{ {{ state_attr('weather.pirateweather', 'forecast')[0]['condition'] }} }}
|
||||
|
||||
- type: custom:decluttering-card
|
||||
template: v3_section_title
|
||||
|
||||
@@ -119,12 +119,12 @@ card:
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
- type: custom:weather-card
|
||||
entity: weather.dark_sky
|
||||
- type: custom:mini-graph-card
|
||||
hours_to_show: 72
|
||||
line_width: 2
|
||||
entities:
|
||||
- sensor.dark_sky_precip_probability
|
||||
- sensor.dark_sky_cloud_coverage
|
||||
entity: weather.pirateweather
|
||||
# - type: custom:mini-graph-card
|
||||
# hours_to_show: 72
|
||||
# line_width: 2
|
||||
# entities:
|
||||
# - sensor.dark_sky_precip_probability
|
||||
# - sensor.dark_sky_cloud_coverage
|
||||
|
||||
- !include ../popup_cards.yaml
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
- type: "custom:weather-card"
|
||||
current: true
|
||||
details: true
|
||||
entity: weather.dark_sky
|
||||
entity: weather.pirateweather
|
||||
forecast: true
|
||||
|
||||
- type: custom:sun-card
|
||||
|
||||
@@ -59,7 +59,7 @@ template:
|
||||
- name: Toshiba AC Climate conditions met
|
||||
state: >
|
||||
{% set temp_matching = states('sensor.multisensor_6_temperature')|float >= states('input_number.toshiba_trigger_temp')|float %}
|
||||
{% set outside_temp_high = states('sensor.dark_sky_apparent_temperature')|float + 2 >= states('input_number.toshiba_trigger_temp')|float %}
|
||||
{% set outside_temp_high = state_attr('weather.pirateweather', 'temperature')|float + 2 >= states('input_number.toshiba_trigger_temp')|float %}
|
||||
{% set someone_home = is_state('binary_sensor.someone_home', 'on') %}
|
||||
{% set ac_off = is_state('climate.toshiba_ac', 'off') %}
|
||||
|
||||
@@ -71,7 +71,7 @@ template:
|
||||
|
||||
state: >
|
||||
{% set temp_matching = states('sensor.multisensor_6_temperature')|float >= states('input_number.toshiba_trigger_temp')|float %}
|
||||
{% set outside_temp_high = states('sensor.dark_sky_apparent_temperature')|float + 2 >= states('input_number.toshiba_trigger_temp')|float %}
|
||||
{% set outside_temp_high = state_attr('weather.pirateweather', 'temperature')|float + 2 >= states('input_number.toshiba_trigger_temp')|float %}
|
||||
{% set someone_home = is_state('binary_sensor.someone_home', 'on') %}
|
||||
{% set bedroom_ready = is_state('group.bedroom_windows', 'off') or is_state('binary_sensor.bedroom_door_contact', 'off') %}
|
||||
{% set kitchen_ready = is_state('binary_sensor.kitchen_window_contact', 'off') or is_state('binary_sensor.kitchen_door', 'off') %}
|
||||
|
||||
@@ -27,9 +27,9 @@ automation:
|
||||
after_offset: "-01:00:00"
|
||||
- condition: sun
|
||||
before: sunrise
|
||||
- condition: numeric_state
|
||||
entity_id: sensor.dark_sky_cloud_coverage
|
||||
above: 80
|
||||
# - condition: numeric_state
|
||||
# entity_id: sensor.dark_sky_cloud_coverage
|
||||
# above: 80
|
||||
- service: light.turn_on
|
||||
entity_id: light.kitchen
|
||||
data:
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
>-
|
||||
|
||||
Outside, it's {{ states('sensor.dark_sky_temperature') | round }} degrees. It's going to be {{ states('sensor.dark_sky_hourly_summary') }} Expect {{ states('sensor.dark_sky_daily_summary') }}
|
||||
Outside, it's {{ state_attr('weather.pirateweather', 'temperature') | round }} degrees.
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
". It's getting chilly!",
|
||||
] -%}
|
||||
|
||||
{%- if (states('sensor.dark_sky_temperature') | int) < (states('sensor.bedroom_weather_temperature') | int) -%}
|
||||
{%- if (state_attr('weather.pirateweather', 'temperature') | int) < (states('sensor.bedroom_weather_temperature') | int) -%}
|
||||
|
||||
{%- if is_state('binary_sensor.bedroom_right_window_contact', 'off')
|
||||
and (states('sensor.bedroom_weather_temperature') | int) > 22 -%}
|
||||
|
||||
Reference in New Issue
Block a user