Pirateweather -> Accuweather for current weather
This commit is contained in:
parent
3933d3b42a
commit
ff7a978c6b
@ -14,7 +14,7 @@
|
||||
ulm_card_generic_swap_name: inside
|
||||
- type: 'custom:button-card'
|
||||
template: card_generic_swap
|
||||
entity: sensor.temperature_outside_pirateweather
|
||||
entity: sensor.temperature_outside
|
||||
variables:
|
||||
ulm_card_generic_swap_name: outside
|
||||
- type: 'custom:button-card'
|
||||
@ -34,7 +34,7 @@
|
||||
group_by:
|
||||
func: avg
|
||||
duration: 30min
|
||||
- entity: sensor.temperature_outside_pirateweather
|
||||
- entity: sensor.temperature_outside
|
||||
type: column
|
||||
name: Outside
|
||||
group_by:
|
||||
|
@ -3,10 +3,6 @@
|
||||
# name: Climate
|
||||
|
||||
|
||||
#- type: custom:simple-weather-card
|
||||
# entity: weather.pirateweather
|
||||
|
||||
|
||||
- type: custom:apexcharts-card
|
||||
graph_span: 6h
|
||||
header:
|
||||
@ -17,13 +13,13 @@
|
||||
name: Inside
|
||||
group_by:
|
||||
func: avg
|
||||
duration: 30min
|
||||
- entity: sensor.temperature_outside_pirateweather
|
||||
duration: 15min
|
||||
- entity: sensor.temperature_outside
|
||||
type: column
|
||||
name: Outside
|
||||
group_by:
|
||||
func: avg
|
||||
duration: 30min
|
||||
duration: 15min
|
||||
|
||||
|
||||
- type: "horizontal-stack"
|
||||
|
@ -9,7 +9,7 @@
|
||||
entity: input_boolean.welcome_collapse
|
||||
variables:
|
||||
ulm_card_welcome_scenes_collapse: input_boolean.welcome_collapse
|
||||
ulm_weather: weather.pirateweather
|
||||
ulm_weather: weather.home
|
||||
entity_1:
|
||||
entity_id: scene.light_adaptive
|
||||
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:
|
||||
- platform: state
|
||||
entity_id: sensor.climate_temp_recommendation
|
||||
from: 'open window'
|
||||
to: 'close window'
|
||||
action:
|
||||
- service: notify.notify
|
||||
@ -15,6 +16,7 @@ automation:
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: sensor.climate_temp_recommendation
|
||||
from: 'close window'
|
||||
to: 'open window'
|
||||
action:
|
||||
- service: notify.notify
|
||||
|
@ -103,7 +103,7 @@ sensor:
|
||||
{% set max = states("sensor.climate_temp_max")|float %}
|
||||
{% set target = states("sensor.climate_temp")|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 accuracy = states("input_number.climate_temp_accuracy") |float %}
|
||||
{% if temp_inside >= target and temp_inside >= (temp_outside - accuracy) %}
|
||||
|
@ -19,28 +19,28 @@ yeelight:
|
||||
10.10.10.82:
|
||||
name: ceiling1
|
||||
save_on_change: False
|
||||
transition: 1500
|
||||
transition: 1000
|
||||
10.10.10.83:
|
||||
name: ceiling2
|
||||
save_on_change: False
|
||||
transition: 1500
|
||||
transition: 1000
|
||||
10.10.10.80:
|
||||
name: ceiling3
|
||||
save_on_change: False
|
||||
transition: 1500
|
||||
transition: 1000
|
||||
10.10.10.81:
|
||||
name: bed_ceiling
|
||||
save_on_change: False
|
||||
transition: 1500
|
||||
transition: 1000
|
||||
10.10.10.84:
|
||||
name: bed
|
||||
save_on_change: False
|
||||
transition: 1500
|
||||
transition: 1000
|
||||
model: strip1
|
||||
10.10.10.85:
|
||||
name: desk
|
||||
save_on_change: False
|
||||
transition: 1500
|
||||
transition: 1000
|
||||
model: strip1
|
||||
|
||||
|
||||
|
@ -18,7 +18,7 @@ sensor:
|
||||
- platform: template
|
||||
#api_key: !secret pirateweather
|
||||
sensors:
|
||||
temperature_outside_pirateweather:
|
||||
value_template: '{{ states.weather.pirateweather.attributes.temperature }}'
|
||||
temperature_outside:
|
||||
value_template: '{{ states.weather.home.attributes.temperature }}'
|
||||
friendly_name: 'Outside Temperature'
|
||||
unit_of_measurement: '°C'
|
Reference in New Issue
Block a user