Skip to content

Tuya MCU testing #11

@btsimonh

Description

@btsimonh

This branch:

https://github.com/btsimonh/Tasmota/tree/TuyaUpdate

contains what built this binary:
tasmota-lite.bin.gz

The major changes are:
1/ low level protocol parsing improved:
Added byte timeout, detection 55AA rather than just 55 as a reset, incrementing error count.
2/ high level messages processing:
Always goes through a 'correct' startup sequence before sending DPs to the MCU.
All messages wait for a response from the MCU - I did observe the MCU ignoring messages before this was in place.
3/ DPs are ONLY sent if they are different to what TAS thinks the MCU value is:
This resolves an issue on my dimmers, where if 'OFF' was sent whilst the dimmer was off, the dimmer would no longer control the light (i.e. dead forever, no way to restore operation that I could find).

This has only been tested on an ESP8266 based Athom Dimmer switch.

Specifically I need help with testing on:
other dimmers,
sensors,
plugs,
etc.

Known Issues:
1/ The Athom dimmer accepts setting of DIM value when off, or immediately after ON.
However, it takes time to reach it's ORIGINAL DIM value after ON, and when it does, it sends it's original value, not the value WE asked for.
Not sure how to deal with this yet. But it's not a new issue....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions