Adding MySensor V2.3.2 sensors to MC v2
-
I have finally been successful at getting the MC server running on a RPi (4, 8GB) at my house with port forwarding and DDNS to provide remote access.
The other day I was also able to get a NodeMCU 1.0 (ESP8266) board setup using MySensor example sketch "GatewayESP8266MQTTClient", which also automatically added a the board as a node to my resources.
Now, I am working on getting an actual sensor breakout board (source), Adafruit BME680 (temp, hum, press) wired to the NodeMCU gateway and sending sensor (field) data to my dashboard. My student was able to get one field sent, temperature, but we are not able to duplicate this with the other two field sources on the BME680. !
Here are some pictures of the settings that might help someone give us a direction to go.
This is the YAML view of the Source (BME680)
This is the YAML view of the Temp field that is working
This is the YAML view of the Hum fild that is not working
Thanks, in advance for any help you can provide. We will keep tinkering and reading about this, but we appreciate any insight you can provide.
-
OK, I'm not exactly sure what I did, but my student was able to edit the example sketch from MySensors V2 "GatewayESP8266MQTTClient" and add in code to send data from the Adafruit BME680 over MQTT. Once I added that code to my NodeMCU and added the # to the subscribe list in my gateway, it all just seemed to automatically add.
I should acknowledge that I had a misunderstanding about what physical components were nodes, sources, and fields. For some reason I thought that my NodeMCU was a gateway (this is true), it was also a node (this was not true), and that the BME680 was the source with several fields on it (TEMP, PRESS, HUMM). I believe I see now that the Node is actually the BME680 board and it has several separate sources, the physical sensors for each of the conditions it monitors and those numeric values, once acquired, become fields that the MC server can publish.
I am going to play some more with this since I would like to add all sorts of other nodes with a wide range of sources.