ashald / home-assistant-lywsd02

A customer component for HomeAssistant to configure LYWSD02
The Unlicense
22 stars 0 forks source link

LYWSD02MMC doesn't sync #2

Closed vador31 closed 9 months ago

vador31 commented 9 months ago

Hello !

My LYWSD02MMC doesn't sync (maybe because it's a "MMC" ?). HACS is installed and you repo too. My automation :

trigger:
  - platform: time
    at: "04:00:00"
condition: []
action:
  - service: lywsd02.set_time
    metadata: {}
    data:
      mac: E7:2E:00:E2:71:01
mode: single

I have no error when it runs but nothings appends, the clock isn't synced (1 minute is still missing). HA runs on rpi 3 and the pi clock is OK. HAOS is up to date.

ashald commented 9 months ago

Yeah, it's because it's an "MMC." It uses a different protocol. I'm pretty sure there must be details about it on the internet, and you should be able to fork this repo and modify it accordingly. Or send a PR here to add support - whichever is your preference. I don't have any MMC devices, so I won't be able to help with implementing support for them or testing it.

klim123123 commented 1 month ago

i have also LYWSD02MMC and it's works fine

vador31 commented 2 weeks ago

i have also LYWSD02MMC and it's works fine

yes it finally worked for me too :)