diff --git a/automations.yaml b/automations.yaml index de04747..125beef 100644 --- a/automations.yaml +++ b/automations.yaml @@ -58,15 +58,20 @@ fan_mode: '1' target: entity_id: climate.nilan - - service: media_player.media_pause - data: {} - target: - device_id: 752c088f3d5d5893ef6b0a6ba6f2106f - service: tts.google_translate_say data: entity_id: media_player.dining_room message: Slukker, farvel. language: da + - delay: + hours: 0 + minutes: 0 + seconds: 2 + milliseconds: 0 + - service: homeassistant.turn_off + target: + entity_id: light.all_lights_off + data: {} - conditions: - condition: state entity_id: input_boolean.lights_state @@ -86,6 +91,15 @@ message: Tænder, velkommen hjem. language: da entity_id: media_player.dining_room + - delay: + hours: 0 + minutes: 0 + seconds: 2 + milliseconds: 0 + - service: homeassistant.turn_on + target: + entity_id: light.all_lights_on + data: {} default: [] - service: input_boolean.toggle target: diff --git a/configuration.yaml b/configuration.yaml index cd68971..90e320a 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -82,9 +82,9 @@ tts: - platform: google_translate -ourgroceries: - username: !secret our_groceries_username - password: !secret our_groceries_password +#ourgroceries: +# username: !secret our_groceries_username +# password: !secret our_groceries_password spotcast: sp_dc: !secret spotify_dc @@ -109,6 +109,18 @@ stecamonitor: ip: 10.0.1.4 +scrape: + - resource: https://www.aarhusvand.dk/privat/priser/ + scan_interval: 604800 + sensor: + name: Water Price + select: "table tfoot td[align] strong" + index: 0 + unit_of_measurement: "DKK/m³" + device_class: monetary + state_class: measurement + value_template: "{{ value | replace(',', '.') | float(0) }}" + sensor: !include_dir_merge_list sensors/ template: !include_dir_merge_list template/ diff --git a/dashboards/minimal/dashboard.yaml b/dashboards/minimal/dashboard.yaml index e70f470..8ac0852 100644 --- a/dashboards/minimal/dashboard.yaml +++ b/dashboards/minimal/dashboard.yaml @@ -8,3 +8,5 @@ - !include views/stue.yaml - !include views/el.yaml - !include views/bryggers.yaml + - !include views/niels.yaml + - !include views/jens.yaml diff --git a/dashboards/minimal/views/hjem.yaml b/dashboards/minimal/views/hjem.yaml index 044b7ea..bde4aec 100644 --- a/dashboards/minimal/views/hjem.yaml +++ b/dashboards/minimal/views/hjem.yaml @@ -52,6 +52,50 @@ height: 10 - type: custom:room-card + title: Udenfor + entity: switch.udendors_lyskaede_plug + icon: mdi:string-lights + show_icon: true + tap_action: + action: navigate + navigation_path: udenfor + info_entities: + - entity: sensor.netatmo_simstrup_weather_indoor_outdoor_temperature + show_icon: false + - entity: sensor.netatmo_simstrup_weather_indoor_outdoor_humidity + show_icon: false + entities: + - entity: sensor.igrill_temperature + hide_if: + conditions: + - condition: below + value: 5 + show_icon: true + show_state: true + name: Grill + icon: "mdi:grill" + + - entity: sensor.time_to_done + name: Tid Tilbage + show_state: true + show_icon: true + icon: mdi:thermometer-check + + - entity: sensor.igrill_temperature_change + name: Temp ændring + show_state: true + show_icon: true + icon: mdi:thermometer-chevron-up + card_mod: + style: | + ha-card .entities-info-row { + padding: 5px 20px 5px; + } + + - type: custom:gap-card + height: 10 + + - type: custom:room-card title: Køkken entity: light.kokken_alle_gruppe icon: mdi:stove @@ -62,6 +106,10 @@ info_entities: - entity: sensor.wavin_9000_temperature_kokken show_icon: false + - entity: sensor.netatmo_simstrup_weather_indoor_temperature + show_icon: false + - entity: sensor.netatmo_simstrup_weather_indoor_humidity + show_icon: false entities: - entity: sensor.mikroovn_plug_power hide_if: @@ -108,6 +156,10 @@ info_entities: - entity: sensor.wavin_9000_temperature_stue show_icon: false + - entity: sensor.temp2_temperature + show_icon: false + - entity: sensor.temp2_humidity + show_icon: false entities: - entity: sensor.tv_baenk_energi name: Tv Bænk @@ -126,6 +178,20 @@ tap_action: action: more-info entity: switch.tv_baenk + - entity: sensor.computer_energi + name: Computer + hide_if: + conditions: + - condition: below + value: 1 + icon: + template: + icon: > + return "mdi:desktop-classic"; + styles: | + return "color: white"; + show_icon: true + show_state: true card_mod: style: | ha-card .entities-info-row { @@ -154,6 +220,55 @@ return "color: white"; show_icon: true show_state: true + - entity: binary_sensor.bryggers_vindue_contact + name: Vindue + hide_if: + conditions: + - condition: equals + value: "off" + icon: "mdi:window-open" + show_icon: true + show_state: true + card_mod: + style: | + ha-card .entities-info-row { + padding: 5px 20px 5px; + } + + - type: custom:room-card + title: Niels + entity: light.niels_gruppe + icon: mdi:teddy-bear + show_icon: true + tap_action: + action: navigate + navigation_path: niels + info_entities: + - entity: sensor.wavin_9000_temperature_niels_vaerelse + show_icon: false + - entity: sensor.temp1_temperature + show_icon: false + - entity: sensor.temp1_humidity + show_icon: false + entities: + card_mod: + style: | + ha-card .entities-info-row { + padding: 5px 20px 5px; + } + + - type: custom:room-card + title: Jens + entity: light.jens_gruppe + icon: mdi:teddy-bear + show_icon: true + tap_action: + action: navigate + navigation_path: jens + info_entities: + - entity: sensor.wavin_9000_temperature_jens_vaerelse + show_icon: false + entities: card_mod: style: | ha-card .entities-info-row { diff --git a/dashboards/minimal/views/jens.yaml b/dashboards/minimal/views/jens.yaml new file mode 100644 index 0000000..ee2ba3f --- /dev/null +++ b/dashboards/minimal/views/jens.yaml @@ -0,0 +1,17 @@ +title: Jens +path: jens +cards: + - type: custom:decluttering-card + template: subpanel_title_template + variables: + - title: Jens + - alignment: start + + - type: custom:decluttering-card + template: temperature_chart_template + variables: + - entity: climate.wavin_9000_jens_vaerelse + - type: custom:decluttering-card + template: light_group_list_template + variables: + - group_name: jens_gruppe diff --git a/dashboards/minimal/views/niels.yaml b/dashboards/minimal/views/niels.yaml new file mode 100644 index 0000000..e813ad4 --- /dev/null +++ b/dashboards/minimal/views/niels.yaml @@ -0,0 +1,18 @@ +title: Niels +path: niels +cards: + - type: custom:decluttering-card + template: subpanel_title_template + variables: + - title: Niels + - alignment: start + + - type: custom:decluttering-card + template: temperature_chart_template + variables: + - entity: climate.wavin_9000_niels_vaerelse + + - type: custom:decluttering-card + template: light_group_list_template + variables: + - group_name: niels_gruppe diff --git a/esphome/kokkenbt.yaml b/esphome/kokkenbt.yaml new file mode 100644 index 0000000..c0bc5b8 --- /dev/null +++ b/esphome/kokkenbt.yaml @@ -0,0 +1,34 @@ +esphome: + name: kokkenbt + +esp32: + board: esp32dev + framework: + type: arduino + +# Enable logging +logger: + level: INFO + baud_rate: 0 + +# Enable Home Assistant API +api: + +ota: + password: "03bdb91f990a4f77a925da3c16eb655b" + +wifi: + ssid: !secret wifi_ssid + password: !secret wifi_password + + # Enable fallback hotspot (captive portal) in case wifi connection fails + ap: + ssid: "KokkenBT Fallback Hotspot" + password: "0J9xgK0Qev9M" + +captive_portal: + +esp32_ble_tracker: + +bluetooth_proxy: + active: true diff --git a/esphome/smartcard.yaml b/esphome/smartcard.yaml index 4f093ee..8767158 100644 --- a/esphome/smartcard.yaml +++ b/esphome/smartcard.yaml @@ -5,7 +5,9 @@ # Enable logging logger: - + level: INFO + baud_rate: 0 + # Enable Home Assistant API api: encryption: diff --git a/esphome/sovebt.yaml b/esphome/sovebt.yaml index 6c11cd0..8ab1224 100644 --- a/esphome/sovebt.yaml +++ b/esphome/sovebt.yaml @@ -87,4 +87,4 @@ id: impedance_user2 unit_of_measurement: 'Ω' icon: mdi:omega - accuracy_decimals: 0 \ No newline at end of file + accuracy_decimals: 0 diff --git a/known_devices.yaml b/known_devices.yaml index 78baff5..8ed5470 100644 --- a/known_devices.yaml +++ b/known_devices.yaml @@ -342,3 +342,52 @@ icon: picture: track: true + +c0_10_b1_06_12_76: + name: c0_10_b1_06_12_76 + mac: C0:10:B1:06:12:76 + icon: + picture: + track: true + +de_44_c1_4a_29_66: + name: de_44_c1_4a_29_66 + mac: DE:44:C1:4A:29:66 + icon: + picture: + track: true + +6e_3e_0b_dd_fa_ca: + name: 6e_3e_0b_dd_fa_ca + mac: 6E:3E:0B:DD:FA:CA + icon: + picture: + track: true + +2a_00_dc_4a_35_0b: + name: 2a_00_dc_4a_35_0b + mac: 2A:00:DC:4A:35:0B + icon: + picture: + track: true + +2a_8b_37_aa_06_cb: + name: 2a_8b_37_aa_06_cb + mac: 2A:8B:37:AA:06:CB + icon: + picture: + track: true + +0c_b8_15_d6_db_08: + name: 0c_b8_15_d6_db_08 + mac: 0C:B8:15:D6:DB:08 + icon: + picture: + track: true + +64_90_c1_ea_f1_47: + name: 64_90_c1_ea_f1_47 + mac: 64:90:C1:EA:F1:47 + icon: + picture: + track: true diff --git a/sensors/igrill.yaml b/sensors/igrill.yaml index 6fc7844..ffc1468 100644 --- a/sensors/igrill.yaml +++ b/sensors/igrill.yaml @@ -11,3 +11,10 @@ Cooking {% endif %}" friendly_name: iGrill Target Alert + + time_to_done: + friendly_name: iGrill Time Left to Target Temp + value_template: | + {% set missing = states.input_number.grill_probe_1_target.state | float(0) - states.sensor.igrill_temperature.state | float(0) %} + {% set timeLeft = missing / (states.sensor.igrill_temperature_change.state | float(0)) | round(1) %} + {{ timeLeft | round(1) }} minutter diff --git a/sensors/water.yaml b/sensors/water.yaml deleted file mode 100644 index 4079166..0000000 --- a/sensors/water.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- platform: scrape - resource: https://www.aarhusvand.dk/privat/priser/ - select: "table tfoot td[align] strong" - index: 0 - unit_of_measurement: "DKK/m³" - device_class: monetary - state_class: measurement - value_template: "{{ value | replace(',', '.') | float(0) }}" - name: Water Price - scan_interval: 604800 diff --git a/www/images/hoya.webp b/www/images/hoya.webp new file mode 100644 index 0000000..f1c1f38 --- /dev/null +++ b/www/images/hoya.webp Binary files differ diff --git a/www/images/kalanchoe.webp b/www/images/kalanchoe.webp new file mode 100644 index 0000000..61d243b --- /dev/null +++ b/www/images/kalanchoe.webp Binary files differ diff --git a/zigbee2mqtt/configuration.yaml b/zigbee2mqtt/configuration.yaml index 339fb78..e08db5f 100644 --- a/zigbee2mqtt/configuration.yaml +++ b/zigbee2mqtt/configuration.yaml @@ -36,6 +36,12 @@ friendly_name: Elmåler '0x84b4dbfffec3d1df': friendly_name: Kontor_Plug + '0x00124b0029209f8c': + friendly_name: Temp1 + '0x00124b0029203033': + friendly_name: Temp2 + '0x00124b0029117198': + friendly_name: Bryggers Vindue availability: active: timeout: 10