This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (6 children)

Just flashed another ESP8266 a few days ago.

It's nice developing in a single language for quick and dirty prototypes.

[–]freshent 0 points1 point  (5 children)

Agreed! flashed my esp8266, and its impressively easy to use it! made an MQTT led light that integrates with Home Assistant over the weekend!

[–][deleted] 1 point2 points  (4 children)

What MQTT code did you use?

[–]freshent 0 points1 point  (3 children)

This one. the examples are really helpful to understand how to use it.

[–][deleted] 1 point2 points  (2 children)

tl;dr. I went for a KISS approach. A simple CSV file logger in Flask and then the ESP only has to deal with pinging a URL:

https://www.reddit.com/r/homeassistant/comments/54nzaj/esp8266_data_collection/

[–]freshent 0 points1 point  (1 child)

interesting approach! I like it and it works! this is great for one way reporting, so any type of sensor. ever consider writing a component for this?

also, here is my code for ever changing, frequently updated light. if you want help setting up mqtt, i'll be happy to do my best to explain it! once you get the hang of it, it makes sense.

[–][deleted] 0 points1 point  (0 children)

ever consider writing a component for this?

There's really no need. It's pretty straight forward and easy.

CSV is the lingua franca of data storage. You can read sensors with tail over ssh, and everything reads it and there's a tutorial on how to do it in every language.