Skip to content

Adding Sinope Thermostat TH11xxZB management of Occupancy specific attribute and Unoccupied heat set point - #6011

Merged
manup merged 12 commits into
dresden-elektronik:masterfrom
BabaIsYou:patch-3
Jan 9, 2023
Merged

manup merged 12 commits into
dresden-elektronik:masterfrom
BabaIsYou:patch-3

Conversation

@BabaIsYou

Copy link
Copy Markdown
Contributor

Adding management via REST-API of specific Occupancy Sinope state attribut and Unoccupied heat set point.
Taht way thermostat can switch automatically to unoccupied heating set point or occupied heating set point depending on the value of Occupancy.

@Smanar

Smanar commented Jun 3, 2022

Copy link
Copy Markdown
Collaborator

@manup There is a problem with this PR ?
And here there is just some xml addition #5968

@manup

manup commented Jun 4, 2022

Copy link
Copy Markdown
Member

I think it should be fine, but like to have more opinions on that before adding new resource items. We need to care to being more streamlined than in the past.

@manup
manup requested a review from SwoopX June 4, 2022 11:39

@SwoopX SwoopX left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here're my thoughts around this. Besides that in my very personal opinion occupancy and unoccupied heatsetpoint is pointless, resource items should be strictly lower case only. I'm also a fan to keep them as generic as possible so they can potentially be reused on other devices/for other purposes as well, simply to restrict a rising zoo.

For local_occupancy, that could be just occupancy while also having the benefit match generic attribute 0x0002 of the thermostat cluster. Expressing that it is local does not seem relevant in my view.
On the other hand, the aforementioned attribute is read only as per spec, the one in the PR is allows also to write (config vs state having the question around exposing it twice for its own purpose). And of course does the proposed shortened name create a certain room for misunderstanding and misinterpretation (e.g. motion sensors)...

So I see removal of the underscore a must (for at least some consistency). We also should/must make other aware for their API clients?

@BabaIsYou

BabaIsYou commented Jun 6, 2022 via email •

Copy link
Copy Markdown
Contributor Author

@BabaIsYou

BabaIsYou commented Jun 15, 2022 •

Copy link
Copy Markdown
Contributor Author

@SwoopX To be consistent with other config items (externalsensortemp and externalwindowsopen), what would you think about externaloccupancy or externalsensoroccupancy ?

@manup

manup commented Jun 30, 2022

Copy link
Copy Markdown
Member

I schedule this for the next beta after stable, so we need to work out a opinion and naming for these items :)

@manup manup added this to the v2.18.0-beta milestone Jun 30, 2022
@BabaIsYou

Copy link
Copy Markdown
Contributor Author

Also, sometimes DDF file for Sinope are not loaded because of legacy code is overwriting the real value reported by the manufacturer name attribute. Then we have to force reading of basic cluster as @SwoopX described it in support forum
issue 2121

@Smanar

Smanar commented Jul 20, 2022

Copy link
Copy Markdown
Collaborator

For me, we can remove this part in code

    else if ((node->nodeDescriptor().manufacturerCode() == VENDOR_SINOPE))
    {
        sensorNode.setManufacturer("Sinope");
    }
  • try to modify the model id or the manufacture name is the worst idea possible
  • I don't think it can have an impact on previous integrated device.

@manup manup modified the milestones: v2.18.0-beta, v2.18.1-beta Aug 7, 2022
@manup

manup commented Aug 28, 2022

Copy link
Copy Markdown
Member

Do we have any new considerations for the local_occupancy / occupancy naming?
I have to admit the thermostat topic is still a bit of a black box for me with all the variations floating around.

One note to the item description generic/items/config_local_occupancy_item.json: I think as a generic item which can be device specific the read, write and parse functions should be specified in the device DDF. For example here the 0x0400 attribute appears to be vendor specific.

@BabaIsYou

BabaIsYou commented Aug 28, 2022 via email

Copy link
Copy Markdown
Contributor Author

@Smanar

Smanar commented Aug 28, 2022 •

Copy link
Copy Markdown
Collaborator

I think as a generic item which can be device specific the read, write and parse functions should be specified in the device DDF

I m not sure to understand, there is something missing ? You mean to use it in the device DDF and not the generic folder ?

@manup

manup commented Sep 5, 2022

Copy link
Copy Markdown
Member

Related thermostat items streamline issue: dresden-elektronik/deconz-rest-plugin-v2#13

@BabaIsYou

BabaIsYou commented Oct 4, 2022 •

Copy link
Copy Markdown
Contributor Author

I schedule this for the next beta after stable, so we need to work out a opinion and naming for these items :)

Seems we skipped some milestones ... Chance to have it in next one ?

And re-user resetpresence instead
Removing local_occupancy
Removing local_occupancy
Removing local_occupancy

@BabaIsYou BabaIsYou left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing the local_occupancy item that seemed to generate dscussions and reused reset presence instead.

@BabaIsYou
BabaIsYou requested a review from SwoopX October 21, 2022 19:57
@manup manup modified the milestones: v2.18.1-beta, v2.20.0-beta Jan 7, 2023
@manup
manup merged commit c5dc8e5 into dresden-elektronik:master Jan 9, 2023
@BabaIsYou
BabaIsYou deleted the patch-3 branch January 9, 2023 18:04
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.

4 participants