Skip to content

Commit

Permalink
Fix urls for PyViCareService2
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyfx1 committed Jun 22, 2021
1 parent 1305619 commit 238f4df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PyViCare/PyViCareServiceV2.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ def readFeature(entities, property_name):
return feature

def buildSetPropertyUrl(id, serial, circuit, property_name, action):
return apiURLBase +'/operational-data/v1/installations/'+str(id)+'/gateways/'+str(serial)+'/devices/'+str(circuit)+'/features/'+property_name+'/'+action
return apiURLBase +'/equipment/installations/'+str(id)+'/gateways/'+str(serial)+'/devices/'+str(circuit)+'/features/'+property_name+'/'+action

def buildGetPropertyUrl(id, serial, circuit, property_name):
return apiURLBase + '/operational-data/installations/'+str(id)+'/gateways/'+str(serial)+'/devices/'+str(circuit)+'/features/'+property_name
return apiURLBase + '/equipment/installations/'+str(id)+'/gateways/'+str(serial)+'/devices/'+str(circuit)+'/features/'+property_name

# https://api.viessmann-platform.io/general-management/v1/installations/DDDDD gives the type like VitoconnectOptolink
# entities / "deviceType": "heating"
Expand Down

0 comments on commit 238f4df

Please sign in to comment.