Closed sacy80 closed 2 years ago
short answer: Yes, should be possible
Usually you find in the web examples for many different sensors connected to ESP8266 and used with MQTT
ar, just add everything in void loop ? very sorry to ask about this.
yes, in the loop() you read your PIR status and you publish the status with e.g.
MQTTclient.publish("topic", "data", true);
Please check the PubSubClient documentation for details
ok. noted. i try to figure out.. thanks alot for info and help :)
Thanks alot for the info :) look like working :)
you could simplify the code: replace by Since you are doing the same in both branches you don't need the if-clause
oh.. i try. .. thanks for the help :)
Hi thank alot for the work. i try and it work. but i not good at coding. would like to know possible to add pir as a binary sensor to sent mqtt messages ?
very sorry, took your pcb design and change abit. https://1drv.ms/u/s!Ait4O1a98isBgYgazJgTbZKurobcyw?e=mjVgwO