Max Prokhorov

Results 502 comments of Max Prokhorov

Hm. See https://tasmota.github.io/docs/Commands/#switchdebounce 9 at the end of debounce time is actually interpreted as flag, so 50hz signal is interpreted in a specific way instead of just waiting on the...

I don't think you mentioned this, is this a custom device or some kind of consumer device like mentioned in the Tasmota code (i.e. Moes, Olimex, etc.)? Ticker example was...

Cool :) Would you mind sharing the resulting code if / when it is complete? As a patch text here or PR Notably, Tasmota implementation does another strange thing by...

You might want to look at HTTPClient from the Core library? https://github.com/esp8266/Arduino/tree/master/libraries/ESP8266HTTPClient/examples/ Button events are shared as callbacks: https://github.com/xoseperez/espurna/blob/85969e494536c6734eaad0a981026e91808de390/code/espurna/button.cpp#L426 To receive them: ```cpp ButtonBroker::Register([](unsigned char id, button_event_t event) { ...http...

*it's getting really OT here :)* MQTT issues might just be a symptom for something else, and heavily depends on the version you are trying to use (e.g. if you...

You can't control the device in the WebUI or via the Homeassistant config you provided below? If the 2nd - enable MQTT and set a correct server. There's a small...

There are at least 3 similar configs. For example: https://github.com/xoseperez/espurna/blob/1d895d98b801baf5cba6b2c876589ad63e177a50/code/espurna/config/hardware.h#L4627-L4665 Might need power meter calibration though, idk about the ratio values there. Check out the kogan .bin

Hm. There is also kmc-70011.bin https://github.com/xoseperez/espurna/blob/1d895d98b801baf5cba6b2c876589ad63e177a50/code/espurna/config/hardware.h#L2049-L2077 What I was referring earlier is only available in the development version at https://github.com/mcspr/espurna-nightly-builder/releases

Current implementation via https://github.com/bxparks/UnixHostDuino in the https://github.com/xoseperez/espurna/tree/dev/code/test To run host test, simply use `pio test` in the `code/test` directory. Only test at this time is for tuya module, making sure...

Also in regard to the ArduinoCore-API usage - because it is just an API reference, there are host functions missing: https://github.com/esp8266/Arduino/blob/master/tests/host/common/Arduino.cpp https://github.com/bxparks/UnixHostDuino/blob/bafce102e2c39f205e6cf527d7ca02fa19e9d8b5/Arduino.cpp#L27-L58 https://github.com/arduino/ArduinoCore-API/blob/398e70f188e2b861c10d9ffe5e2bfcb6a4a4f489/api/Common.h#L92-L128 [And another small example of WiFi scanning,...