logo elektroda
logo elektroda
X
logo elektroda

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

Upright6771 8451 94
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 27  
    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

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