HI Guys,
I’ve been using a Nodemcu V2 with Konnected firmware for a few weeks to monitor some binary sensors as motion class and 1 5v relay.
It was working fine but i was having some issues with the relay and wanted more control through Esphome so i wrote the code below and it turns the relay on and off fine but the sensors just stay stuck on clear but the same wiring worked ok on the same board with konnected.
Has anyone any ideas where i’m going wrong.
esphome:
name: alarm2
platform: ESP8266
board: nodemcuv2
wifi:
ssid: "MYSSID"
password: "MYPASS"
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Alarm2 Fallback Hotspot"
password: "MYPASS"
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
password: "MYPASS"
ota:
password: "MYUSER"
switch:
- platform: gpio
name: "Alarm Part set"
id: Alarm_Part_Set
pin: D1
inverted: yes
sensor:
- platform: wifi_signal
name: "WiFi Signal Sensor"
update_interval: 60s
binary_sensor:
- platform: gpio
pin: D7
name: "Living Room"
device_class: motion
- platform: gpio
pin: D2
name: "Dining Room"
device_class: motion
- platform: gpio
pin: D5
name: "Landing"
device_class: motion
- platform: gpio
pin: D6
name: "Kitchen"
device_class: motion
2 posts - 2 participants