logo elektroda
logo elektroda
X

How to Change Firmware on PH-W218 WiFi 8-in-1 Water Quality Tester with CB3S Chip?

Upright6771 9387 98
ADVERTISEMENT
  • #91 21645902
    Upright6771
    Level 4  
    After removing the attribute using the MQTT Explorer, it worked again for a few days. It seems as if the firmware resets the unit_of_meas attribute after a few days. But not with every update.
  • ADVERTISEMENT
  • #92 21645904
    p.kaczmarek2
    Moderator Smart Home
    Ok, I've tested, and I am confident that unit_of_meas is NOT published for Ph channel type in the current release version.
    This self test is passing:
    Screenshot from Visual Studio showing unit test omitting unit_of_meas for ChType_Ph
    This is what is send:
    Code: JSON
    Log in, to see the code

    Are you really sure that unit_of_meas gets added for ChType_Ph channel type, specifically?
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #93 21645907
    insmod
    Level 29  
    Perhaps HA discovery was not re-run and HA picks previous discovery config?
  • ADVERTISEMENT
  • #94 21645909
    p.kaczmarek2
    Moderator Smart Home
    I am not sure right now, but the safest bet would be to remove device entirely and repair via HA Discovery.
    Helpful post? Buy me a coffee.
  • #95 21645926
    Upright6771
    Level 4  
    Thanks, I'll try that and keep you updated
  • ADVERTISEMENT
  • #96 21702732
    aelorenzo
    Level 2  
    Hi,

    Is there any tutorial to update the PH-W218 firmware?

    This topic seems to be quite complex for beginners.

    Thank you
  • #97 21702875
    p.kaczmarek2
    Moderator Smart Home
    I didn't have this device yet, but I can try to help you. Have you managed to flash it yet? Do you refer to firmware change (first step) or obk configuration (second step)?
    Helpful post? Buy me a coffee.
  • #98 21709584
    aelorenzo
    Level 2  
    I refer to both steps, so sorry.

    Is the firmware uploaded only to the Wi-Fi chip?

    I could work in a step-by-step guide for this device.

    Thank you
  • #99 21719154
    ablanc
    Level 1  
    Hola buen día, soy Alejandro, estimados he perdido la fuente de poder del PH-W218, alguien podría indicarme el voltaje y la configuración del conector para poder hacer una fuente de poder, muchas gracias

Topic summary

The discussion focuses on changing the firmware of the PH-W218 WiFi 8-in-1 Water Quality Tester equipped with a CB3S chip, which uses a TuyaMCU architecture. Users share experiences and solutions for flashing the device with OpenBeken firmware, integrating it with Home Assistant, and handling TuyaMCU datapoints (dpIDs) for various water quality parameters such as temperature, pH, TDS, ORP, salinity, and others. Key technical points include establishing reliable UART communication between the WiFi module and the secondary MCU, setting the correct baud rate (commonly 9600), and ensuring physical RX/TX connections are intact to receive TuyaMCU heartbeat packets. Firmware backup and restoration using BK7231GUIFlashTool is recommended before flashing. Configuration involves scripting autoexec.bat with commands to start drivers, define channel types, link dpIDs, and publish data with proper formatting and decimal precision. Challenges discussed include initial lack of data updates due to connection issues, formatting numeric values correctly, and occasional unreliability of tuyaMcu_sendState commands. Users also explore disabling unnecessary drivers like tmSensor and managing button labels. OTA updates and applying recent OpenBeken commits add support for missing channel types and improve functionality. For calibration reset issues on the original Tuya firmware, suggestions include using the Tuya app's "Remove and wipe data" option. Overall, successful firmware replacement and integration require careful hardware inspection, correct UART settings, and tailored configuration scripts to map sensor data accurately to Home Assistant.
Summary generated by the language model.
ADVERTISEMENT