Skip to content
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

Adding Support for BLE-YL01 Waterquality tester #2020

Merged
merged 4 commits into from
Jun 22, 2024
Merged

Conversation

Cyrelion
Copy link
Contributor

BLE-YL01

@Cyrelion
Copy link
Contributor Author

The only left problem is that it looks like the device isn't pushing values on a regular basis, only if you open the mobile app. Don't know if there is a switch I can enable on the device.yaml to do a regular poll

@make-all
Copy link
Owner

make-all commented Jun 18, 2024

On some other devices, users have observed that writing to any writable dp will trigger a report of all the sensor values. This seems to be what the app is doing behind the scenes. But you will probably want some kind of enable/disable on that, like the app only doing it when you are actively viewing it, as it will likely cause battery drain on the sensor.

@Cyrelion
Copy link
Contributor Author

That doesn't work :-(

@make-all make-all merged commit 4a60754 into make-all:main Jun 22, 2024
4 checks passed
@robinhood-code
Copy link

I'm using this and the TDS is not reporting (always 0) but it's showing in the Tuya app. Anyone else?

Also can we implement the Calibration button? These are the dps below:

{\"abilityId\":114,\"accessMode\":\"rw\",\"code\":\"phcal\",\"description\":\"\",\"name\":\"pH Calibration\",\"typeSpec\":{\"type\":\"value\",\"max\":1400,\"min\":0,\"scale\":2,\"step\":1,\"unit\":\"\"}},
{\"abilityId\":115,\"accessMode\":\"rw\",\"code\":\"eccal\",\"description\":\"\",\"name\":\"EC Calibration\",\"typeSpec\":{\"type\":\"value\",\"max\":20000,\"min\":0,\"scale\":0,\"step\":1,\"unit\":\"us/cm\"}},
{\"abilityId\":116,\"accessMode\":\"rw\",\"code\":\"orpcal\",\"description\":\"\",\"name\":\"ORP Calibration\",\"typeSpec\":{\"type\":\"value\",\"max\":1200,\"min\":-1200,\"scale\":0,\"step\":1,\"unit\":\"mV\"}},
{\"abilityId\":118,\"accessMode\":\"rw\",\"code\":\"phreset\",\"description\":\"\",\"name\":\"pH Reset\",\"typeSpec\":{\"type\":\"bool\"}}]}]}"

@Cyrelion
Copy link
Contributor Author

I can‘t test anymore because I’ve send back the device as it only send updates when I’ve opened the Tuya app. This doesn’t work for my use-case

@make-all
Copy link
Owner

105 is also missing from the current config, the name in tuya docs is "backightValue", and it has a range of 0-16M. It might be brightness for the backlight, but your log is showing 0, so maybe it is not useful.

@robinhood-code
Copy link

robinhood-code commented Jun 30, 2024

the backlight was off (104) when the log was captured, not sure if that made the backlight value to 0.

Just tested, turned the light on and the backlight value changed to 1:

{
  "code": "backlight",
  "custom_name": "",
  "dp_id": 104,
  "time": 1719753603562,
  "type": "bool",
  "value": true
},
{
  "code": "backlight_value",
  "custom_name": "",
  "dp_id": 105,
  "time": 1719753842772,
  "type": "value",
  "value": 1
},

@robinhood-code
Copy link

robinhood-code commented Jul 1, 2024

@Cyrelion just curious what alternative are you switching to ? the device is really unreliable today I've only added salt to the pool and now the probe is reporting 0 for pH.

@Cyrelion
Copy link
Contributor Author

Cyrelion commented Jul 1, 2024

@robinhood-code No, didn't found any alternatives yet. Yes it's absolutely not useable, I'm still searching and open for suggestions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants