Skip to content

Instantly share code, notes, and snippets.

@iondulgheru
Created March 17, 2020 00:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iondulgheru/4c429ec442c4c3792cc23d287720a2fe to your computer and use it in GitHub Desktop.
Save iondulgheru/4c429ec442c4c3792cc23d287720a2fe to your computer and use it in GitHub Desktop.
Esphome for Zemismart Wifi RF
esphome:
name: zemismart_wifi_rf
platform: ESP8266
board: esp8285
wifi:
networks:
- ssid: $wifi_ssid
password: $wifi_pass
logger:
api:
ota:
#mqtt:
# broker: __broker_address__
web_server:
port: 80
binary_sensor:
- platform: gpio
pin:
number: GPIO12
mode: INPUT_PULLUP
inverted: True
id: button_1
on_press:
then:
- light.toggle: light_1
- platform: gpio
pin:
number: GPIO14
mode: INPUT_PULLUP
inverted: True
id: button_2
on_press:
then:
- light.toggle: light_2
- platform: status
name: "Zemismart Wifi RF Status"
output:
- platform: gpio
pin: GPIO13
id: relay_1
- platform: gpio
pin: GPIO4
id: relay_2
light:
- platform: binary
name: "Zemismart Wifi RF One"
id: light_1
output: relay_1
- platform: binary
name: "Zemismart Wifi RF Two"
id: light_2
output: relay_2
switch:
- platform: gpio
name: "Touch Backlight"
pin:
number: GPIO16
inverted: True
restore_mode: ALWAYS_ON
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment