Skip to content

Commit

Permalink
replaced DarkSky with PirateWeather. Video to follow
Browse files Browse the repository at this point in the history
  • Loading branch information
ccostan committed Apr 9, 2023
1 parent 792f942 commit ea94c78
Show file tree
Hide file tree
Showing 20 changed files with 628 additions and 81 deletions.
2 changes: 1 addition & 1 deletion config/.HA_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2023.1.4
2023.4.0
2 changes: 1 addition & 1 deletion config/automation/Pool_Deck_lights.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
entity_id: binary_sensor.MCU2_GPIO12
state: 'on'
- condition: numeric_state
entity_id: sensor.dark_sky_temperature
entity_id: sensor.pirateweather_temperature
below: 80

action:
Expand Down
12 changes: 6 additions & 6 deletions config/automation/Speech/High_Wind_Speed_Check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@
mode: single
trigger:
- platform: numeric_state
entity_id: sensor.dark_sky_wind_speed
entity_id: sensor.pirateweather_wind_speed
above: 24
- platform: numeric_state
entity_id: sensor.dark_sky_wind_speed
entity_id: sensor.pirateweather_wind_speed
above: 40
- platform: numeric_state
entity_id: sensor.dark_sky_wind_speed
entity_id: sensor.pirateweather_wind_speed
above: 60

action:
- service: script.notify_engine
data:
title: 'VERY HIGH WINDS:'
value1: >-
{% set windspeed = states.sensor.dark_sky_wind_speed.state | round %}
{% set windspeed = states.sensor.pirateweather_wind_speed.state | round %}
{% if ( windspeed > 25 ) and ( windspeed <= 40 ) %}
HEAVY WINDS!!! Current Wind Speed is : {{windspeed}} mph! Be VERY careful outdoors!
{% elif ( windspeed > 40 ) and ( windspeed <= 60 ) %}
Expand All @@ -38,7 +38,7 @@
- service: script.speech_engine
data:
value1: >
{% set windspeed = states.sensor.dark_sky_wind_speed.state | round %}
{% set windspeed = states.sensor.pirateweather_wind_speed.state | round %}
{% if ( windspeed > 25 ) and ( windspeed <= 40 ) %}
HEAVY WINDS!!! Current Wind Speed is : {{windspeed}} mph! Be VERY careful outdoors!
{% elif ( windspeed > 40 ) and ( windspeed <= 60 ) %}
Expand All @@ -54,7 +54,7 @@
- service: script.tweet_engine_no_image
data:
tweet: >
{% set windspeed = states.sensor.dark_sky_wind_speed.state | round %}
{% set windspeed = states.sensor.pirateweather_wind_speed.state | round %}
{% if ( windspeed > 25 ) and ( windspeed <= 40 ) %}
HEAVY WINDS!!! Current Wind Speed is : {{windspeed}} mph! Be VERY careful outdoors! #Florida #Weather (https://amzn.to/2jQLpVQ)
{% elif ( windspeed > 40 ) and ( windspeed <= 60 ) %}
Expand Down
8 changes: 4 additions & 4 deletions config/automation/dark_rainy_day.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@

trigger:
- platform: state
entity_id: sensor.dark_sky_precip
entity_id: sensor.pirateweather_precip
to: 'rain'
- platform: numeric_state
entity_id: sensor.dark_sky_precip_intensity
entity_id: sensor.pirateweather_precip_intensity
above: 0.2
- platform: numeric_state
entity_id: sensor.blitzortung_lightning_counter
Expand All @@ -31,10 +31,10 @@
- condition: or
conditions:
- condition: numeric_state
entity_id: sensor.dark_sky_cloud_coverage
entity_id: sensor.pirateweather_cloud_coverage
above: 90
- condition: numeric_state
entity_id: sensor.dark_sky_precip_intensity
entity_id: sensor.pirateweather_precip_intensity
above: 0.2
- condition: numeric_state
entity_id: sensor.blitzortung_lightning_counter
Expand Down
2 changes: 1 addition & 1 deletion config/automation/zwave_hallway_door_sensor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
after: sunset
after_offset: '-03:00:00'
- condition: numeric_state
entity_id: sensor.dark_sky_cloud_coverage
entity_id: sensor.pirateweather_cloud_coverage
above: 50

action:
Expand Down
18 changes: 9 additions & 9 deletions config/group/weather.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ Weather:
- climate.upstairs
- sensor.upstairs_thermostat_humidity
- binary_sensor.upstairs_nest_away
- sensor.dark_sky_cloud_coverage
- sensor.dark_sky_minutely_summary
# - sensor.dark_sky_nearest_storm_distance
- sensor.dark_sky_precip_intensity
- sensor.dark_sky_daily_max_precip_intensity
- sensor.dark_sky_wind_speed
- sensor.dark_sky_humidity
- sensor.dark_sky_temperature
- sensor.dark_sky_uv_index
- sensor.pirateweather_cloud_coverage
- sensor.pirateweather_minutely_summary
# - sensor.pirateweather_nearest_storm_distance
- sensor.pirateweather_precip_intensity
- sensor.pirateweather_daily_max_precip_intensity
- sensor.pirateweather_wind_speed
- sensor.pirateweather_humidity
- sensor.pirateweather_temperature
- sensor.pirateweather_uv_index
- sensor.moon
- binary_sensor.iss
- sensor.launch_window
Expand Down
4 changes: 2 additions & 2 deletions config/packages/rachio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ automation:
trigger:
- platform: numeric_state
entity_id:
- sensor.dark_sky_precip_intensity_max
- sensor.dark_sky_precip_intensity
- sensor.pirateweather_precip_intensity_max
- sensor.pirateweather_precip_intensity
above: 0.5
- platform: numeric_state
entity_id: sensor.dark_sky_wind_speed
Expand Down
12 changes: 6 additions & 6 deletions config/script/tweet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,15 @@ tweet_engine_random:
"weather": [
"The #Landscaping lights where on for about {{ states.sensor.landscaping_light_time.attributes.value }} yesterday. (https://youtu.be/FcBVu_yk2iY)",
"I keep the average humidity of the house at {{ states('sensor.downstairs_thermostat_humidity') }} percent. Outside is {{ states('sensor.dark_sky_humidity') }} #Nest (https://github.com/CCOSTAN/Home-AssistantConfig#nest)",
"Outside is {{ states('sensor.dark_sky_temperature') }}. I keep the average inside temperature at {{ states('sensor.downstairs_thermostat_temperature') }}. #Weather (https://github.com/CCOSTAN/Home-AssistantConfig#nest)",
"I know that it will be {{ states('sensor.dark_sky_minutely_summary') }} So I will adjust the Heating/Cooling, irrigation and lighting accordingly. #Nest #Rachio #Hue",
"The current UV index is {{ states('sensor.dark_sky_uv_index') }} and the Moon is {{ states('sensor.moon') }}. #Space"
"I keep the average humidity of the house at {{ states('sensor.downstairs_thermostat_humidity') }} percent. Outside is {{ states('sensor.pirateweather_humidity') }} #Nest (https://github.com/CCOSTAN/Home-AssistantConfig#nest)",
"Outside is {{ states('sensor.pirateweather_temperature') }}. I keep the average inside temperature at {{ states('sensor.downstairs_thermostat_temperature') }}. #Weather (https://github.com/CCOSTAN/Home-AssistantConfig#nest)",
"I know that it will be {{ states('sensor.pirateweather_minutely_summary') }} So I will adjust the Heating/Cooling, irrigation and lighting accordingly. #Nest #Rachio #Hue",
"The current UV index is {{ states('sensor.pirateweather_uv_index') }} and the Moon is {{ states('sensor.moon') }}. #Space"
],
"cloud": [
"Average Cloud Coverage: {{ states('sensor.dark_sky_cloud_coverage') }}%, Average Temp: {{ states('sensor.dark_sky_temperature') }}°F #Solar (https://www.vcloudinfo.com/2018/01/going-green-to-save-some-green-in-2018.html)",
"Unfortunately, Bear Stone has plenty of cloud dependancies. Nimbus and Cumulus to be exact! Average Cloud Coverage: {{ states('sensor.dark_sky_cloud_coverage') }}% "
"Average Cloud Coverage: {{ states('sensor.pirateweather_cloud_coverage') }}%, Average Temp: {{ states('sensor.pirateweather_temperature') }}°F #Solar (https://www.vcloudinfo.com/2018/01/going-green-to-save-some-green-in-2018.html)",
"Unfortunately, Bear Stone has plenty of cloud dependancies. Nimbus and Cumulus to be exact! Average Cloud Coverage: {{ states('sensor.pirateweather_cloud_coverage') }}% "
],
"speedtest": [
Expand Down
42 changes: 21 additions & 21 deletions config/sensor/weather.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
- platform: darksky
api_key: !secret forecast_key
monitored_conditions:
- summary
- precip_type
- precip_intensity
- precip_intensity_max
- temperature
# - dew_point
- wind_speed
# - wind_bearing
- cloud_cover
- humidity
# - nearest_storm_distance
- minutely_summary
# - pressure
# - visibility
# - ozone
- uv_index
- sunrise_time
- sunset_time
# - platform: darksky
# api_key: !secret forecast_key
# monitored_conditions:
# - summary
# - precip_type
# - precip_intensity
# - precip_intensity_max
# - temperature
# # - dew_point
# - wind_speed
# # - wind_bearing
# - cloud_cover
# - humidity
# # - nearest_storm_distance
# - minutely_summary
# # - pressure
# # - visibility
# # - ozone
# - uv_index
# - sunrise_time
# - sunset_time
14 changes: 7 additions & 7 deletions config/templates/speech/briefing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
{%- endmacro -%}

{%- macro outside_weather() -%}
Outside, it is going to be {{ states('sensor.dark_sky_minutely_summary') }}
Outside, it is going to be {{ states('sensor.pirateweather_minutely_summary') }}
{%- endmacro -%}

{%- macro lightning() -%}
Expand Down Expand Up @@ -138,12 +138,12 @@
{%- endmacro -%}

{%- macro uv() -%}
{% if states.sensor.dark_sky_uv_index.state|int(9999)>= 6 and states.sensor.dark_sky_uv_index.state|int(9999)<= 7.9 %}
Today's UV index is {{ states.sensor.dark_sky_uv_index.state }}. You should wear sunscreen if going outside.
{% elif states.sensor.dark_sky_uv_index.state|int(9999)>= 8 and states.sensor.dark_sky_uv_index.state|int(9999)<=10.9 %}
Today's UV index is {{ states.sensor.dark_sky_uv_index.state }}. This is VERY HIGH. Be sure wear sunscreen and re-apply.
{% elif states.sensor.dark_sky_uv_index.state|int(9999)>= 11 %}
Today's UV index is {{ states.sensor.dark_sky_uv_index.state }}. This is EXTREME. You should be very cautious going outside.
{% if states.sensor.pirateweather_uv_index.state|int(9999)>= 6 and states.sensor.pirateweather_uv_index.state|int(9999)<= 7.9 %}
Today's UV index is {{ states.sensor.pirateweather_uv_index.state }}. You should wear sunscreen if going outside.
{% elif states.sensor.pirateweather_uv_index.state|int(9999)>= 8 and states.sensor.pirateweather_uv_index.state|int(9999)<=10.9 %}
Today's UV index is {{ states.sensor.pirateweather_uv_index.state }}. This is VERY HIGH. Be sure wear sunscreen and re-apply.
{% elif states.sensor.pirateweather_uv_index.state|int(9999)>= 11 %}
Today's UV index is {{ states.sensor.pirateweather_uv_index.state }}. This is EXTREME. You should be very cautious going outside.
{% endif %}
{%- endmacro -%}

Expand Down
547 changes: 547 additions & 0 deletions config/www/community/button-card/button-card.js

Large diffs are not rendered by default.

Binary file not shown.
2 changes: 1 addition & 1 deletion config/www/custom_ui/floorplan/alarm.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ svg, svg * {
transform-origin: right;
}

#sensor\.dark_sky_minutely_summary {
#sensor\.pirateweather_minutely_summary {
fill: #231F26 !important;
fill-opacity: 1.0;
}
Expand Down
6 changes: 3 additions & 3 deletions config/www/custom_ui/floorplan/alarm.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions config/www/custom_ui/floorplan/alarm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ rules:

- name: temp_darksky
entities:
- sensor.dark_sky_temperature
- sensor.pirateweather_temperature
text_template: '${entity.state ? Math.ceil(entity.state) + "°": "undefined"}'
class_template: 'return "static-temp";'

- name: temp_round
entities:
- sensor.downstairs_thermostat_humidity
- sensor.upstairs_thermostat_humidity
- sensor.dark_sky_humidity
- sensor.pirateweather_humidity
- sensor.carlojuice_amps
text_template: '${entity.state ? Math.ceil(entity.state) : "undefined"}'
class_template: 'return "static-temp";'
Expand Down Expand Up @@ -240,7 +240,7 @@ rules:

- name: Dark Sky Sensors
entities:
- sensor.dark_sky_minutely_summary
- sensor.pirateweather_minutely_summary
image_template: '
var imageName = "";
Expand Down
6 changes: 3 additions & 3 deletions config/www/custom_ui/floorplan/clock.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions config/www/custom_ui/floorplan/clock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ rules:

- name: temp_darksky
entities:
- sensor.dark_sky_temperature
- sensor.pirateweather_temperature
text_template: '${entity.state ? Math.ceil(entity.state) + "°": "undefined"}'
class_template: 'return "static-temp";'

- name: text_states
entities:
- sensor.dark_sky_minutely_summary
- sensor.pirateweather_minutely_summary
hover_over: false
more_info: false
text_template: '${entity.state ? entity.state : "undefined"}'
Expand Down Expand Up @@ -103,8 +103,8 @@ rules:

- name: Dark Sky Sensors
entities:
- entity: sensor.dark_sky_minutely_summary
element: sensor.dark_sky_minutely_summary_icon
- entity: sensor.pirateweather_minutely_summary
element: sensor.pirateweather_minutely_summary_icon

image_template: '
var imageName = "";
Expand Down
6 changes: 3 additions & 3 deletions config/www/custom_ui/floorplan/clock_config.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions config/www/custom_ui/floorplan/clock_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ rules:

- name: temp_darksky
entities:
- sensor.dark_sky_temperature
- sensor.pirateweather_temperature
text_template: '${entity.state ? Math.ceil(entity.state) + "°": "undefined"}'
class_template: 'return "static-temp";'

- name: text_states
entities:
- sensor.dark_sky_minutely_summary
- sensor.pirateweather_minutely_summary
text_template: '${entity.state ? entity.state : "undefined"}'
class_template: 'return "static-text";'

Expand All @@ -127,8 +127,8 @@ rules:

- name: Dark Sky Sensors
entities:
- entity: sensor.dark_sky_minutely_summary
element: sensor.dark_sky_minutely_summary_icon
- entity: sensor.pirateweather_minutely_summary
element: sensor.pirateweather_minutely_summary_icon

image_template: '
var imageName = "";
Expand Down
4 changes: 2 additions & 2 deletions config/www/custom_ui/floorplan/floorplan_original.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

1 comment on commit ea94c78

@CCOSTAN
Copy link
Owner

@CCOSTAN CCOSTAN commented on ea94c78 Apr 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.