Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Only proceed if first byte is 1 (previous code would proceed nevertheless in case of EZO_CALIBRATION commands) - Truncate returned value only for EZO_READ commands (previous code would truncate it always, making parsing impossible)
- Loading branch information
cd5dae3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw from the writeup that you would be able to implement a breaking change in order to get the RGB data parsed. I was wondering if you could do the same for the HUM and EC sensors as they also have comma separated values?
I was trying to figure out how to get a readout of the parsed values by creating a template sensor (or binary sensor) utilizing lambdas and
strtok
, but I can't quite get there (no coding education). If you were able to figure it out, perhaps adding a description on how to template the comma separated values would give users a solution without introducing a breaking change?Thanks!!
cd5dae3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This out be great to get all data in the string parsed out. Humidity would be a perfect sensor for this. It sends out Humidity, Temp and Dew Point. In ESPHome, we can only utilize one of those sensors.... But we technically have 3... Although not as important, an EC sensor would benefit from this as well. Salinity, Specific Gravity, TDS and Conductivity, all at once.