@mrzottel
Hi mrzottel thank you for the response.
I do live in the USA but it looks like the ESPHome is sending time in 24H form. See the log text.
I did try changing Home Assistant to English(GB) because I read somewhere that the time format was associated with language. Unfortunately it did not help.
Mode switching and reading the current light mode seem to be working correctly.
Maybe the Plant 3.0 uses a different time message?
I am happy to do some packet sniffing if you point me in the right direction of a program to use.
[19:15:15][D][fluval_ble_led:476]: Year: 23 / Month: 0 / Day: 7 / Day of week: 4 / Hour: 19 / Minute: 15 / Second: 14 / Checksumm: 96
[19:15:15][D][fluval_ble_led:321]: [44:A6:E5:68:C3:31] ESP_GATTC_WRITE_CHAR_EVT (Write confirmed)
[19:16:15][D][fluval_ble_led:476]: Year: 23 / Month: 0 / Day: 7 / Day of week: 4 / Hour: 19 / Minute: 16 / Second: 14 / Checksumm: 127
[19:16:15][D][fluval_ble_led:321]: [44:A6:E5:68:C3:31] ESP_GATTC_WRITE_CHAR_EVT (Write confirmed)
[19:17:15][D][fluval_ble_led:476]: Year: 23 / Month: 0 / Day: 7 / Day of week: 4 / Hour: 19 / Minute: 17 / Second: 14 / Checksumm: 126
[19:17:15][D][fluval_ble_led:321]: [44:A6:E5:68:C3:31] ESP_GATTC_WRITE_CHAR_EVT (Write confirmed)
EDIT:
So I managed to capture the bluetooth packets heading to my light using the build in Bluetooth HCI snoop log on my android phone. After opening the log in Wireshark, I was able to find the time sync message thanks to all your awesome work earlier in this thread.
The command is sending to 0x1000 > 0x1001 just like you found earlier as well.
The message below was sent at 22:00:49 on Sept 7th
Encrypted including the header: 54 5f 80 bc da c3 dc d3 d0 c2 d4 e5 89
Decrypted without the header: 68 0E 17 08 07 04 16 00 31 5d
One thing I noticed is that the fluval app is sending the month as (month - 1) to my light rather than just 0.
I also noticed that there is a “Write Request” command sent before the time sync.
I think this could be the notify part of the hand shake you mention in your post from Jan 26, only here it is happening before the time sync.
Let me know if you would like to see the full bluetooth log.