home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.73k stars 29.99k forks source link

Joghee Water Timer not switching on, all other controls (including switching off ) work.... #113737

Open Remko76 opened 6 months ago

Remko76 commented 6 months ago

The problem

I have added a Joghee water valve (Smart Water Timer (nxquc5lb)) to my SmartLife app. This is a BLE device with a Wifi Hub, so I first added the Hub, disabled bluetooth and than added the Watervalve to the Hub. So far so good, Valve is there and working. Now to the issue: Both the Hub and the Watervalve show up in Homeassistant with the corresponding entities and it all seems to work, however....Trying to swith the valve on does not work. When I turn it on through SmartLife I can turn it off again in Homeassistant, but somehow it does not seem to respond to turning the switch on through the Integration. All other entities seem to be ok (Battery Status, Watering Time) and I can also control the "WeatherDelay" option. Just turning on does not work.

I have removed and readded the integration, removed the device from smartlife and added back again, but I am at a loss here...

This is how it looks in Homeassistant image

What version of Home Assistant Core has the issue?

core-2024.3.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Tuya

Link to integration documentation on our website

https://www.home-assistant.io/integrations/tuya/

Diagnostics information

tuya-837cfd529737410e2fa2eb1ec3f6fd19-Water Timer-3443889243f9df1483a4c22f58c2a6c3.json

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 6 months ago

Hey there @tuya, @zlinoliver, @frenck, mind taking a look at this issue as it has been labeled with an integration (tuya) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `tuya` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign tuya` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


tuya documentation tuya source (message by IssueLinks)

Remko76 commented 6 months ago

Additional information...Leaving evrything untouched, the Valve entities change to unavailable after a certain amount of time. It is still available through the SmartLIfe app and works through that though. Getting it available in Homeassistant again means I need to delete it from SmartLIfe and re-add it again.

HenryLoenwind commented 4 months ago

Same here. And the watering season is starting, so it'd really be great if someone could have a look. Are there any logs we could pull to help?

And about the availability; mine seems to be unavailable quite often, too, but it always becomes available again by itself.

Edit: I think I have an idea what the problem might be. The watering time is not exposed in HA, so I think the integration turns the switch on for 0 seconds. The water timer is a bit different than electricity switches, it cannot be just turned on and stay that way. It only turns on for a predefined time (at least it shows up as predefined in the app, I suspect the app sends it with the turn-on command) that can be set in 1-minute increments between 1 minute and 24 hours. This makes sense for a battery-powered device that needs to hold a valve open (and lets water flow freely...).

HenryLoenwind commented 4 months ago

Small update on this; I did some testing. The SmartLife app also fails to turn the water timer on in a scene where you only select to turn on the valve. If you select to turn it on and set the timer in the same scene, it works:

image

So yes, the irrigation time must be set together with the valve for it to actually turn on.

PS: Controlling the valve by activating a scene that was created in the app in HA works. So there's a workaround.

issue-triage-workflows[bot] commented 1 month ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

HenryLoenwind commented 1 month ago

this hasn't magically fixed itself.

Edit: To sum up the issue: To turn on a water timer, an on-time has to be set; a boolean "on" isn't enough.

Remko76 commented 1 month ago

Agree, this control needs both the duration time as well as the on switch sent. We currently have no way of defining duration time. So this should be seen as enhancement.

superarturo15 commented 1 month ago

I have the same problem, switch on doesn't work, on the contrary switch off does. May be it is because it need a time of working.