Search found 411 matches

by kevinkk525
Fri Jul 19, 2019 6:35 pm
Forum: General Discussion and Questions
Topic: Neo pixel
Replies: 5
Views: 133

Re: Neo pixel

As for home-assistant integration I can recommend my own project which has this specific goal, to connect an esp to home-assistant and even provide mqtt discovery so you don't have to configure each component in home-assistant. https://github.com/kevinkk525/pysmartnode However you'll have to write y...
by kevinkk525
Fri Jul 19, 2019 6:29 pm
Forum: General Discussion and Questions
Topic: keep wifi and umqttsimple "alive"? (beginner question)
Replies: 7
Views: 154

Re: keep wifi and umqttsimple "alive"? (beginner question)

Maybe you'll find my project useful which is a smart home framework using mqtt and made for home-assistant with mqtt discovery (no config needed in home-assistant) . I use a bell myself and have multiple nodemcu that flash their LEDs and sound a buzzer as my bell was not loud enough. It should be si...
by kevinkk525
Tue Jul 16, 2019 1:23 pm
Forum: ESP32 boards
Topic: main.py does not appear to working after boot
Replies: 47
Views: 741

Re: main.py does not appear to working after boot

You didn't ask any question so what should we say about it? It's a valid method to update your main.py...

Edit: Ah right, the question is in your title only. Please show the main.py, has it ever worked?
by kevinkk525
Tue Jul 16, 2019 1:22 pm
Forum: ESP8266 boards
Topic: Remove '\x00\x00\x00\x00\x00\x00\x00\x00.\x00\x00\x00' files?
Replies: 8
Views: 271

Re: Remove '\x00\x00\x00\x00\x00\x00\x00\x00.\x00\x00\x00' files?

This does however not apply to the ESP8266 unless that's a new feature I have never heard of.
by kevinkk525
Thu Jul 11, 2019 3:24 pm
Forum: ESP32 boards
Topic: shift register bit shifting considerations
Replies: 6
Views: 163

Re: shift register bit shifting considerations

Just suggesting using a more clearly structured and optimized code. Writing ever latch and clock change just makes your code horrible to read and understand and prone to error.
by kevinkk525
Thu Jul 11, 2019 8:06 am
Forum: ESP32 boards
Topic: shift register bit shifting considerations
Replies: 6
Views: 163

Re: shift register bit shifting considerations

I made a more general module to control my shift registers, maybe it helps, it also supports connecting multiple shift registers: import machine from machine import Pin as PyPin # this was actually another Pin class import gc gc.collect() class Mux: def __init__(self, shift_pin, store_pin, data_pin,...
by kevinkk525
Wed Jul 10, 2019 6:25 am
Forum: ESP32 boards
Topic: LoBoris is back
Replies: 1
Views: 200

Re: LoBoris is back

I'm glad to hear that but since the official esp32 port is working "flawlessly" now, I won't start trusting a one-man port again.
Also the last update was 6th September 2018, so he has a lot of catching up to do.
by kevinkk525
Sun Jul 07, 2019 6:47 am
Forum: Programs, Libraries and Tools
Topic: Smarthome firmware pysmartnode
Replies: 17
Views: 2293

Smarthome firmware pysmartnode now with Homeassistant mqtt discovery

Version 5.0.0 now finally supports Homeassistant mqtt discovery! MQTT discovery: https://www.home-assistant.io/docs/mqtt/discovery/ Pysmartnode release: https://github.com/kevinkk525/pysmartnode/releases/tag/v5.0.0 No more configuring each component inside HASS. It's enough to configure the componen...
by kevinkk525
Fri Jul 05, 2019 6:09 am
Forum: ESP32 boards
Topic: MQTT code freeze after some time.
Replies: 17
Views: 474

Re: MQTT code freeze after some time.

I'm not sure this could lead to problems but you should implement a short waiting time in the while loop, time.sleep_ms(10) should be enough. The lines in your error trace are a bit strange as they point towards c.disconnect(), machine.reset() and gc.collect(). It shouldn't freeze at any of these me...
by kevinkk525
Thu Jul 04, 2019 6:06 am
Forum: ESP32 boards
Topic: MQTT code freeze after some time.
Replies: 17
Views: 474

Re: MQTT code freeze after some time.

Can you post the code of mqtt.py?
Because I can not find these lines in the code you previously posted:
File "mqtt.py", line 149, in connect
File "mqtt.py", line 143, in main
File "mqtt.py", line 140, in main
File "mqtt.py", line 133, in main