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

Support altherma with refactor 2 multiple accessories #43

Merged
merged 21 commits into from
Jul 2, 2024

Conversation

JeroenVdb
Copy link
Owner

No description provided.

minStep: this.accessory.context.device.getData('climateControl', 'temperatureControl', '/operationModes/cooling/setpoints/roomTemperature').minStep,
minValue: this.accessory.context.device.getData('climateControl', 'temperatureControl', '/operationModes/cooling/setpoints/roomTemperature').minValue,
maxValue: this.accessory.context.device.getData('climateControl', 'temperatureControl', '/operationModes/cooling/setpoints/roomTemperature').maxValue,
minStep: accessory.context.device.getData('climateControl', 'temperatureControl', '/operationModes/cooling/setpoints/roomTemperature').minStep,
Copy link

Choose a reason for hiding this comment

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

Hello 👋

This doesn't work if device is configured for control mode: "leavingWaterTemperature":

"controlMode": {
            "settable": false,
            "requiresReboot": false,
            "value": "leavingWaterTemperature",
            "values": [
                "leavingWaterTemperature",
                "externalRoomTemperature",
                "roomTemperature"
            ]
        },

--

I think figuring out setpoints paths should be done dynamically based on control mode.

Also for "leavingWaterTemperature" setpoint paths are different and set via "leavingWaterOffset":

"temperatureControl": {
           "/operationModes/auto/setpoints/leavingWaterOffset": {
               "settable": true,
               "requiresReboot": false,
               "value": 0,
               "maxValue": 10,
               "minValue": -10,
               "stepValue": 1
           },
           "/operationModes/heating/setpoints/leavingWaterOffset": {
               "settable": true,
               "requiresReboot": false,
               "value": 0,
               "maxValue": 10,
               "minValue": -10,
               "stepValue": 1
           },
           "/operationModes/cooling/setpoints/leavingWaterTemperature": {
               "settable": true,
               "requiresReboot": false,
               "value": 20,
               "maxValue": 22,
               "minValue": 5,
               "stepValue": 1
           }
       }

It also applies to sensory data readout:

"sensoryData": {
            "/leavingWaterTemperature": {
                "settable": false,
                "requiresReboot": false,
                "value": 29,
                "maxValue": 127,
                "minValue": -127,
                "stepValue": 1
            }
        },

@JeroenVdb JeroenVdb merged commit 805458b into main Jul 2, 2024
2 of 10 checks passed
@JeroenVdb JeroenVdb deleted the support-altherma-with-refactor-2-multiple-accessories branch July 4, 2024 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants