Pool monitoring device Yieryi BLE-YL01 - Zigbee pH, ORP, Free chlorine, salinity etc

See my automation, testing every 30minutes during day time:

alias: Pool testing
description: ""
triggers:
  - minutes: /30
    trigger: time_pattern
conditions:
  - condition: sun
    after: sunrise
    before: sunset
    enabled: true
    before_offset: "-00:30:00"
  - condition: not
    conditions:
      - condition: state
        entity_id: sensor.pool_tester_temperature
        state: unavailable
actions:
  - repeat:
      count: 24
      sequence:
        - metadata: {}
          data:
            value: "0"
          target:
            entity_id: number.pool_tester_backlight_value
          action: number.set_value
        - delay:
            hours: 0
            minutes: 0
            seconds: 1
            milliseconds: 0
        - metadata: {}
          data:
            value: "1"
          target:
            entity_id: number.pool_tester_backlight_value
          action: number.set_value
        - delay:
            hours: 0
            minutes: 0
            seconds: 4
            milliseconds: 0
mode: single

1 Like

@Sikita , thanks for the quick reply.
For my understanding: you are doing the measurement every 30 minutes (when daytime) with 24 times of switching 0 to 1 and back?
If yes, why that often?

@stefan1983 It is necessary to keep device awake for up to 120 seconds to get accurate measurement. Switching the number do the job. Try it yourself…

2 Likes

@stefan1983 also see my previous post:

1 Like

thanks @Sikita
another question: I’m using the device in my spa (whirlpool) with is normally closed with a light-proofed cover. So the device won’t get any sunlight for some days.
What happen if the device is running out of battery and will be back in sunlight? Will it be re-charged again and working as before?
(or do we I also reconnect or re-calibrate it again?)
thanks

@Stefan83 I do not know this. Using it in pool outside. Consider wired tester, something like: https://www.aliexpress.com/item/1005005878832722.html

Can someone confirm it now works with ZHA?

My pool season has not started yet, hope it will be pulled before! Great news.

Hello, I can’t get the automation to work. The entity that has to change several values ​​from zero to 1 is “pool_tester_backlight_value” and in the config file it is called “Request”???

Hi, change the automation to your config setting.

ok for this for automation?

alias: Pool testing
description: “”
triggers:

  • minutes: /30
    trigger: time_pattern
    conditions:
  • condition: sun
    after: sunrise
    before: sunset
    enabled: true
    before_offset: “-00:30:00”
  • condition: not
    conditions:
    • condition: state
      entity_id: sensor.pool_tester_temperature
      state: unavailable
      actions:
  • repeat:
    count: 24
    sequence:
    - metadata: {}
    data:
    value: “0”
    target:
    entity_id: number.pool_tester_backlight_value
    action: number.set_value
    - delay:
    hours: 0
    minutes: 0
    seconds: 1
    milliseconds: 0
    - metadata: {}
    data:
    value: “1”
    target:
    entity_id: number.pool_tester_backlight_value
    action: number.set_value
    - delay:
    hours: 0
    minutes: 0
    seconds: 4
    milliseconds: 0
    mode: single

And Config this :

  • number:
    friendly_name: pool_tester_backlight_value
    entity_category: config
    min_value: 0.0
    max_value: 1.0
    step_size: 1.0
    restore_on_reconnect: true
    is_passive_entity: true
    id: ‘105’
    icon: “”

So it works, but the ORP is very low at 22mV, so there is no indication of chlorine?

You do not get chlorine result when ORP is low, you need to filtrate more.

Hello, I recently purchased this (or a very similar pool monitor) and a Zigbee gateway. It shows up in Smartlife app, and I already have Tuya Local in my HA set up for a Power Clamp. But when trying to add this device, it shows up fine, but at the end of the configuration I am prompted to enter the type of device
… but it isn’t any of these, and so will not include off of the needed entities.

… not sure what to do next, as others indicate that this integration is working well with Tuya Local

Hi, you need to use Local Tuya by xZetsubou to get this working.

Thanks @Sikita - have added that - but now having trouble configuring the device. It lists the Zigbee hub as a detercted device, but then I get an error “Connection to device succeeded but no datapoints found, please try again.” Also, where do I enter the sub-device key - for the actual water monitor?

You should be able to discover sub-devices by Setting → Add new device in Local Tuya integration. Also check that you can see the device in Tuya integration.

When I add the ID of the gateway, I get the previous error - but when I then add the entity IDs ie 2,7,10 etc - then it is added. When I configure those via the UI - they get added … but there are no proper values (ie all -1) … I am getting closer, but missing something … I am not sure where I would add your YAML set-up

You can set parameters of new device when adding it via UI. Then you can proceed as per my config and entities ID.

I ended up giving the gateway a static IP address (as I went down a bit of a Zigbee2MQTT rabbit hole that finally wasn’t necessary) - and then reinitialising both the gateway and the monitor - and then I could find the monitor, and manually add the DPs. Looking at the device debugging in the Tuya Developer portal - it looks like TDS is there for my device (szjcy) as entity 1. I now just need to work out the automation bit. Thanks for your help