GammaTroniques / TICMeter

TICMeter is a small product to collect data from a Linky meter and send them to a home automation server via MQTT, Zigbee or HTTP
Other
28 stars 4 forks source link

Tuya STD - Pas de remonté d'information dans l'app #18

Open NoahJst opened 1 week ago

NoahJst commented 1 week ago

The problem encountered

Aucune information n'est remontée dans l'app, pourtant l'envoi se passe bien

LOG :

I (35342) WIFI: The current date/time is: Fri Jun 21 08:13:17 2024
I (35343) LINKY: STGE: 0x3a4401
I (35343) LINKY: tomorrow color: 0
I (55006) MAIN: Frame size: 10808
I (55007) MAIN: -----------------------------------------------------------------
I (55007) MAIN: Waking up, VCondo: 5.108000
I (55008) LINKY: Mode: STD
I (55009) LINKY: Reading frame...
I (55009) LINKY: Reading frame: size: 10808 remaining: 7000
I (56010) LINKY: Reading frame: size: 11338 remaining: 5999
I (57010) LINKY: Reading frame: size: 11866 remaining: 4999
I (58010) LINKY: Reading frame: size: 12346 remaining: 3999
I (59010) LINKY: Reading frame: size: 12875 remaining: 2999
I (60010) LINKY: Reading frame: size: 13363 remaining: 1999
I (61010) LINKY: Reading frame: size: 13860 remaining: 999
I (62010) LINKY: Decoding frame... size: 14402
I (62013) LINKY: Found 630 groups
I (62065) LINKY: Found 41 fields
I (62066) WIFI: Getting time over NTP
I (62067) WIFI: The current date/time is: Fri Jun 21 08:13:43 2024
I (62067) LINKY: STGE: 0x3a4401
I (62068) LINKY: tomorrow color: 0
I (62168) MAIN: Sending data to TUYA
I (62168) TUYA: Send data to tuya
E (62168) TUYA: Unknown Linky mode: 1
E (62169) TUYA: Unknown contract: 1
I (62171) TUYA: JSON: {"101":"812064109667","107":"ANY","108":" HEURE  PLEINE  ","127":2,"131":244,"102":6,"122":570,"135":2630,"103":60,"105":"STANDARD","106":"MONOPHASE","104":61}
I (62208) TUYA: Send data to tuya OK
I (62208) MAIN: Checking for update
I (62212) OTA: Trying to get version from https://update.gammatroniques.fr/ticmeter/manifest.json
I (63111) OTA: HTTP Status = 200, content_length = 1108
I (63116) OTA: Current Version: V3.2.7
I (63117) OTA: Latest version: V3.2.7
I (63117) OTA: Target: esp32c6
I (63117) OTA: HW Version: 
I (63118) OTA: APP URL: https://update.gammatroniques.fr/ticmeter/download/TICMeter.bin
I (63118) OTA: Storage URL: https://update.gammatroniques.fr/ticmeter/download/storage.bin
I (63119) OTA: MD5: 
W (63119) OTA: No update available
I (63120) MAIN: Free heap memory: 99976
I (63120) MAIN: Heap: we gained 99976 bytes
I (63122) MAIN: Waiting for 50 seconds
I (63122) MAIN: Frame size: 499
E (94656) LINKY: Buffer overflow: force decoding
I (94656) LINKY: Decoding frame... size: 16383
I (94660) LINKY: Found 720 groups
I (94724) LINKY: Found 41 fields
I (94724) WIFI: Getting time over NTP
I (94725) WIFI: The current date/time is: Fri Jun 21 08:14:16 2024
I (94725) LINKY: STGE: 0x3a4401
I (94726) LINKY: tomorrow color: 0
I (113124) MAIN: Frame size: 9211
I (113125) MAIN: -----------------------------------------------------------------
I (113125) MAIN: Waking up, VCondo: 5.108000
I (113126) LINKY: Mode: STD
I (113127) LINKY: Reading frame...
I (113127) LINKY: Reading frame: size: 9242 remaining: 7000
I (114128) LINKY: Reading frame: size: 9760 remaining: 5999
I (115128) LINKY: Reading frame: size: 10240 remaining: 4999
I (116128) LINKY: Reading frame: size: 10765 remaining: 3999
I (117128) LINKY: Reading frame: size: 11278 remaining: 2999
I (118128) LINKY: Reading frame: size: 11745 remaining: 1999
I (119128) LINKY: Reading frame: size: 12275 remaining: 999
I (120128) LINKY: Decoding frame... size: 12746
I (120130) LINKY: Found 561 groups
I (120178) LINKY: Found 41 fields
I (120179) WIFI: Getting time over NTP
I (120180) WIFI: The current date/time is: Fri Jun 21 08:14:42 2024
I (120180) LINKY: STGE: 0x3a4401
I (120181) LINKY: tomorrow color: 0
I (120281) MAIN: Sending data to TUYA
I (120281) TUYA: Send data to tuya
E (120281) TUYA: Unknown Linky mode: 1
E (120282) TUYA: Unknown contract: 1
I (120284) TUYA: JSON: {"101":"812064109667","107":"ANY","108":" HEURE  PLEINE  ","127":2,"131":244,"102":6,"122":573,"135":2630,"103":60,"105":"STANDARD","106":"MONOPHASE","104":119}
I (120509) TUYA: Send data to tuya OK
I (120509) MAIN: Free heap memory: 100120
I (120510) MAIN: Heap: we gained 28 bytes
I (120510) MAIN: Waiting for 50 seconds
I (120511) MAIN: Frame size: 188
ESP-ROM:esp32c6-20220919
Build:Sep 19 2022
rst:0x15 (USB_UART_HPSYS),boot:0x6f (SPI_FAST_FLASH_BOOT)
Saved PC:0x4080bd84
SPIWP:0xee
mode:DIO, clock div:2
load:0x40875720,len:0x17d8
load:0x4086c410,len:0xe20
load:0x4086e610,len:0x3428
entry 0x4086c41a
I (23) boot: ESP-IDF v5.2.1 2nd stage bootloader
I (23) boot: compile time Jun 19 2024 21:11:41
I (24) boot: chip revision: v0.0
I (26) boot.esp32c6: SPI Speed      : 80MHz
I (31) boot.esp32c6: SPI Mode       : DIO
I (35) boot.esp32c6: SPI Flash Size : 4MB
I (40) boot: Enabling RNG early entropy source...
I (46) boot: Partition Table:
I (49) boot: ## Label            Usage          Type ST Offset   Length
I (56) boot:  0 ro_nvs           WiFi data        01 02 00009000 00002000
I (64) boot:  1 nvs              WiFi data        01 02 0000b000 00004000
I (71) boot:  2 phy_init         RF data          01 01 0000f000 00001000
I (79) boot:  3 otadata          OTA data         01 00 00010000 00002000
I (86) boot:  4 zb_storage       Unknown data     01 81 00012000 00004000
I (94) boot:  5 zb_fct           Unknown data     01 81 00016000 00000400
I (101) boot:  6 storage          Unknown data     01 82 00017000 00010000
I (109) boot:  7 nvs_key          NVS keys         01 04 00027000 00001000
I (116) boot:  8 ota_0            OTA app          00 10 00030000 001db000
I (124) boot:  9 ota_1            OTA app          00 11 00210000 001db000
I (131) boot: End of partition table
I (136) esp_image: segment 0: paddr=00030020 vaddr=42150020 size=4b4c0h (308416) map
I (198) esp_image: segment 1: paddr=0007b4e8 vaddr=40800000 size=04b30h ( 19248) load
I (203) esp_image: segment 2: paddr=00080020 vaddr=42000020 size=14f5a4h (1373604) map
I (444) esp_image: segment 3: paddr=001cf5cc vaddr=40804b30 size=1d500h (120064) load
I (468) esp_image: segment 4: paddr=001ecad4 vaddr=50000000 size=00048h (    72) load
I (475) boot: Loaded app from partition at offset 0x30000
I (476) boot: Disabling RNG early entropy source...
I (478) cpu_start: Unicore app
W (489) clk: esp_perip_clk_init() has not been implemented yet
I (490) cpu_start: Pro cpu start user code
I (492) cpu_start: cpu freq: 80000000 Hz
I (497) cpu_start: Application information:
I (501) cpu_start: Project name:     TICMeter
I (506) cpu_start: App version:      V3.2.7
I (511) cpu_start: Compile time:     Jun 19 2024 21:11:35
I (517) cpu_start: ELF file SHA256:  a4ebbec04b6a9305...
I (523) cpu_start: ESP-IDF:          v5.2.1
I (528) cpu_start: Min chip rev:     v0.0
I (533) cpu_start: Max chip rev:     v0.99 
I (538) cpu_start: Chip rev:         v0.0
I (543) heap_init: Initializing. RAM available for dynamic allocation:
I (550) heap_init: At 4083A580 len 00042090 (264 KiB): RAM
I (556) heap_init: At 4087C610 len 00002F54 (11 KiB): RAM
I (562) heap_init: At 50000048 len 00003FA0 (15 KiB): RTCRAM
I (569) spi_flash: detected chip: generic
I (573) spi_flash: flash io: dio
I (577) nvs_sec_provider: NVS Encryption - Registering HMAC-based scheme...
I (585) sleep: Configure to isolate all GPIO pins in sleep state
I (591) sleep: Enable automatic switching of GPIO sleep configuration
I (599) sleep_clock: Modem Power, Clock and Reset sleep retention initialization
I (599) coexist: coex firmware version: 77cd7f8
I (600) coexist: coexist rom version 5b8dcfa
I (600) main_task: Started on CPU0
I (600) main_task: Calling app_main()
I (600) MAIN: Starting TICMeter...
I (600) pm: Frequency switching config: CPU_MAX: 80, APB_MAX: 80, APB_MIN: 10, Light sleep: ENABLED
I (601) POWER: PM initialized
I (602) gpio: GPIO[5]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (603) gpio: GPIO[1]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (604) gpio: GPIO[4]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (604) gpio: GPIO[3]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:4 
I (605) gpio: GPIO[1]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (605) GPIO: USB already connected
I (606) GPIO: VUSB level: 1
I (606) gpio: GPIO[1]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:4 
I (606) GPIO: VCondo: 5.106000V
I (607) Config: Coding Scheme RS (Reed-Solomon coding)
I (608) Config: MAC address: 404CCA54552C
I (608) Config: Serial number: TICM32400280
I (608) Config: Hardware version: 3.4.1
I (614) gdma: GDMA pair (0, 0) retention initialization
I (694) nvs: NVS partition "nvs" is encrypted.
I (719) Config: Config read 9 bytes
I (735) Config: Config written 704 bytes
I (754) Config: Config read 9 bytes
I (754) Config: Config OK
I (754) LINKY: Setting mode to STD
I (755) LINKY: Changed mode to STD
I (755) uart: queue free spaces: 64
D (756) LINKY: UART configured: pins RX:23
Your terminal application does not support escape sequences.
[redacted]
[redacted]Line editing and history features are disabled.
[redacted]
[redacted]> [redacted]I (1305) MAIN: Config found. Starting...
I (1505) MAIN: Linky found
I (1765) WIFI: GOT EVENT: event_base: WIFI_EVENT, event_id: 40
I (1767) WIFI: GOT EVENT: event_base: WIFI_EVENT, event_id: 2
I (1769) WIFI: Connecting to Livebox-5E30
I (2336) WIFI: GOT EVENT: event_base: WIFI_EVENT, event_id: 40
I (2541) WIFI: GOT EVENT: event_base: WIFI_EVENT, event_id: 4
I (2541) WIFI: Connected
I (3542) WIFI: GOT EVENT: event_base: IP_EVENT, event_id: 0
I (3542) WIFI: IP:192.168.1.24
I (3643) WIFI: Connected to ap SSID:Livebox-5E30
I (3643) TUYA: Tuya init
I (3643) TUYA: Tuya version: 3.2.7
08:15:11 INFO  tuya_iot.c:529: tuya_iot_init
08:15:11 INFO  tuya_endpoint.c:212: endpoint_mgr.region:EU
08:15:11 INFO  tuya_endpoint.c:213: endpoint_mgr.regist_key:5eUZ
08:15:11 INFO  tuya_endpoint.c:193: Host region:EU
08:15:11 INFO  http_client_wrapper.c:65: Sending HTTP POST request to h2.iot-dns.com/v2/url_config
08:15:12 INFO  mqtt_service.c:547: clientid:bf8b4d7fecee49f594a2hm
08:15:12 INFO  mqtt_service.c:548: username:bf8b4d7fecee49f594a2hm
08:15:12 INFO  mqtt_service.c:550: topic_in:smart/device/in/bf8b4d7fecee49f594a2hm
08:15:12 INFO  mqtt_service.c:551: topic_out:smart/device/out/bf8b4d7fecee49f594a2hm
08:15:12 INFO  mqtt_service.c:552: tuya_mqtt_start...
08:15:12 INFO  mqtt_service.c:393: mqtt client connected!
I (4546) TUYA: Device MQTT Connected!
08:15:12 INFO  tuya_iot.c:765: Tuya MQTT connected.
I (4659) MAIN: Starting fetch linky data task
I (4659) MAIN: Waiting for 50 seconds
I (4660) MAIN: Frame size: 1930
I (4660) main_task: Returned from app_main()
E (33368) LINKY: Buffer overflow: force decoding
I (33368) LINKY: Decoding frame... size: 16383
I (33372) LINKY: Found 719 groups
I (33432) LINKY: Found 41 fields
I (33432) WIFI: Getting time over NTP
I (38345) WIFI: The current date/time is: Fri Jun 21 08:15:46 2024
I (38346) LINKY: STGE: 0x3a4401
I (38346) LINKY: tomorrow color: 0
I (54661) MAIN: Frame size: 9587
I (54662) MAIN: -----------------------------------------------------------------
I (54662) MAIN: Waking up, VCondo: 5.106000
I (54663) LINKY: Mode: STD
I (54664) LINKY: Reading frame...
I (54664) LINKY: Reading frame: size: 9587 remaining: 7000
I (55665) LINKY: Reading frame: size: 10115 remaining: 5999
I (56665) LINKY: Reading frame: size: 10566 remaining: 4999
I (57665) LINKY: Reading frame: size: 11104 remaining: 3999
I (58665) LINKY: Reading frame: size: 11598 remaining: 2999
I (59665) LINKY: Reading frame: size: 12089 remaining: 1999
I (60665) LINKY: Reading frame: size: 12629 remaining: 999
I (61665) LINKY: Decoding frame... size: 13083
I (61668) LINKY: Found 574 groups
I (61716) LINKY: Found 41 fields
I (61716) WIFI: Getting time over NTP
I (61717) WIFI: The current date/time is: Fri Jun 21 08:16:09 2024
I (61717) LINKY: STGE: 0x3a4401
I (61718) LINKY: tomorrow color: 0
I (61818) MAIN: Sending data to TUYA
I (61818) TUYA: Send data to tuya
E (61819) TUYA: Unknown Linky mode: 1
E (61819) TUYA: Unknown contract: 1
I (61821) TUYA: JSON: {"101":"812064109667","107":"ANY","108":" HEURE  PLEINE  ","127":2,"131":244,"102":6,"122":575,"135":2630,"103":60,"105":"STANDARD","106":"MONOPHASE","104":61}
I (61860) TUYA: Send data to tuya OK
I (61860) MAIN: Checking for update
I (61864) OTA: Trying to get version from https://update.gammatroniques.fr/ticmeter/manifest.json
I (62761) OTA: HTTP Status = 200, content_length = 1108
I (62766) OTA: Current Version: V3.2.7
I (62766) OTA: Latest version: V3.2.7
I (62767) OTA: Target: esp32c6
I (62767) OTA: HW Version: 
I (62767) OTA: APP URL: https://update.gammatroniques.fr/ticmeter/download/TICMeter.bin
I (62768) OTA: Storage URL: https://update.gammatroniques.fr/ticmeter/download/storage.bin
I (62769) OTA: MD5: 
W (62769) OTA: No update available
I (62770) MAIN: Free heap memory: 100140
I (62770) MAIN: Heap: we gained 100140 bytes
I (62771) MAIN: Waiting for 50 seconds
I (62773) MAIN: Frame size: 580

Firmware version

V3.2.7

Steps for reproducing the error

No response

What I've already tested

No response

Relevant log output

No response

Johnny-57 commented 5 days ago

bonjour j ai bien reçu le Ticmeter version Tuya, J arrive bien a le faire reconnaitre dans l application tuya et lui mettre le wifi et après plus rien ne se passe il ne remonte aucune information du Linky quand je regarde dans mon wifi ( il est bien présent mais il n a aucune activité ) Que faire ?

xmow49 commented 5 days ago

Slt, Le problème a été identifié, une update sera disponible courrant de la semaine prochaine.

xmow49 commented 2 days ago

Normalement le problème est résolue dans la dernière version https://github.com/GammaTroniques/TICMeter/releases/tag/V3.2.8

Spomky commented 2 days ago

Bonjour,

Je viens de mettre à jour (version 3.2.8) et j'ai bien une remontée d'information sur Tuya 🎉. Le compteur est en mode standard.

Screenshot_20240630-163137 - Copie

J'ai noté 2 choses toutefois:

J'imagine que vous améliorerez l'interface Tuya dans un second temps. En tous cas ça marche. Bravo 🙌🏼 Screenshot_20240630-163213 - Copie

Johnny-57 commented 1 day ago

Bonjour J ai fais la mise è jour ....Mais toujours aucune remonté d information thumbnail_Screenshot_2024-07-01-09-07-07-25_a3b3f7ff182fbca1933b088238f0f0da thumbnail_Screenshot_2024-07-01-09-07-22-65_a3b3f7ff182fbca1933b088238f0f0da thumbnail_Screenshot_2024-07-01-09-07-34-11_a3b3f7ff182fbca1933b088238f0f0da

Johnny-57 commented 1 day ago

Bonjour

J'ai fait la mise à jour 3.2.8 Mais toujours aucune remonté d'information. Et le wifi disparait après quelques secondes quand je le regarde dans ma box pourtant elle est 50 centimètres du Ticmeter et le wifi de ma box est bien reconnue par d autres application Que faire Merci


De : Dorian Benech @.> Envoyé : dimanche 30 juin 2024 15:46 À : GammaTroniques/TICMeter @.> Cc : Johnny-57 @.>; Comment @.> Objet : Re: [GammaTroniques/TICMeter] Tuya STD - Pas de remonté d'information dans l'app (Issue #18)

Normalement le problème est résolue dans la dernière version https://github.com/GammaTroniques/TICMeter/releases/tag/V3.2.8

— Reply to this email directly, view it on GitHubhttps://github.com/GammaTroniques/TICMeter/issues/18#issuecomment-2198569249, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BJLILMNEQJO4WKN4U3MDY33ZKAD3ZAVCNFSM6AAAAABJWK4N2SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJYGU3DSMRUHE. You are receiving this because you commented.Message ID: @.***>

xmow49 commented 1 day ago

@Johnny-57 Merci pour ton retour C'est normal qu'il ne reste pas connecté à la box: il se met en veille. Pour ton problème, je pense avoir trouvé 😅. Quand la V3.2.9 sera sortie, ca devrait etre résolue.

Johnny-57 commented 1 day ago

Ok merci pour ta réponse en attendant la nouvelle version Bonne journée


De : Dorian Benech @.> Envoyé : lundi 1 juillet 2024 19:07 À : GammaTroniques/TICMeter @.> Cc : Johnny-57 @.>; Mention @.> Objet : Re: [GammaTroniques/TICMeter] Tuya STD - Pas de remonté d'information dans l'app (Issue #18)

@Johnny-57https://github.com/Johnny-57 Merci pour ton retour C'est normal qu'il ne reste pas connecté à la box: il se met en veille. Pour ton problème, je pense avoir trouvé 😅. Quand la V3.2.9 sera sortie, ca devrait etre résolue.

— Reply to this email directly, view it on GitHubhttps://github.com/GammaTroniques/TICMeter/issues/18#issuecomment-2200645196, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BJLILMN6ZLS4KVYIUTQJNZTZKGEDTAVCNFSM6AAAAABJWK4N2SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBQGY2DKMJZGY. You are receiving this because you were mentioned.Message ID: @.***>