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

Help: binary sensor door/button VS multi sensor door/button #35

Closed
pidiet opened this issue Apr 8, 2018 · 3 comments
Closed

Help: binary sensor door/button VS multi sensor door/button #35

pidiet opened this issue Apr 8, 2018 · 3 comments

Comments

@pidiet
Copy link

pidiet commented Apr 8, 2018

Hello,

i just switched over from using the binary sensor door (ha_mqtt_binary_sensor_door) over to use the multisensor (ha_mqtt_multisensor) for the same propose plus more (pir sensor)

I found some difference:

magnet/reed/door sensor with the same wiring (d1 and ground) results:

  • binary sensor: works like a charm
  • multi sensor: also works but open/closed is now vice versa?

button with same wiring (wemos button shield on d3 and ground) without any resistor:

  • binary sensor: button press forces reboot of the esp board
  • multi sensor: works like a charm here

And the pir/motion sensor on the multi sensor sketch also works like a charm.

Beside that I like the "online" state information from the multi sensor! Very nice feature!

Would be awesome to "tune" the multisensor sketch that it's possible to use more/different types of sensor. For example:

Any idea how I can correct my open/closed problem with the my door sensor? Thank's!

@rradar
Copy link

rradar commented Apr 9, 2018

Like the idea! Having the multi sensor with modules you can choose and wire your hardware! 👍

@pidiet pidiet changed the title binary sensor door/button VS multi sensor door/button Help: binary sensor door/button VS multi sensor door/button Apr 13, 2018
@pidiet
Copy link
Author

pidiet commented Apr 13, 2018

How can I change the (wrong) open/closed state of my magnet/reed/door sensor?

@SamZorSec
Copy link
Owner

@pidiet Just invert the payload sent to the MQTT broker:

Replace the following lines in config.h:

#define MQTT_PAYLOAD_ON   "ON"
#define MQTT_PAYLOAD_OFF  "OFF"

by

#define MQTT_PAYLOAD_ON   "OFF"
#define MQTT_PAYLOAD_OFF  "ON"

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