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

Load SensorData from JSON File. #252

Open
Andy200877 opened this issue Jun 15, 2024 · 0 comments
Open

Load SensorData from JSON File. #252

Andy200877 opened this issue Jun 15, 2024 · 0 comments

Comments

@Andy200877
Copy link

Andy200877 commented Jun 15, 2024

Hello... I have multiple DS18B20 Sensors connected to a NodeMCU and want to publish ist to HA.

But my Code do not work. The uid and the name from the sensor ist loaded from my json file.
But when i use ist for arduinoHA the UID and Name for the Sensor is under HA empty.

Arduino Code
https://pastebin.com/raw/KtVrU6qX

Serial-Log
ID: 28:71:dd:32:0:0:0:4c, Bezeichnung: Sensor1, Temperatur: 19.56 , Offset: 1.10, Temperatur ber.: 20.66 HASensorNumber Name: Sensor1 ID: 28:a7:e4:30:0:0:0:4a, Bezeichnung: Sensor2, Temperatur: 19.50 , Offset: -1.10, Temperatur ber.: 18.40 HASensorNumber Name: Sensor2

sensor_data.json
{"28:71:dd:32:0:0:0:4c":{"description":"Sensor1","offset":1.1},"28:a7:e4:30:0:0:0:4a":{"description":"Sensor2","offset":-1.1}}

Can someone help me ?

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

1 participant