Innr Outdoor Sockelleuchten, Komplettes Set, Kompatibel mit Philips Hue, Alexa, Hey Google (Bridge erforderlich) Stehlampe, Gartenbeleuchtung LED, Außenleuchte, Smart Pedestal, Color, 3-Pack, OPL 130C
Unverb. Preisempf.: 159,99 € (53,33 € / stück)
119,99 € (40,00 € / stück)Sie sparen 40,00 € (25%)
Hier ein Beispiel ESPHome-Programm für die Gosund SP1 Steckdose OHNE USB.
Alle Standardfunktion sind gegeben
substitutions:
plug_name: HIER DER NAME
# Higher value gives lower watt readout
current_res: "0.00221"
# Lower value gives lower voltage readout
voltage_div: "920"
esphome:
name: HIER DER NAME
platform: ESP8266
board: esp8285
wifi:
networks:
- ssid: "WLAN"
password: "WLAN PW"
ap:
ssid: "access point daten"
password: "AC PW"
captive_portal:
logger:
api:
ota:
# Enable Web server
web_server:
port: 80
time:
- platform: homeassistant
id: homeassistant_time
binary_sensor:
# Binary sensor for the button press
- platform: gpio
name: "${plug_name}_button"
pin:
number: GPIO3
inverted: true
on_press:
- switch.toggle: relay
switch:
- platform: gpio
id: relay
name: "${plug_name}_Relay"
restore_mode: ALWAYS_OFF
pin: GPIO14
on_turn_on:
- light.turn_on: led
on_turn_off:
- light.turn_off: led
sensor:
- platform: hlw8012
sel_pin:
number: GPIO12
inverted: True
cf_pin: GPIO04
cf1_pin: GPIO05
current_resistor: ${current_res}
voltage_divider: ${voltage_div}
current:
name: "${plug_name}_Amperage"
unit_of_measurement: A
voltage:
name: "${plug_name}_Voltage"
unit_of_measurement: V
power:
name: "${plug_name}_Wattage"
unit_of_measurement: W
id: "${plug_name}_Wattage"
change_mode_every: 8
update_interval: 10s
- platform: total_daily_energy
name: "${plug_name}_Total Daily Energy"
power_id: "${plug_name}_Wattage"
filters:
# Multiplication factor from W to kW is 0.001
- multiply: 0.001
unit_of_measurement: kWh
# Extra sensor to keep track of plug uptime
- platform: uptime
name: ${plug_name}_Uptime Sensor
- platform: wifi_signal
name: "LED Schuppen WiFi Signal"
update_interval: 60s
output:
# Relay state led
- platform: esp8266_pwm
id: state_led
pin:
number: GPIO1
inverted: true
light:
# Relay state light
- platform: monochromatic
output: state_led
id: led
# Uses the red LED as a status indicator
status_led:
pin:
number: GPIO13
inverted: true