ReneNulschDE / mbapipy

MercedesME platform as a Custom Component for Home Assistant.
MIT License
24 stars 11 forks source link

Unable to add Attrib's #18

Closed iptvcld closed 4 years ago

iptvcld commented 4 years ago

I have this in my json: "doorsClosed": "true", "parkbrakestatus": "true", "carAlarm": "ON", "engineHoodClosed": "true", "locked": "true" And i would like to add carAlarm and engineHoodClosed but i am not sure where to enable this.

ReneNulschDE commented 4 years ago

I have added the attributes to the Master Branch. Let me know if it works for you then I will push a new version.

iptvcld commented 4 years ago

Thank you! - i updated the apicontrollor.py file and i now see the below:

retrievalstatus: VALID doorStateFrontRight: DOOR_CLOSED_AND_DOOR_LOCKED doorStateRearRight: DOOR_CLOSED_AND_DOOR_LOCKED doorStateRearLeft: DOOR_CLOSED_AND_DOOR_LOCKED sunroofstatus: TILT_SLIDE_SUNROOF_CLOSED doorsClosed: true trunkStateRollup: CLOSED_AND_LOCKED doorStateFrontLeft: DOOR_CLOSED_AND_DOOR_LOCKED engineHoodClosed: true friendly_name: platenumber Lock

ReneNulschDE commented 4 years ago

you have to update the const.py too

iptvcld commented 4 years ago

sorry about that; i have updated that file as well and below is the output retrievalstatus: VALID engineHoodClosed: true doorStateRearLeft: DOOR_CLOSED_AND_DOOR_LOCKED trunkStateRollup: CLOSED_AND_LOCKED doorStateFrontRight: DOOR_CLOSED_AND_DOOR_LOCKED doorStateRearRight: DOOR_CLOSED_AND_DOOR_LOCKED doorsClosed: true doorStateFrontLeft: DOOR_CLOSED_AND_DOOR_LOCKED sunroofstatus: TILT_SLIDE_SUNROOF_CLOSED friendly_name: plate Lock

ReneNulschDE commented 4 years ago

Could you send me a private message in the forum with your feat*.json and state*.json

ReneNulschDE commented 4 years ago

carAlarm is not available in the states api. I'll remove the attribute again.