Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Lekstugan lampor
- esphome:
- name: shelly2_03
- platform: ESP8266
- board: esp01_1m
- wifi:
- manual_ip:
- static_ip: 192.168.21.192
- gateway: 192.168.21.1
- subnet: 255.255.255.0
- dns1: 192.168.21.12
- dns2: 1.1.1.1
- networks:
- # AP02 finentren
- - ssid: !secret ssid
- password: !secret wifipwd
- bssid: F0:9F:C2:34:EB:03
- # AP04 Garaget
- - ssid: !secret ssid
- password: !secret wifipwd
- bssid: FC:EC:DA:81:BA:D1
- # AP01 Hall OV
- - ssid: !secret ssid
- password: !secret wifipwd
- bssid: 80:2A:A8:D4:D3:28
- ap:
- ssid: "Shelly2_03 Fallback Hotspot"
- captive_portal:
- # Enable logging
- logger:
- # Enable Home Assistant API
- api:
- ota:
- web_server:
- port: 80
- i2c:
- sda: GPIO12
- scl: GPIO14
- binary_sensor:
- - platform: gpio
- pin:
- number: GPIO13
- # mode: INPUT_PULLUP
- # inverted: True
- name: "Shelly2 03 Switch 1"
- internal: true
- on_state:
- - switch.toggle: relay1
- - platform: gpio
- pin:
- number: GPIO5
- # mode: INPUT_PULLUP
- # inverted: True
- name: "Shelly2 03 Switch 2"
- internal: true
- on_state:
- - switch.toggle: relay2
- - platform: status
- name: "Shelly2 03 Status"
- switch:
- - platform: gpio
- name: "Shelly2 03 Relay 1"
- pin: GPIO4
- id: relay1
- - platform: gpio
- name: "Shelly2 03 Relay 2"
- pin: GPIO15
- id: relay2
- sensor:
- - platform: wifi_signal
- name: "Shelly2 03 wifi signal"
- update_interval: 60s
- - platform: ade7953
- voltage:
- name: Shelly2 03 Voltage
- current_a:
- name: Shelly2 03 Current B
- current_b:
- name: Shelly2 03 Current A
- active_power_a:
- name: Shelly2 03 Active Power B
- filters:
- - multiply: -1
- active_power_b:
- name: Shelly2 03 Active Power A
- filters:
- - multiply: -1
- update_interval: 10s
- # NTC Temperature
- - platform: ntc
- sensor: temp_resistance_reading
- name: "Shelly2 03 Temperature"
- calibration:
- b_constant: 3350
- reference_resistance: 10kOhm
- reference_temperature: 298.15K
- - platform: resistance
- id: temp_resistance_reading
- sensor: temp_analog_reading
- configuration: DOWNSTREAM
- resistor: 32kOhm
- - platform: adc
- id: temp_analog_reading
- pin: A0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement