Skip to content

Use interviewed setpoint byte size and precision in setpoint command#2458

Open
Cyberwizzard wants to merge 15 commits into
OpenZWave:masterfrom
Cyberwizzard:master
Open

Use interviewed setpoint byte size and precision in setpoint command#2458
Cyberwizzard wants to merge 15 commits into
OpenZWave:masterfrom
Cyberwizzard:master

Conversation

@Cyberwizzard

Copy link
Copy Markdown

HeatIt has a thermostat called Z-TRM3 (and perhaps others from the same manufacturer) which does not work with OZW currently.

Investigation by the manufacturer and various customers resulted in the conclusion that HeatIt implemented the setpoint command in such a way that it requires 2 byte setpoint values, as that is the field size advertised in the capability report (for both min and max temp they use 2 bytes in that report). They claim this is how they have had it certified for Z-wave compatibility and thus changing this is not possible without losing certification. At the same time, all the sold units so far and those in stores already are using firmware with this limitation. Also see #2435 for more information and links to other sources on this topic.

So to lower the threshold and prevent users from having to do firmware updates (which in some cases seems to require manufacturer specific programming cables), I patched OZW instead.

There is now a new compat flag called "EnforceMinSizePrecision" (bool) which enables caching the minimum byte size and minimum precision (as that was also indicated in the failure analysis report from HeatIt as attached to #2435) as received during decoding of the capability report. If these values are present when calling SetPoint, they will be applied to enforce the value has at least that many bytes and the desired precision.

For all thermostats which do not have this, the default is to use the minimum number of bytes and minimum required precision, as was before.

On my search for information while initially troubleshooting I think I also found other thermostats which might have the same issue but I can not find it in my history so these can receive the compat flag later in their XML.

How to apply for existing users: refresh the node so the XML is reloaded, then exclude each Z-TRM3 and include it again. This is mandatory as the limits are only sent to OZW when including the node, so existing nodes need to be re-added. (Unless someone knows of another trick of getting the setpoint capability report after refreshing the XML).

@Cyberwizzard

Copy link
Copy Markdown
Author

@Fishwaldo anything I can do to help in the inclusion of this pull request?

@Cyberwizzard

Copy link
Copy Markdown
Author

@nechry anything I can do to help in the inclusion of this pull request?

@pavel-z1

Copy link
Copy Markdown

I need this fix too. Can someone approve this PR?

@Hatzl

Hatzl commented Nov 28, 2020

Copy link
Copy Markdown
Contributor

I‘m also interested. What‘s missing for this PR?

@DoleoR

DoleoR commented Dec 6, 2020

Copy link
Copy Markdown

I'm also very interested.

However, i also have an addidtional question.

How can I download the comitted changes to my openhabian installation? Do I have to modify the files, or can I "download" them somehow?

@Cyberwizzard

Cyberwizzard commented Dec 6, 2020 via email

Copy link
Copy Markdown
Author

@kpine

kpine commented Dec 7, 2020

Copy link
Copy Markdown
Contributor

@DoleoR

How can I download the comitted changes to my openhabian installation?

If you are using OpenHAB as your automation software, you will need to seek support from that project. OpenHAB does not use OpenZWave.

@QuadDepo

QuadDepo commented Dec 8, 2020

Copy link
Copy Markdown

Also hoping this will be merged soon 👍

@hagen-p

hagen-p commented Dec 12, 2020

Copy link
Copy Markdown

+1

@GeitjeG

GeitjeG commented Dec 16, 2020

Copy link
Copy Markdown

+1, right now I cannot set the thermostat from Domoticz...

@Fishwaldo Fishwaldo self-assigned this Dec 17, 2020
@gruifin

gruifin commented Dec 23, 2020

Copy link
Copy Markdown

+1

@pavel-z1

Copy link
Copy Markdown

Hi @Fishwaldo
Can you help please with review of this PR?

@LarsBK

LarsBK commented Jan 6, 2021

Copy link
Copy Markdown

Hi!
I have 3 Z-TRM3 thermostats running fw 4.0. I experience bug #2435 when running OpenZwave:master. Cyberwizzard:master resolves the issue and I can control my thermostats from homeassistant :)

@larstobi

larstobi commented Jan 7, 2021

Copy link
Copy Markdown
Contributor

Hi! I upgraded the firmware on mine to the version that fixes this issue. I used OTA with zwavejs2mqtt to upgrade.

@Cyberwizzard

Copy link
Copy Markdown
Author

@nechry any reason this pull request is being ignored?

@GeitjeG

GeitjeG commented Jan 21, 2021

Copy link
Copy Markdown

I'm also wondering. Hope this can be merged, so I can use my device. I myself have not the knowledge to resolve the conflict or build/compile it....

@nechry

nechry commented Jan 21, 2021

Copy link
Copy Markdown
Member

@nechry any reason this pull request is being ignored?

yes, @Fishwaldo initially started reviewing this code and he will finish.

@simeneide

Copy link
Copy Markdown

Is there an eta on this? Would really appreciate this fix, but may go with the "experimental update" if it drags on :)

@larstobi

Copy link
Copy Markdown
Contributor

Just for reference zwave-js/zwave-js#1443

@pavel-z1

Copy link
Copy Markdown

Hi @nechry @Fishwaldo , a lot of people wait for this fix.
This PR is ignored or under review?

Please provide any information about status please.
I am waiting too for this fix.

@GeitjeG

GeitjeG commented Mar 13, 2021

Copy link
Copy Markdown

New bump. Hope someone can find time to merge this!
It has been merged in other branches if I'm right...

@mveenman

mveenman commented Apr 8, 2021

Copy link
Copy Markdown

Waiting for this as well. Multiple Z-TRM3 thermostats waiting to be controlled from HA.

@Hatzl

Hatzl commented Apr 9, 2021

Copy link
Copy Markdown
Contributor

Waiting for this as well. Multiple Z-TRM3 thermostats waiting to be controlled from HA.

switch over to zwave_js in home-assistant. It's working fine with the Z-TRM3.
Maybe this is useful for migration: https://community.home-assistant.io/t/switching-from-openzwave-beta-to-zwave-js/276723

@stevengroot82

Copy link
Copy Markdown

Dear all,

After reading the whole thread at the Norwegian forum, I tried to go with the OTA firmware upgrade. And luckily this worked!
https://www.hjemmeautomasjon.no/forums/topic/6330-z-trm3-target-temperature-f%C3%A5r-ikke-satt/?do=findComment&comment=90958

I performed the firmware upgrade with the setpoint_workaround.zip file provided in that forum-thread.
I didn't even have to exclude and include the thermostat in the network.

My system: Domoticz 2021.1 with OpenZwave 1.6 and a Aeon Z-Wave USB stick.

Regards,
Steven

@paalkr

paalkr commented Aug 27, 2021

Copy link
Copy Markdown
Contributor

Any particular reason why this PR isn't reviewed and merged?

@gskjold

gskjold commented Oct 14, 2021

Copy link
Copy Markdown
Contributor

@nechry any reason this pull request is being ignored?

yes, @Fishwaldo initially started reviewing this code and he will finish.

Seeing that @Fishwaldo has not contributed to this project since dec 2020, maybe someone else should take over the review? Kind of frustrating that tons of PRs that was created after this one have already been merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.