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

fix(config): support Comet parameters properly #6583

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Mart124
Copy link

@Mart124 Mart124 commented Jan 2, 2024

Hello,

This PR fixes / enhances the Eurotronic Comet Z-Wave in various ways.

1. Manufacturer specific mode (1st commit)

I have Eurotronic CometZ-Wave devices, which report like this :
https://pastebin.com/raw/zbF6cpfY

As for the Eurotronic Spirit devices, the Manufacturer mode is supported / documented, but not reported by the device.

        "4-64-0-mode": {
          "endpoint": 0,
          "commandClass": 64,
          "commandClassName": "Thermostat Mode",
          "property": "mode",
          "propertyName": "mode",
          "ccVersion": 3,
          "metadata": {
            "type": "number",
            "readable": true,
            "writeable": true,
            "label": "Thermostat mode",
            "min": 0,
            "max": 255,
            "states": {
              "0": "Off",
              "1": "Heat",
              "11": "Energy heat",
              "15": "Full power"
            },
            "stateful": true,
            "secret": false
          },
          "value": 1
        },

Interestingly enough is the Full power mode, reported by the device, but not documented by Eurotronic.
Device's firmware may have been updated since the documentation...

Let's then apply the same modification as for the Spirit device :
https://github.com/zwave-js/node-zwave-js/blob/master/packages/config/config/devices/0x0148/spirit.json

Result :

image

Note that when enabling the Manufacturer specific mode in Home Assistant through its default / builtin thermostat, it works, but also reports the following warning :
Failed to call service climate/set_hvac_mode. expected HVACMode or one of 'off', 'heat', 'cool', 'heat_cool', 'auto', 'dry', 'fan_only' for dictionary value @ data['hvac_mode']

When setting the Manufacturer specific mode manually (through Home Assistant Developer Tools / zwave_js.set_value), the warning does not trigger. Should then be related to the default / builtin thermostat itself.

2. Supervision (2nd commit)

There's a report here indicating that parameters can't be set.
As found on other devices, seems like Comet device does not like supervision. Let's then disable it.
It then fixes home-assistant/core#103254.
Should a report be made to Eurotronic about supervision ?

3. Valve opening (3rd commit)

Some devices report valve opening parameter, some don't, may be related to firmware version (or to template used, I'm not sure here...).
But even when not initially reported by the device, it is supported.
Let's then enable this useful option.

Result (enabled after 6:00) :

image

Thank you very much 👍

@zwave-js-assistant zwave-js-assistant bot added the config ⚙ Configuration issues or updates label Jan 2, 2024
@Mart124 Mart124 changed the title Comet manufacturer specific mode fix(config): support Comet manufacturer specific mode Jan 2, 2024
@Mart124 Mart124 changed the title fix(config): support Comet manufacturer specific mode fix(config): support Comet parameters properly Jan 5, 2024
@Mart124
Copy link
Author

Mart124 commented Jan 5, 2024

@AlCalzone would really be glad to see this merged into next release, if possible of course 😃
Thank you very much 👍

@gnipp
Copy link

gnipp commented Jan 23, 2024

Please tell me, how I may test it. I would like to add a review.
(Path to a descriptions is sufficient - I simply do not know, how to put the code on my Home Assistant instance.)
Thank you.

@Mart124
Copy link
Author

Mart124 commented Jan 24, 2024

Unfortunately there's no "easy" solution.
One could be to migrate from Z-Wave JS to Z-Wave JS UI and to create your custom / own template file based on this PR.

@AlCalzone
Copy link
Member

I'll review when I find the time --> #6521

@gnipp
Copy link

gnipp commented Apr 19, 2024

I hope, your maintenance issue #6521 was successful so far. There is no better adventure than that. All the best for you and your family!
My I however dare to ask if I can support somehow?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config ⚙ Configuration issues or updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Z-wave climate configuration not properly save
3 participants