@@ -635,79 +635,79 @@ def set_invitation(self, email):
635635 Returns:
636636 (dict): The invitation information.
637637
638- ??? info "Result example"
639- ```json
640- {
641- "token": "44483e1d07qf439&8b786fc0372ec315",
642- "email": "SOME_EMAIL",
643- "firstSent": "2024-03-19T12:54:38.591Z",
644- "lastSent": "2024-03-19T12:54:38.591Z",
645- "inviter": {
646- "name": "SOME_NAME",
647- "email": "SOME_EMAIL",
648- "username": "SOME_MAIL",
649- "enabled": true,
650- "id": "5c22a9b6d5018000088dba4a",
651- "homeId": 123456,
652- "locale": "fr",
653- "type": "WEB_USER"
654- },
655- "home": {
656- "id": 123456,
657- "name": "Domicile",
658- "dateTimeZone": "Europe/Paris",
659- "dateCreated": "2018-12-25T20:58:28.674Z",
660- "temperatureUnit": "CELSIUS",
661- "partner": null,
662- "simpleSmartScheduleEnabled": true,
663- "awayRadiusInMeters": 1999.68,
664- "installationCompleted": true,
665- "incidentDetection": {
666- "supported": true,
667- "enabled": true
668- },
669- "generation": "PRE_LINE_X",
670- "zonesCount": 4,
671- "skills": [
672- "AUTO_ASSIST"
673- ],
674- "christmasModeEnabled": true,
675- "showAutoAssistReminders": true,
676- "contactDetails": {
677- "name": "SOME_NAME",
678- "email": "SOME_EMAIL",
679- "phone": "SOME_PHONE_NUMBER"
680- },
681- "address": {
682- "addressLine1": "SOME_POSTAL_ADDRESS",
683- "addressLine2": null,
684- "zipCode": "SOME_POSTCODE",
685- "city": "SOME_CITY",
686- "state": null,
687- "country": "FRA"
688- },
689- "geolocation": {
690- "latitude": 12.3456789,
691- "longitude": 1.23456
692- },
693- "consentGrantSkippable": true,
694- "enabledFeatures": [
695- "CLIMATE_REPORT_AS_WEBVIEW",
696- "EIQ_SETTINGS_AS_WEBVIEW",
697- "ENERGY_IQ_V2_ONBOARDING",
698- "HIDE_BOILER_REPAIR_SERVICE",
699- "KEEP_WEBAPP_UPDATED",
700- "OWD_SETTINGS_AS_WEBVIEW",
701- "SMART_SCHEDULE_AS_WEBVIEW"
702- ],
703- "isAirComfortEligible": true,
704- "isBalanceAcEligible": false,
705- "isEnergyIqEligible": true,
706- "isHeatSourceInstalled": false,
707- "isBalanceHpEligible": false
708- }
709- }
710- ```
638+ ??? info "Result example"
639+ ```json
640+ {
641+ "token": "44483e1d07qf439&8b786fc0372ec315",
642+ "email": "SOME_EMAIL",
643+ "firstSent": "2024-03-19T12:54:38.591Z",
644+ "lastSent": "2024-03-19T12:54:38.591Z",
645+ "inviter": {
646+ "name": "SOME_NAME",
647+ "email": "SOME_EMAIL",
648+ "username": "SOME_MAIL",
649+ "enabled": true,
650+ "id": "5c22a9b6d5018000088dba4a",
651+ "homeId": 123456,
652+ "locale": "fr",
653+ "type": "WEB_USER"
654+ },
655+ "home": {
656+ "id": 123456,
657+ "name": "Domicile",
658+ "dateTimeZone": "Europe/Paris",
659+ "dateCreated": "2018-12-25T20:58:28.674Z",
660+ "temperatureUnit": "CELSIUS",
661+ "partner": null,
662+ "simpleSmartScheduleEnabled": true,
663+ "awayRadiusInMeters": 1999.68,
664+ "installationCompleted": true,
665+ "incidentDetection": {
666+ "supported": true,
667+ "enabled": true
668+ },
669+ "generation": "PRE_LINE_X",
670+ "zonesCount": 4,
671+ "skills": [
672+ "AUTO_ASSIST"
673+ ],
674+ "christmasModeEnabled": true,
675+ "showAutoAssistReminders": true,
676+ "contactDetails": {
677+ "name": "SOME_NAME",
678+ "email": "SOME_EMAIL",
679+ "phone": "SOME_PHONE_NUMBER"
680+ },
681+ "address": {
682+ "addressLine1": "SOME_POSTAL_ADDRESS",
683+ "addressLine2": null,
684+ "zipCode": "SOME_POSTCODE",
685+ "city": "SOME_CITY",
686+ "state": null,
687+ "country": "FRA"
688+ },
689+ "geolocation": {
690+ "latitude": 12.3456789,
691+ "longitude": 1.23456
692+ },
693+ "consentGrantSkippable": true,
694+ "enabledFeatures": [
695+ "CLIMATE_REPORT_AS_WEBVIEW",
696+ "EIQ_SETTINGS_AS_WEBVIEW",
697+ "ENERGY_IQ_V2_ONBOARDING",
698+ "HIDE_BOILER_REPAIR_SERVICE",
699+ "KEEP_WEBAPP_UPDATED",
700+ "OWD_SETTINGS_AS_WEBVIEW",
701+ "SMART_SCHEDULE_AS_WEBVIEW"
702+ ],
703+ "isAirComfortEligible": true,
704+ "isBalanceAcEligible": false,
705+ "isEnergyIqEligible": true,
706+ "isHeatSourceInstalled": false,
707+ "isBalanceHpEligible": false
708+ }
709+ }
710+ ```
711711 """
712712 payload = { 'email' : email }
713713 return self ._api_call ('homes/%i/invitations' % (self .id ), data = payload , method = 'POST' )
@@ -1699,6 +1699,25 @@ def get_incidents(self):
16991699 data = self ._api_minder_call ('homes/%i/incidents' % self .id )
17001700 return data
17011701
1702+ def set_incident_detection (self , enabled ):
1703+ """
1704+ Set the incident detection for the home
1705+
1706+ Parameters:
1707+ enabled (bool): Enable or disable the incident detection.
1708+
1709+ Returns:
1710+ (None): None
1711+
1712+ ??? info "Result example"
1713+ ```json
1714+ None
1715+ ```
1716+ """
1717+ payload = { 'enabled' : enabled }
1718+
1719+ return self ._api_call ('homes/%i/incidentDetection' % self .id , payload , method = 'PUT' )
1720+
17021721 def get_installations (self ):
17031722 """
17041723 Gets the ongoing installations in the current home
0 commit comments