I’m about to put together a rather simple device to measure whether a door is open or closed and report it to HA. Will use a Wemos D1 or equivalent and a magnetic read switch, but the question I have is whether it is better to set this up as a sensor or a cover?
All the sketches I have come across seem to be using Cover but they also seem to be doing more then I want as well, like opening a blind or garage door. Will sensor work sufficiently? I already have a couple of those working with temp and humidity around the house. I’m kind of assuming a simple read switch would be the same setup basically?
You can find inforation in the docs about this but basically a cover is to control rollershutter, garage door, etc. You’ll need to be looking at a binary sensor.
Hi ,first thanks for that topic,I found pretty much everything needed here.
I’m trying to make wifi signal strength sensor in HA using “wifi device”,but no success so far.
In ESPeasy log I see the readings every minute ,but I don’t know what state topic to subscribe for in HA
Is there any way to listen Nodemcu messages ?
Thanks in advance.
I find that if you run this line in a SSH session with something like Putty, you’ll find out what MQTT topics are being sent out. The ip address should be replaced with your device running the mqtt broker. In my case it is my raspberry pi on 192.168.1.113 for example
Sorry, not too sure what you’d need to type in then to see what is happening. There is some kind way to view from the broker what it is subscribing to.
That is ESP Easy config page and log
I am listening on # topic with my android device and It does not send any messages to the broker except gpio 14 load and state.
Your log seems to indicated that the ESP is subscribed to /ESP_Easy, not /sensor/WiFi as in your config. Check your MQTT status topic in ESPEasy to make sure they match up…