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

✨ Improve support for tile widgets #148

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

anarion80
Copy link
Collaborator

@anarion80 anarion80 commented Jan 22, 2025

This is an attempt to improve tile widget support. Tile widgets look as follows:

{
            "id": 1007,
            "parentId": 0,
            "type": 6,
            "menuId": 2061,
            "orderId": 5,
            "visibility": true,
            "params": {
                "description": "Universal status with widgets",
                "statusId": 1,
                "iconId": 87,
                "widget1": {
                    "txtId": 938,
                    "value": -40,
                    "unit": 7,
                    "type": 1,
                    "params": [
                        0,
                        0,
                        0,
                        0,
                        0
                    ]
                },
                "widget2": {
                    "txtId": 1041,
                    "value": 469,
                    "unit": 7,
                    "type": 9,
                    "params": [
                        0,
                        0,
                        0,
                        0,
                        0
                    ]
                }
            }
        },

They are of type 6 and have two widget objects under params key: widget1 and widget2. The API is lacking in this area, so only through users submitting their logs we are building a complete picture.

Till now we have been treating all "type": 6 tiles as Central Heating Temperature type and using only widget1. Now we know that this type represents not only temperature, but also other entities like pumps, and this seems to be determined by type key under widget. So far we deduced the following:

type Widget type Comments
0 Set room temperature if "unit" != -1 or binary switch/contact if "unit" == -1 ??
1 DHW Pump Temperature widget1 is Set Temperature and widget2 is Current Temperature, but seems to be no way to know that from API
2 Collector Pump/Modulation (percentage)
9 Temperature (CH/DHW/Room)

Both above types are available in the emodul DEMO account.

Implements #132 #144

@anarion80 anarion80 added the feature New feature or request label Jan 22, 2025
@anarion80 anarion80 linked an issue Jan 22, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feat]: ST-505 ethernet cable connected controller
1 participant