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

feat: Handle TCU41_x04 as gateway #413

Merged
merged 5 commits into from
Oct 4, 2024
Merged

feat: Handle TCU41_x04 as gateway #413

merged 5 commits into from
Oct 4, 2024

Conversation

CFenner
Copy link
Member

@CFenner CFenner commented Oct 1, 2024

No description provided.

@CFenner CFenner changed the title Add E3_TCU41_x04 as gateway feat: Handle E3_TCU41_x04 as gateway Oct 1, 2024
@CFenner CFenner changed the title feat: Handle E3_TCU41_x04 as gateway feat: Handle TCU41_x04 as gateway Oct 1, 2024
@CFenner
Copy link
Member Author

CFenner commented Oct 1, 2024

@xSauron back then in home-assistant/core#122056 we ignore your gateway directly in HA. I now would like to handle that in the library correctly. For that I would need to know the roles that are applied to your gateway. Could you provide that by doing an API call via curl?

curl -X GET --url https://api.viessmann.com/iot/v2/features/installations/xxx/gateways/xxx/features

@CFenner CFenner added enhancement New feature or request help wanted Extra attention is needed labels Oct 1, 2024
@xSauron
Copy link

xSauron commented Oct 3, 2024

Hey, sorry for late response - sending the body from https://api.viessmann.com/iot/v1/equipment/installations regarding gateways.

"gateways": [
{
	"serial": "X",
	"version": "504.2244.48.0",
	"firmwareUpdateFailureCounter": 0,
	"autoUpdate": false,
	"createdAt": "2023-05-23T14:33:22.586Z",
	"producedAt": "2023-05-23T14:33:22.345Z",
	"lastStatusChangedAt": "2024-10-03T03:39:16.256Z",
	"aggregatedStatus": "WorksProperly",
	"targetRealm": "DC",
	"gatewayType": "WiFi_SA0041",
	"installationId": X,
	"registeredAt": "2023-12-22T16:53:44.264Z",
	"description": null,
	"otaOngoing": false,
	"devices": [
		{
			"gatewaySerial": "X",
			"id": "TCU",
			"boilerSerial": null,
			"boilerSerialEditor": null,
			"bmuSerial": null,
			"bmuSerialEditor": null,
			"createdAt": "2023-12-22T16:48:25.363Z",
			"editedAt": "2024-10-03T03:38:42.434Z",
			"modelId": "E3_TCU41_x04",
			"status": "Online",
			"deviceType": "tcu",
			"roles": [
				"capability:zigbeeCoordinator",
				"type:E3",
				"type:gateway;TCU100"
			],
			"isBoilerSerialEditable": false
		},
		{
			"gatewaySerial": "X",
			"id": "0",
			"boilerSerial": "X",
			"boilerSerialEditor": "DeviceCommunication",
			"bmuSerial": null,
			"bmuSerialEditor": null,
			"createdAt": "2023-12-22T16:48:25.363Z",
			"editedAt": "2024-10-03T03:38:42.434Z",
			"modelId": "E3_Vitodens_100_BHC_0421",
			"status": "Online",
			"deviceType": "heating",
			"roles": [
				"capability:backup;0037_HBMU_VD",
				"capability:consumptionReport;electric",
				"capability:consumptionReport;thermal",
				"capability:monetization;AdvancedReport",
				"capability:productionReport;electric",
				"capability:productionReport;thermal",
				"type:E3",
				"type:boiler",
				"type:dhw;integrated",
				"type:heating;integrated",
				"type:product;Vitodens_100"
			],
			"isBoilerSerialEditable": false
		}
	]
}
]

Here from https://api.viessmann.com/iot/v2/features/installations/xxx/gateways/xxx/features

"properties": {
  "devices": {
	  "type": "DeviceList",
	  "value": [
		  {
			  "id": "0",
			  "fingerprint": "X",
			  "modelId": "E3_Vitodens_100_BHC_0421",
			  "modelVersion": "b9MCJ6Sa2zUrIc7Lyd1-jcf3CB4",
			  "name": "Vitodens One Hundred E3, Release 0620, MCD-3D version",
			  "type": "heating",
			  "roles": [
				  "capability:backup;0037_HBMU_VD",
				  "capability:consumptionReport;electric",
				  "capability:consumptionReport;thermal",
				  "capability:monetization;AdvancedReport",
				  "capability:productionReport;electric",
				  "capability:productionReport;thermal",
				  "type:E3",
				  "type:boiler",
				  "type:dhw;integrated",
				  "type:heating;integrated",
				  "type:product;Vitodens_100"
			  ],
			  "status": "online"
		  },
		  {
			  "id": "TCU",
			  "fingerprint": "X",
			  "modelId": "E3_TCU41_x04",
			  "modelVersion": "34nbqQJIrKwwVGAhx6H6sjqLUI8",
			  "name": "TCU",
			  "type": "tcu",
			  "roles": [
				  "capability:zigbeeCoordinator",
				  "type:E3",
				  "type:gateway;TCU100"
			  ],
			  "status": "online"
		  }
	  ]
  }
  },

PyViCare/PyViCareService.py Outdated Show resolved Hide resolved
@CFenner CFenner marked this pull request as ready for review October 3, 2024 21:32
@CFenner CFenner merged commit 2c25e29 into master Oct 4, 2024
10 checks passed
@CFenner CFenner deleted the CFenner-patch-2-1 branch October 4, 2024 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants