Pirateweather -> Accuweather for current weather
This commit is contained in:
parent
3933d3b42a
commit
ff7a978c6b
@ -14,7 +14,7 @@
|
|||||||
ulm_card_generic_swap_name: inside
|
ulm_card_generic_swap_name: inside
|
||||||
- type: 'custom:button-card'
|
- type: 'custom:button-card'
|
||||||
template: card_generic_swap
|
template: card_generic_swap
|
||||||
entity: sensor.temperature_outside_pirateweather
|
entity: sensor.temperature_outside
|
||||||
variables:
|
variables:
|
||||||
ulm_card_generic_swap_name: outside
|
ulm_card_generic_swap_name: outside
|
||||||
- type: 'custom:button-card'
|
- type: 'custom:button-card'
|
||||||
@ -34,7 +34,7 @@
|
|||||||
group_by:
|
group_by:
|
||||||
func: avg
|
func: avg
|
||||||
duration: 30min
|
duration: 30min
|
||||||
- entity: sensor.temperature_outside_pirateweather
|
- entity: sensor.temperature_outside
|
||||||
type: column
|
type: column
|
||||||
name: Outside
|
name: Outside
|
||||||
group_by:
|
group_by:
|
||||||
|
@ -3,10 +3,6 @@
|
|||||||
# name: Climate
|
# name: Climate
|
||||||
|
|
||||||
|
|
||||||
#- type: custom:simple-weather-card
|
|
||||||
# entity: weather.pirateweather
|
|
||||||
|
|
||||||
|
|
||||||
- type: custom:apexcharts-card
|
- type: custom:apexcharts-card
|
||||||
graph_span: 6h
|
graph_span: 6h
|
||||||
header:
|
header:
|
||||||
@ -17,13 +13,13 @@
|
|||||||
name: Inside
|
name: Inside
|
||||||
group_by:
|
group_by:
|
||||||
func: avg
|
func: avg
|
||||||
duration: 30min
|
duration: 15min
|
||||||
- entity: sensor.temperature_outside_pirateweather
|
- entity: sensor.temperature_outside
|
||||||
type: column
|
type: column
|
||||||
name: Outside
|
name: Outside
|
||||||
group_by:
|
group_by:
|
||||||
func: avg
|
func: avg
|
||||||
duration: 30min
|
duration: 15min
|
||||||
|
|
||||||
|
|
||||||
- type: "horizontal-stack"
|
- type: "horizontal-stack"
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
entity: input_boolean.welcome_collapse
|
entity: input_boolean.welcome_collapse
|
||||||
variables:
|
variables:
|
||||||
ulm_card_welcome_scenes_collapse: input_boolean.welcome_collapse
|
ulm_card_welcome_scenes_collapse: input_boolean.welcome_collapse
|
||||||
ulm_weather: weather.pirateweather
|
ulm_weather: weather.home
|
||||||
entity_1:
|
entity_1:
|
||||||
entity_id: scene.light_adaptive
|
entity_id: scene.light_adaptive
|
||||||
icon: "mdi:theme-light-dark"
|
icon: "mdi:theme-light-dark"
|
||||||
|
116
packages/button/automations.yaml
Normal file
116
packages/button/automations.yaml
Normal file
@ -0,0 +1,116 @@
|
|||||||
|
automation:
|
||||||
|
- alias: button_on
|
||||||
|
trigger:
|
||||||
|
- platform: device
|
||||||
|
domain: mqtt
|
||||||
|
device_id: 121e4230e41feb19254fa92ed5335760
|
||||||
|
type: action
|
||||||
|
subtype: 'on'
|
||||||
|
discovery_id: 0x2c1165fffebebf6d action_on
|
||||||
|
- platform: device
|
||||||
|
domain: mqtt
|
||||||
|
device_id: 4f9d195bf907da59e1461a5d2404f606
|
||||||
|
type: action
|
||||||
|
subtype: "on"
|
||||||
|
discovery_id: 0x0c4314fffee0bb44 action_on
|
||||||
|
- platform: device
|
||||||
|
domain: mqtt
|
||||||
|
device_id: 5e67efdee83ccceaac84046dfc6c735e
|
||||||
|
type: action
|
||||||
|
subtype: "on"
|
||||||
|
discovery_id: 0x0c4314fffef68790 action_on
|
||||||
|
action:
|
||||||
|
- service: scene.turn_on
|
||||||
|
target:
|
||||||
|
entity_id: scene.light_adaptive
|
||||||
|
mode: single
|
||||||
|
|
||||||
|
- alias: button_off
|
||||||
|
trigger:
|
||||||
|
- platform: device
|
||||||
|
domain: mqtt
|
||||||
|
device_id: 121e4230e41feb19254fa92ed5335760
|
||||||
|
type: action
|
||||||
|
subtype: "on"
|
||||||
|
discovery_id: 0x2c1165fffebebf6d action_on
|
||||||
|
- platform: device
|
||||||
|
domain: mqtt
|
||||||
|
device_id: 4f9d195bf907da59e1461a5d2404f606
|
||||||
|
type: action
|
||||||
|
subtype: "on"
|
||||||
|
discovery_id: 0x0c4314fffee0bb44 action_on
|
||||||
|
- platform: device
|
||||||
|
domain: mqtt
|
||||||
|
device_id: 5e67efdee83ccceaac84046dfc6c735e
|
||||||
|
type: action
|
||||||
|
subtype: "on"
|
||||||
|
discovery_id: 0x0c4314fffef68790 action_on
|
||||||
|
action:
|
||||||
|
- service: script.light_store_off
|
||||||
|
mode: single
|
||||||
|
|
||||||
|
- alias: button_ceiling_on
|
||||||
|
trigger:
|
||||||
|
- platform: device
|
||||||
|
domain: mqtt
|
||||||
|
device_id: 4f9d195bf907da59e1461a5d2404f606
|
||||||
|
type: action
|
||||||
|
subtype: arrow_left_click
|
||||||
|
discovery_id: 0x0c4314fffee0bb44 action_arrow_left_click
|
||||||
|
- platform: device
|
||||||
|
domain: mqtt
|
||||||
|
device_id: 5e67efdee83ccceaac84046dfc6c735e
|
||||||
|
type: action
|
||||||
|
subtype: arrow_left_click
|
||||||
|
discovery_id: 0x0c4314fffef68790 action_arrow_left_click
|
||||||
|
action:
|
||||||
|
- service: light.toggle
|
||||||
|
target:
|
||||||
|
entity_id: light.ceiling
|
||||||
|
mode: single
|
||||||
|
|
||||||
|
- alias: button_ceiling_bed_on
|
||||||
|
trigger:
|
||||||
|
- platform: device
|
||||||
|
domain: mqtt
|
||||||
|
device_id: 4f9d195bf907da59e1461a5d2404f606
|
||||||
|
type: action
|
||||||
|
subtype: arrow_right_click
|
||||||
|
discovery_id: 0x0c4314fffee0bb44 action_arrow_right_click
|
||||||
|
- platform: device
|
||||||
|
domain: mqtt
|
||||||
|
device_id: 5e67efdee83ccceaac84046dfc6c735e
|
||||||
|
type: action
|
||||||
|
subtype: arrow_right_click
|
||||||
|
discovery_id: 0x0c4314fffef68790 action_arrow_right_click
|
||||||
|
action:
|
||||||
|
- service: light.toggle
|
||||||
|
target:
|
||||||
|
device_id: 2f01ed8d8c56ffea9ab769ba3cf527d9
|
||||||
|
mode: single
|
||||||
|
|
||||||
|
- alias: button_sleep
|
||||||
|
trigger:
|
||||||
|
- platform: device
|
||||||
|
domain: mqtt
|
||||||
|
device_id: 121e4230e41feb19254fa92ed5335760
|
||||||
|
type: action
|
||||||
|
subtype: "off"
|
||||||
|
discovery_id: 0x2c1165fffebebf6d action_off
|
||||||
|
- platform: device
|
||||||
|
domain: mqtt
|
||||||
|
device_id: 4f9d195bf907da59e1461a5d2404f606
|
||||||
|
type: action
|
||||||
|
subtype: "off"
|
||||||
|
discovery_id: 0x0c4314fffee0bb44 action_off
|
||||||
|
- platform: device
|
||||||
|
domain: mqtt
|
||||||
|
device_id: 5e67efdee83ccceaac84046dfc6c735e
|
||||||
|
type: action
|
||||||
|
subtype: "off"
|
||||||
|
discovery_id: 0x0c4314fffef68790 action_off
|
||||||
|
action:
|
||||||
|
- service: switch.toggle
|
||||||
|
target:
|
||||||
|
entity_id: switch.adaptive_lighting_sleep_mode_default
|
||||||
|
mode: single
|
13
packages/button/dimming.yaml
Normal file
13
packages/button/dimming.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# script:
|
||||||
|
# indirect_brightness_increase:
|
||||||
|
# sequence:
|
||||||
|
# - service: light.turn_on
|
||||||
|
# entity_id: light.indirect
|
||||||
|
# data_template:
|
||||||
|
# brightness: >
|
||||||
|
# {% set incr = 10 %}
|
||||||
|
# {% set current = (state_attr('light.indirect', 'brightness') | int) %}
|
||||||
|
# {% set new = current | int + incr %}
|
||||||
|
# {% if new > 255 %} 255
|
||||||
|
# {% else %} {{ new_brightness }}
|
||||||
|
# {% endif %}
|
@ -6,6 +6,7 @@ automation:
|
|||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: sensor.climate_temp_recommendation
|
entity_id: sensor.climate_temp_recommendation
|
||||||
|
from: 'open window'
|
||||||
to: 'close window'
|
to: 'close window'
|
||||||
action:
|
action:
|
||||||
- service: notify.notify
|
- service: notify.notify
|
||||||
@ -15,6 +16,7 @@ automation:
|
|||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: sensor.climate_temp_recommendation
|
entity_id: sensor.climate_temp_recommendation
|
||||||
|
from: 'close window'
|
||||||
to: 'open window'
|
to: 'open window'
|
||||||
action:
|
action:
|
||||||
- service: notify.notify
|
- service: notify.notify
|
||||||
|
@ -103,7 +103,7 @@ sensor:
|
|||||||
{% set max = states("sensor.climate_temp_max")|float %}
|
{% set max = states("sensor.climate_temp_max")|float %}
|
||||||
{% set target = states("sensor.climate_temp")|float %}
|
{% set target = states("sensor.climate_temp")|float %}
|
||||||
{% set temp_inside = states("sensor.temperature_kai_temperature")|float %}
|
{% set temp_inside = states("sensor.temperature_kai_temperature")|float %}
|
||||||
{% set temp_outside = states("sensor.temperature_outside_pirateweather")|float %}
|
{% set temp_outside = states("sensor.temperature_outside")|float %}
|
||||||
{% set inside_max = temp_inside + states("input_number.climate_temp_accuracy")|float %}
|
{% set inside_max = temp_inside + states("input_number.climate_temp_accuracy")|float %}
|
||||||
{% set accuracy = states("input_number.climate_temp_accuracy") |float %}
|
{% set accuracy = states("input_number.climate_temp_accuracy") |float %}
|
||||||
{% if temp_inside >= target and temp_inside >= (temp_outside - accuracy) %}
|
{% if temp_inside >= target and temp_inside >= (temp_outside - accuracy) %}
|
||||||
|
@ -19,28 +19,28 @@ yeelight:
|
|||||||
10.10.10.82:
|
10.10.10.82:
|
||||||
name: ceiling1
|
name: ceiling1
|
||||||
save_on_change: False
|
save_on_change: False
|
||||||
transition: 1500
|
transition: 1000
|
||||||
10.10.10.83:
|
10.10.10.83:
|
||||||
name: ceiling2
|
name: ceiling2
|
||||||
save_on_change: False
|
save_on_change: False
|
||||||
transition: 1500
|
transition: 1000
|
||||||
10.10.10.80:
|
10.10.10.80:
|
||||||
name: ceiling3
|
name: ceiling3
|
||||||
save_on_change: False
|
save_on_change: False
|
||||||
transition: 1500
|
transition: 1000
|
||||||
10.10.10.81:
|
10.10.10.81:
|
||||||
name: bed_ceiling
|
name: bed_ceiling
|
||||||
save_on_change: False
|
save_on_change: False
|
||||||
transition: 1500
|
transition: 1000
|
||||||
10.10.10.84:
|
10.10.10.84:
|
||||||
name: bed
|
name: bed
|
||||||
save_on_change: False
|
save_on_change: False
|
||||||
transition: 1500
|
transition: 1000
|
||||||
model: strip1
|
model: strip1
|
||||||
10.10.10.85:
|
10.10.10.85:
|
||||||
name: desk
|
name: desk
|
||||||
save_on_change: False
|
save_on_change: False
|
||||||
transition: 1500
|
transition: 1000
|
||||||
model: strip1
|
model: strip1
|
||||||
|
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ sensor:
|
|||||||
- platform: template
|
- platform: template
|
||||||
#api_key: !secret pirateweather
|
#api_key: !secret pirateweather
|
||||||
sensors:
|
sensors:
|
||||||
temperature_outside_pirateweather:
|
temperature_outside:
|
||||||
value_template: '{{ states.weather.pirateweather.attributes.temperature }}'
|
value_template: '{{ states.weather.home.attributes.temperature }}'
|
||||||
friendly_name: 'Outside Temperature'
|
friendly_name: 'Outside Temperature'
|
||||||
unit_of_measurement: '°C'
|
unit_of_measurement: '°C'
|
Reference in New Issue
Block a user