Kotiautomaatio setit

Awesome HA

https://github.com/frenck/awesome-home-assistant

Public Configurations

https://github.com/frenck/awesome-home-assistant#public-configurations

HACS:

"Unofficial add-on manager"
https://hacs.xyz/
http://homeassistant.local:8123/hacs/entry

Install RTFM:
https://hacs.xyz/docs/setup/prerequisites
https://hacs.xyz/docs/setup/download

Addons:

Nordpool

http://homeassistant.local:8123/hacs/integrations
Click bottom-right "Explore"
Search for Nordpool
http://homeassistant.local:8123/hacs/repository/201805130

Apexcharts-card

http://homeassistant.local:8123/hacs/frontend
http://homeassistant.local:8123/hacs/integrations
Click bottom-right "Explore"
Search for Apexcharts-card
http://homeassistant.local:8123/hacs/repository/331701152

blitzortung

http://homeassistant.local:8123/hacs/integrations
Click bottom-right "Explore"
Search for Blitzortung
http://homeassistant.local:8123/hacs/repository/272094506

Automaatiot

blitzortung pushit puhelimiin, HA ei tarvitse olla julkiverkossa tai VPN. Menee Applen/Android natiivi tavalla.

alias: Lightning Notification
description: ""
trigger:
  - platform: state
    entity_id: sensor.blitzortung_lightning_counter
condition:
  - condition: state
    entity_id: group.family
    state: home
  - condition: numeric_state
    entity_id: sensor.blitzortung_lightning_counter
    above: 0
  - condition: state
    entity_id: input_boolean.snooze_lightning
    state: "off"
action:
  - service: notify.mobile_app_trash
    data:
      message: >-
        Lightning has been detected within        
        {{(states('sensor.blitzortung_lightning_distance')) | round (1,    
        'floor')}} km's of home. 
  - delay:
      minutes: 60
mode: single

HASSIO

"Official add-on-manager"
http://homeassistant.local:8123/hassio/dashboard

Studio Code Server - VS Code Server in-browser, no need for sFTP or dirty tricks.

  • Start on boot
  • Auto update
  • Show in sidebar

Dashboard

Nordpool päivähinta chartit HA-foorumeilta

type: custom:apexcharts-card
now:
  show: true
  label: NU
graph_span: 48h
apex_config:
  annotations:
    position: back
    yaxis:
      - 'y': 0.1987
        strokeDashArray: 0
        borderColor: green
        borderWidth: 0
  chart:
    height: 300px
  legend:
    showForSingleSeries: true
  plotOptions:
    bar:
      borderRadius: 2
  yaxis:
    decimalsInFloat: 2
    tickAmount: 10
    forceNiceScale: true
  xaxis:
    labels:
      datetimeFormatter:
        hour: HH
all_series_config:
  show:
    offset_in_name: false
header:
  title: ' '
  show: true
  show_states: true
  colorize_states: true
span:
  start: day
  offset: +0h
series:
  - entity: sensor.nordpool_kwh_fi_eur_3_095_024
    type: column
    color: green
    float_precision: 4
    stroke_width: 2
    name: Päivän tuntihinta
    show:
      in_header: false
      legend_value: false
      extremas: true
    data_generator: |
      return entity.attributes.raw_today.map((start, index) => {
        return [new Date(start["start"]).getTime(), entity.attributes.raw_today[index]["value"]];
      });
  - entity: sensor.nordpool_kwh_fi_eur_3_095_024
    type: column
    color: yellow
    float_precision: 4
    stroke_width: 2
    name: Huomisen tuntihinta
    show:
      in_header: false
      legend_value: false
      extremas: true
    data_generator: |
      return entity.attributes.raw_tomorrow.map((start, index) => {

        return [new Date(start["start"]).getTime(), entity.attributes.raw_tomorrow[index]["value"]];

      });
  - entity: sensor.nordpool_kwh_fi_eur_3_095_024
    name: Tuntihinta nyt
    color: green
    type: column
    show:
      in_chart: false
    float_precision: 4
  - entity: sensor.nordpool_kwh_fi_eur_3_095_024
    attribute: average
    type: column
    color: pink
    float_precision: 4
    stroke_width: 2
    name: Päivän keskihinta
    group_by:
      duration: 2d
    show:
      in_chart: false
      legend_value: false
  - entity: sensor.nordpool_kwh_fi_eur_3_095_024
    attribute: max
    type: column
    color: orange
    float_precision: 4
    stroke_width: 2
    name: Päivän maksimit
    group_by:
      duration: 2d
    show:
      in_chart: false
      legend_value: false
  - entity: sensor.nordpool_kwh_fi_eur_3_095_024
    attribute: min
    type: column
    color: green
    float_precision: 4
    stroke_width: 2
    name: Päivän minimit
    group_by:
      duration: 2d
    show:
      in_chart: false
      legend_value: false

Kolmivaihemittaus, chartti päivän tunti ja kokonais kumulatiivinen ( Vaatii shuntti mittarin ) Kiitos -Teme-

type: custom:apexcharts-card
header:
  show: true
  title: iDAG
  show_states: true
  colorize_states: true
graph_span: 2d
span:
  end: day
update_interval: 60min
apex_config:
  grid:
    show: true
  legend:
    show: false
  chart:
    height: 500px
  yaxis:
    - id: price_chart
      min: ~0
      opposite: true
      decimals: 3
      apex_config:
        tickAmount: 10
        labels:
          formatter: |
            EVAL:v => `${v.toFixed(3)} €`
    - id: consumption
      min: 0
      decimals: 1
      apex_config:
        tickAmount: 10
        labels:
          formatter: |
            EVAL:v => `${v.toFixed(2)} kWh`
series:
  - entity: sensor.energy_total
    transform: return x * 1000;
    yaxis_id: consumption
    type: line
    unit: wh
    float_precision: 3
    group_by:
      func: max
      duration: 1h
    extend_to: false
  - entity: sensor.energy_total_cost
    yaxis_id: price_chart
    type: column
    unit: c/kwh
    float_precision: 3
    group_by:
      func: max
      duration: 1h
    extend_to: false
Edit
Pub: 18 Aug 2023 16:05 UTC
Edit: 19 Aug 2023 05:28 UTC
Views: 205