-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wrong Json with PCF8574 sensor (missing curly brace) #12088
Comments
Looks like a simple omission at the end of line 222 in the driver |
Thx for reporting |
thanks to you for fixing so quickly and to @sfromis to help me again and again! |
Fix PCF8574 JSON (arendst#12088)
I'm still having problems with this. In my case there is one currly brace too many at the end. The given output:
how it should be:
|
Fix wrong Json with PCF8574 sensor (#12088)
Thx for reporting. Pls retry latest development release (pre-compiled available in an hour) |
Issue is fixed. Works now correctly, thanks! |
* Use Tasmota Core32 * Use Tasmota core 32 * Tasmota core32 * use esptoolpy V.3.1.0 * esptoolpy v.3.10 for solo1 * LITTLEFS is a lib in Tasmota core32 * Update platformio_tasmota32.ini * Berry fix #102 * Fix wrong Json with PCF8574 sensor Fix wrong Json with PCF8574 sensor (arendst#12088) * Update RELEASENOTES.md * Remove CCLoader from zigbee binary * Enable CCLoader in binary tasmota-zigbee * Esp32c3 fix wrong baudrate * Esp32c3 fix template command and Web UI * Add command ``MqttWifiTimeout 100..20000`` Add command ``MqttWifiTimeout 100..20000`` to control MQTT Wi-Fi connection timeout default set to 200 mS (arendst#12222) * Berry report bug fix #106 * Fix NEO_RGBW * Allow Captive Portal to be optional * Fix Berry documentation link * Improve behavior of color2 for unlinked RGBW and RGBWW lights * LVGL * tasmota32-lvgl.bin * Remove exceptions in build flags * No exceptions to build flags * Use really new core * Enable exceptions for bluetooth * Fix BT build (need exceptions) * Remove exceptions from BLE * Berry improve inheritance #107 * RM exceptions extra handling BT solved with PR arendst#12384 * Rm BT exceptions * Bump version 9.5.0.1 * remove speed settings * Force ESP32 defines Force ESP32 defines USE_UFILESYS, GUI_TRASH_FILE and #define GUI_EDIT_FILE * FSMan: add file deletion confirmation * fix RO translation file * Update xsns_05_ds18x20_esp32.ino * rm upload speed * rm upload speed * Add 4M board variants * rm upload speed * rm upload speed * Try with override env:tasmota32_base * rm duplicate lib_extra_dirs * Override via [env] * Create esp8266_zbbridge.json * Use esp8266_zbbridge board * Update platformio_override_sample.ini * rm outdated info * Update pt_BR.h Update labels (Translate new ones and correct some old ones). Adjust to brazilian portuguese * Ethernet fix for ESP32 * #define USE_WS2812 for lvgl build * Fix GUI console initial update time * Fix s2 * Berry added I2C_Driver class and patches * Updated MPUxxx driver * Add Partition Manager v0 in Berry * Added features * Speed up initial GUI console refresh * Fix ESP32 Webcam add boundary marker before sending mjpeg image (arendst#12376) * Update * Fix DDS238-2 wrong reactive power value (arendst#12283) * Remove ProgramFlashSize from ESP32 Gui * Fix compilation when USE_UFILESYS is not defined * Simplified configuration for ir-full, tasmota-ircustom no more needed * Remove unwanted files * Update changelog * Fix build * Fix build * Berry simplify Driver class * Add ESP-NOW hooks * make override possible for flags * More refactor Platformio * wrong link to platform Co-authored-by: Stephan Hadinger <stephan.hadinger@gmail.com> Co-authored-by: Theo Arends <11044339+arendst@users.noreply.github.com> Co-authored-by: s-hadinger <49731213+s-hadinger@users.noreply.github.com> Co-authored-by: Adrian Scillato <35405447+ascillato@users.noreply.github.com> Co-authored-by: Erik <erik@montnemery.com> Co-authored-by: Barbudor <barbudor@barbudor.net> Co-authored-by: Serge <60098151+Xjeater@users.noreply.github.com> Co-authored-by: Jansen Arruda <jansen.arruda@gmail.com>
PROBLEM DESCRIPTION
json format error on PCF8574 driver usage with sensor enabled
REQUESTED INFORMATION
Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!
Backlog Template; Module; GPIO 255
:Backlog Rule1; Rule2; Rule3
:Status 0
:weblog
to 4 and then, when you experience your issue, provide the output of the Console log:TO REPRODUCE
compile with:
EXPECTED BEHAVIOUR
this is the output received:
13:19:07.459 MQT: tele/tasmota_156/SENSOR = {"Time":"2021-05-12T13:19:07","PCF8574-1":{"D0":1,"D1":1,"D2":1,"D3":1,"D4":1,"D5":1,"D6":1,"D7":1,"PCF8574-2":{"D0":1,"D1":1,"D2":1,"D3":1,"D4":0,"D5":1,"D6":1,"D7":1}}
it actually is not valid JSON. A curly brace after the first sensor data is missing.
should be:
13:19:07.459 MQT: tele/tasmota_156/SENSOR = {"Time":"2021-05-12T13:19:07","PCF8574-1":{"D0":1,"D1":1,"D2":1,"D3":1,"D4":1,"D5":1,"D6":1,"D7":1###right here###,"PCF8574-2":{"D0":1,"D1":1,"D2":1,"D3":1,"D4":0,"D5":1,"D6":1,"D7":1}}
SCREENSHOTS
If applicable, add screenshots to help explain your problem.
ADDITIONAL CONTEXT
Add any other context about the problem here.
(Please, remember to close the issue when the problem has been addressed)
The text was updated successfully, but these errors were encountered: