catduckgnaf / ryobi_gdo

Latest and Greatest Home Assistant Custom Integration for Ryobi GDO
Other
10 stars 6 forks source link

Key "motionSensor" not supported by GDO125 #31

Closed CJOWood closed 9 months ago

CJOWood commented 9 months ago

Checklist

Is your feature request related to a problem? Please describe.

Getting an error when trying to parse the initial API Exception while parsing answer to update device: 'motionSensor'

Describe the solution you'd like

Remove reliance on having a montionSensor key present. GDO125 uses a sensorFlag key for the safety sensors.

Describe alternatives you've considered

N/A

Additional context

"garageDoor_4":{
               "at":{
                  "heightUnits":{
                     "varName":"heightUnits",
                     "varType":"tc_bool",
                     "defv":false,
                     "dataType":"boolean",
                     "units":"",
                     "metaData":{
                        "name":"Units Display"
                     },
                     "flags":[
                        "C"
                     ],
                     "value":false
                  },
                  "remoteProgram":{
                     "varName":"remoteProgram",
                     "varType":"tc_bool",
                     "defv":false,
                     "dataType":"boolean",
                     "units":"",
                     "metaData":{
                        "name":"Remote Program Mode"
                     },
                     "enum":[
                        "Off",
                        "On"
                     ],
                     "flags":[
                        "C",
                        "SERV"
                     ],
                     "value":false,
                     "lastValue":false
                  },
                  "vacationMode":{
                     "varName":"vacationMode",
                     "varType":"tc_bool",
                     "defv":false,
                     "dataType":"boolean",
                     "units":"",
                     "metaData":{
                        "name":"Garage Door Vacation Mode"
                     },
                     "enum":[
                        "Disabled",
                        "Enabled"
                     ],
                     "flags":[
                        "C",
                        "SERV"
                     ],
                     "value":false,
                     "lastValue":false
                  },
                  "sensorFlag":{
                     "varName":"sensorFlag",
                     "varType":"tc_bool",
                     "defv":false,
                     "dataType":"boolean",
                     "units":"",
                     "metaData":{
                        "name":"Safety Sensor Triggered"
                     },
                     "flags":[
                        "C",
                        "SERV"
                     ],
                     "value":false,
                     "lastValue":false,
                     "lastSet":1672453289764
                  },
                  "opMode":{
                     "varName":"opMode",
                     "varType":"tc_uint8",
                     "defv":0,
                     "dataType":"number",
                     "units":"",
                     "metaData":{
                        "name":"Garage Door Operation Mode"
                     },
                     "enum":[
                        "Standard",
                        "Pre-Lockout",
                        "Lockout"
                     ],
                     "max":5,
                     "min":0,
                     "flags":[
                        "C"
                     ],
                     "value":0,
                     "lastValue":0,
                     "lastSet":1668787043860
                  },
                  "doorState":{
                     "varName":"doorState",
                     "varType":"tc_uint8",
                     "dataType":"number",
                     "units":"",
                     "metaData":{
                        "name":"Garage Door State"
                     },
                     "defv":0,
                     "enum":[
                        "Closed",
                        "Open",
                        "Closing",
                        "Opening",
                        "Fault"
                     ],
                     "max":4,
                     "min":0,
                     "flags":[
                        "C",
                        "SET"
                     ],
                     "value":0,
                     "lastValue":0,
                     "lastSet":1672555960089
                  },
                  "doorPercentOpen":{
                     "varName":"doorPercentOpen",
                     "varType":"tc_uint8",
                     "dataType":"number",
                     "defv":-1,
                     "metaData":{
                        "name":"Garage Door Percent Open"
                     },
                     "max":100,
                     "min":-1,
                     "flags":[
                        "C"
                     ],
                     "value":-1
                  },
                  "doorPosition":{
                     "varName":"doorPosition",
                     "varType":"tc_uint8",
                     "dataType":"number",
                     "defv":0,
                     "metaData":{
                        "name":"Garage Door Position"
                     },
                     "max":180,
                     "min":0,
                     "flags":[
                        "C"
                     ],
                     "value":1,
                     "lastValue":1,
                     "lastSet":1672555960089
                  },
                  "maxDoorPosition":{
                     "varName":"maxDoorPosition",
                     "varType":"tc_uint8",
                     "dataType":"number",
                     "defv":0,
                     "metaData":{
                        "name":"Uppermost Garage Door Position"
                     },
                     "max":180,
                     "min":0,
                     "flags":[
                        "C"
                     ],
                     "value":96,
                     "lastValue":96,
                     "lastSet":1661395225403
                  },
                  "presetPosition":{
                     "varName":"presetPosition",
                     "metaData":{
                        "name":"Preset Position"
                     },
                     "varType":"tc_uint8",
                     "dataType":"number",
                     "defv":0,
                     "units":"inches",
                     "max":72,
                     "min":0,
                     "flags":[
                        "C",
                        "SET"
                     ],
                     "value":0,
                     "lastValue":0
                  }
               },
               "ac":{

               },
               "metaData":{
                  "icon":"/img/profiles/gdo_125.png",
                  "name":"GDO Door 125"
               }
            },
catduckgnaf commented 9 months ago

Thanks! Also, if you want to join discord https://discord.gg/fjtm8Pqj