Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MQTT required? #23

Open
TheFes opened this issue Feb 19, 2021 · 2 comments
Open

MQTT required? #23

TheFes opened this issue Feb 19, 2021 · 2 comments

Comments

@TheFes
Copy link

TheFes commented Feb 19, 2021

Is MQTT required to have the door sensor working in Home Assistant?
I would expect that the binary sensor is exposed to HA, and the status of the binary sensor could be used to trigger automations.

In case it is not required, would the code then also work without the custom component?
So something like this?

esphome:
  name: door
  platform: ESP8266
  board: esp01_1m
  arduino_version: 2.5.1
  board_flash_mode: dout

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_pass
  fast_connect: true

uart:
  - tx_pin: 1
    rx_pin: 3
    baud_rate: 9600
    id: uart0

ota:

logger:
  level: INFO
  hardware_uart: UART1

sensor:
  - platform: wifi_signal
    name: "Door WiFi Signal"
    update_interval: 60s
  - platform: adc
    name: "Door Battery"
    update_interval: 60s
    pin: VCC

binary_sensor:
  - platform: template
    id: door
    name: "Door Closure"
    filters: []
    device_class: door
    lambda: "return {};"
@simonk1969
Copy link

I'm interested in this also as I'd prefer to not have to use MQTT and just the ESPHome integration.

@RamjetX
Copy link

RamjetX commented Jan 9, 2023

From reading the readme. The co-processor that does all of the power management waits for the ESP to tell it that it's connected to the MQTT server before passing on the PIR event.

It seems the co-processor is 90% of the problem here. You could technically bypass the co processor, but you'd lose the energy efficiency for running on batteries.

At that point... just use a wemos d1 or similar board with a cheap PIR and run it off USB somewhere in the house.

Until I figure out how to compile this older code on 2023 ESPHome environment, I'm probably going to abandon this device in favour of making my own with a generic esp dev board and 3D print a nice enclosure instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants