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

Sonoff SWV goes direct OFF-status after putting ON #1497

Open
brononius opened this issue Sep 22, 2024 · 6 comments
Open

Sonoff SWV goes direct OFF-status after putting ON #1497

brononius opened this issue Sep 22, 2024 · 6 comments
Assignees
Labels
enhancement New feature or request

Comments

@brononius
Copy link

I’m new to Zigbee and using a Sonoff ZB Bridge-P with a Sonoff SWV (Smart Water Valve). I’ve set up the SonoffLAN integration via HACS, connected through the ‘AUTO’ method.

The valve appears as a device in Home Assistant after adding it through the eWeLink app and refreshing HA.

The problem:

  1. When I turn the valve ON, the status in HA immediately switches to OFF, but the valve physically turns ON.
  2. Turning the valve ON again, the status in HA stays ON.
  3. Turning the valve OFF works correctly - both the status and the physical valve turn OFF.
  4. Through the eWeLink app, it seems to be working fine.

Any suggestions on how to resolve this status mismatch?

Thanks in advance for any assistance!

@AlexxIT AlexxIT added the question Further information is requested label Sep 23, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Sep 23, 2024

@brononius
Copy link
Author

For the moment i've added a small rule to put it a second time ON. This works.

alias: SonOffKraanStatusCheck
description: ""
trigger:
  - platform: device
    type: turned_on
    device_id: 68f418251d408947863c809f26d032ed
    entity_id: 1ef333dd8c261fbe01156022326615bf
    domain: switch
condition: []
action:
  - delay:
      hours: 0
      minutes: 0
      seconds: 1
      milliseconds: 0
  - type: turn_on
    device_id: 68f418251d408947863c809f26d032ed
    entity_id: 1ef333dd8c261fbe01156022326615bf
    domain: switch
mode: single

I didn't found any issues in the logs that relate to this.

The diagnostics:
sonoff-01J73N995EM1AQ88AF83B0VQ5J-KraanSonoff1-68f418251d408947863c809f26d032ed.json

@AlexxIT
Copy link
Owner

AlexxIT commented Sep 24, 2024

What of this params do you need in Hass? Looks like switch and battery. Maybe todayWaterUsage.

"device": {
      "uiid": 7027,
      "params": {
        "fwVersion": "1.0.3",
        "subDevRssi": -38,
        "battery": 100,
        "trigTime": "1725626515000",
        "supportPowConfig": 1,
        "switch": false,
        "realIrrigationVolume": 3,
        "realIrrigationVolumeGal": 0,
        "controlMode": "manual",
        "todayWaterUsage": 8,
        "todayWaterUsageGal": 2,
        "runningMode": 2,
        "exceptionReport": [],
        "hasException": false,
        "only_device": {
          "ota": "success",
          "ota_fail_reason": 0
        },
        "subOtaInfo": {
          "state": 0,
          "reason": 0,
          "stateTime": "1727005559000"
        },
        "endIrrigationTime": "1727011383000",
        "lastIrrigationTime": "1727010803000",
        "sledOnline": "off"
      },
      "model": "SWV",
      "online": true,
      "local": null,
      "localtype": null,
      "host": null,
      "deviceid": "a4800a275a"
    }

@AlexxIT AlexxIT added enhancement New feature or request and removed question Further information is requested labels Sep 24, 2024
@AlexxIT AlexxIT self-assigned this Sep 24, 2024
@ramiroastur
Copy link

I got the same problem with SonOff Minir4M but I can´t find a way to fix it :(

@jcarugati
Copy link

I'm having a similar issue with the SWV. I can turn it on from HA using cloud but the switch state never stays ON. And then I can't turn it OFF, even calling the service directly. I have to turn it off from the ewelink app 🤔

@aferende
Copy link

aferende commented Oct 28, 2024

Same behavior. I'm just going with the suggested workaround.

I think that 3 params suggested are the best choice.

Ty for your time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants