03-04-2023, 11:04 PM
your relay board connect to mqtt broker server, your home assistant also need connect to same server by mqtt.
[Arduino demo source code for KC868-A4]-14 MQTT demo
|
03-04-2023, 11:04 PM
your relay board connect to mqtt broker server, your home assistant also need connect to same server by mqtt.
03-06-2023, 03:53 AM
(03-04-2023, 11:04 PM)admin Wrote: your relay board connect to mqtt broker server, your home assistant also need connect to same server by mqtt. thank you, I have a connection of the card, I can listen to the topic and order the relays
03-06-2023, 08:11 AM
good, it's work now.
03-09-2023, 10:40 AM
(This post was last modified: 03-09-2023, 12:08 PM by ledouble33.)
(03-06-2023, 08:11 AM)administrateur Wrote: Bon, ça marche maintenant.I try to integrate ds18b20 I was inspired by the following tutorial (https://randomnerdtutorials.com/esp32-mq...e-arduino/) in the serial monitor the temperature changes well but when I listen in home assistant the temperature value does not change it is always 21.94 C I have a doubt about the following code part Code: unsigned long currentMillis = millis();
03-09-2023, 12:25 PM
check your code, whether read ds18b20 data is correctly. or issue is during your MQTT code.
03-09-2023, 12:43 PM
(This post was last modified: 03-09-2023, 12:45 PM by ledouble33.)
the ds18b20 data read is correct in the serial monitor, I do not understand where my error comes from, I have little knowledge of coding
03-09-2023, 02:17 PM
you can use serial output ds18b20 value in different code position, test which section have issue.
03-10-2023, 09:17 AM
(This post was last modified: 03-10-2023, 09:18 AM by ledouble33.)
(03-09-2023, 02:17 PM)admin Wrote: you can use serial output ds18b20 value in different code position, test which section have issue. I found I created a read function of 2 probes and send by mqtt tank you Code: void lecturePublication()
03-10-2023, 09:38 AM
ok
|
« Next Oldest | Next Newest »
|
Users browsing this thread: |
1 Guest(s) |