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

Entity for controlling valve was not created #170

Open
tj335 opened this issue May 28, 2022 · 3 comments
Open

Entity for controlling valve was not created #170

tj335 opened this issue May 28, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@tj335
Copy link

tj335 commented May 28, 2022

The only entities that were created in Home Assistant for this device was for the temperature and the water sensor. There’s no entity for controlling the valve.
Here are the device details:

{
    "id": "1389",
    "name": "Zooz ZAC36 Ball Valve Controller",
    "label": "Main Water Shutoff",
    "type": "Zooz ZAC36 Ball Valve Controller",
    "attributes": [
        {
            "name": "temperature",
            "currentValue": 72.9,
            "dataType": "NUMBER"
        },
        {
            "name": "water",
            "currentValue": "dry",
            "dataType": "ENUM",
            "values": [
                "wet",
                "dry"
            ]
        },
        {
            "name": "valve",
            "currentValue": "open",
            "dataType": "ENUM",
            "values": [
                "open",
                "closed"
            ]
        }
    ],
    "capabilities": [
        "WaterSensor",
        {
            "attributes": [
                {
                    "name": "water",
                    "dataType": null
                }
            ]
        },
        "Configuration",
        "Refresh",
        "Valve",
        {
            "attributes": [
                {
                    "name": "valve",
                    "dataType": null
                }
            ]
        },
        "TemperatureMeasurement",
        {
            "attributes": [
                {
                    "name": "temperature",
                    "dataType": null
                }
            ]
        }
    ],
    "commands": [
        "close",
        "configure",
        "open",
        "refresh"
    ]
}
@jason0x43 jason0x43 added the enhancement New feature or request label Jun 1, 2022
@jason0x43
Copy link
Owner

The integration doesn't yet handle water valves.

From the docs it looks like a valve just supports open and close commands. Home Assistant doesn't have a "water valve" device type (that I'm aware of), but it could be modeled as a simple switch, or maybe a light control if it can be partially opened or closed.

@jason0x43
Copy link
Owner

You should be able to test it using the send_command Hubitat service.

  1. Open the Services tab in Developer Tools in Hubitat.
  2. Choose the "Hubitat: send_command" service
  3. For the entity, just choose any one of the entities that were created for the valve device
  4. For the command, put "open"
  5. Click call service

@tj335
Copy link
Author

tj335 commented Jun 1, 2022

Thanks for getting back to me. I thought the valve was implemented after I searched on the community site thread, sorry for the confusion.
As a workaround I created a virtual switch in Hubitat and exposed that to HA. Then I have a rule in Hubitat to control the valve based on the virtual switch.
Calling the service as you described worked.

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

2 participants