Compare commits

...

4 Commits

Author SHA1 Message Date
Marcus Scholz 392e8508d3 Removed and ignored pycache. 2024-01-20 00:12:05 +01:00
Marcus Scholz 6985991d3a 1st working esp32-cam implementation. 2024-01-20 00:04:45 +01:00
Marcus Scholz 0162c1074f Updated HA. 2024-01-20 00:03:53 +01:00
Marcus Scholz 8a5ba47dfa Changes to serverroom sensor. 2024-01-20 00:03:43 +01:00
10 changed files with 101 additions and 17 deletions

View File

@ -1 +1 @@
2024.1.3
2024.1.4

2
.gitignore vendored
View File

@ -11,4 +11,4 @@ media/
home-assistant.log*
.storage/
zigbee.db*
*__pycache__*

View File

@ -427,10 +427,6 @@
- 32d15eec63fe68d5770813d47da53657
- 53a27edf581fcf40f3bc8b253b1ee369
data: {}
- type: turn_on
device_id: c4ead7f6227e2ee4c43c4b0df829cd84
entity_id: 7f7284b11f2bf50ae2f0ebeeb35411c0
domain: switch
mode: single
- id: '1648485179021'
alias: Schalte den Fernseher mit WoL ein

View File

@ -158,11 +158,11 @@ sensor:
id: humid_outdoor
- platform: homeassistant
entity_id: sensor.luftdruck
entity_id: sensor.serverroom_luftdruck
id: airpressure
- platform: homeassistant
entity_id: sensor.serveraum_temperatur
entity_id: sensor.serverroom_serveraum_temperatur
id: temp_serverroom
- platform: homeassistant
@ -437,7 +437,7 @@ display:
it.print(375, 130, id(mdi_small), TextAlign::BASELINE_CENTER, "󰖎"); // water percent icon
it.print(95, 80, id(mdi_small), TextAlign::BASELINE_LEFT, "󰐼"); // radioactive icon
if(outdoor_radiation > 0 && outdoor_radiation < 100) {
if(outdoor_radiation >= 0) {
it.printf(200, 80, id(sub_sensor_font), TextAlign::BASELINE_RIGHT, "%2.2f", outdoor_radiation);
it.print(205, 80, id(sensor_unit), TextAlign::BASELINE_LEFT, "µS/h");
}

View File

@ -0,0 +1,77 @@
substitutions:
name: kamera-wohnzimmer
friendly_name: Kamera Wohnzimmer
esphome:
name: ${name}
friendly_name: ${friendly_name}
name_add_mac_suffix: false
project:
name: sensor.camera
version: "1.0"
min_version: 2022.1.0
esp32:
board: esp32dev
framework:
type: arduino
wifi:
ssid: "Voltage-legacy"
password: !secret voltage_legacy_psk
use_address: ${name}.home
power_save_mode: high
fast_connect: on
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Cam Wohnzimmer Fallback Hotspot"
password: !secret fallback_psk
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: !secret apikey
ota:
password: !secret ota
# Camera
esp32_camera:
name: ${friendly_name}
external_clock:
pin: GPIO0
frequency: 20MHz
i2c_pins:
sda: GPIO26
scl: GPIO27
data_pins: [GPIO5, GPIO18, GPIO19, GPIO21, GPIO36, GPIO39, GPIO34, GPIO35]
vsync_pin: GPIO25
href_pin: GPIO23
pixel_clock_pin: GPIO22
power_down_pin: GPIO32
resolution: SVGA
max_framerate: 24 fps
idle_framerate: 0.2 fps
jpeg_quality: 30
vertical_flip: true
horizontal_mirror: true
# Flash LED
output:
- platform: ledc
pin: GPIO4
id: flash
channel: 2
# Define RGB mode for LED
light:
- platform: monochromatic
id: flashlight
name: "Blitzlicht"
output: flash

View File

@ -1,8 +1,20 @@
esphome:
name: serverroom
substitutions:
name: "serverroom"
friendly_name: "Serverraum Luft"
platform: ESP32
board: nodemcu-32s
esphome:
name: ${name}
friendly_name: ${friendly_name}
name_add_mac_suffix: false
project:
name: sensor.outdoor
version: "0.8"
min_version: 2022.1.0
esp32:
board: esp32-c3-devkitm-1
framework:
type: arduino
wifi:
ssid: "Voltage-legacy"
@ -23,7 +35,6 @@ logger:
# Enable Home Assistant API
api:
password: !secret api
encryption:
key: !secret apikey
@ -33,11 +44,11 @@ ota:
# Initialize I²C
i2c:
- id: bus_a
sda: 32
scl: 25
sda: 4
scl: 3
scan: true
# DHT22 sensor
# BMP280 sensor
sensor:
- platform: bmp280
i2c_id: bus_a