Code Monkey home page Code Monkey logo

Comments (7)

0x4a616e avatar 0x4a616e commented on June 18, 2024

Hi @Gthompson98 the plug-in currently requires air conditioning devices to have all of the following capabilities:

public static readonly requiredCapabilities = [
    'switch',
    'temperatureMeasurement',
    'thermostatCoolingSetpoint',
    'relativeHumidityMeasurement',
    'airConditionerMode',
  ];

My best guess is, that one of those capabilities is missing and that the devices could thus not be added.

Unfortunately it is not possible right now to see from logs, which exact capability is missing. What I could offer is to add some more detailed logging in the next Version so that we can find out what exactly is missing. Some capabilities like relativeHumidityMeasurement are not strictly needed and I could then try to make them optional.

You could also run the following command in your terminal (if you're running some sort of Unix) and check what the capabilities of your devices are: curl -H "Authorization: Bearer YOUR_ACCESS_TOKEN" https://api.smartthings.com/v1/devices

from homebridge-smartthings-ac.

Gthompson98 avatar Gthompson98 commented on June 18, 2024

I am guessing it's the humidity measurement that is missing. It would be great if to add the debugging in the next version. Really appreciate it.
I tried executing the command you provided in the terminal but I get the following response;

<title>401 Authorization Required</title>

401 Authorization Required


openresty

from homebridge-smartthings-ac.

0x4a616e avatar 0x4a616e commented on June 18, 2024

Did you replace YOUR_ACCESS_TOKEN with your actual access token in the command? I just published a new version that will log what exact capability is missing. And while i was on it, i also made the humidity measurement optional, so maybe it is already working now 🤞

from homebridge-smartthings-ac.

Gthompson98 avatar Gthompson98 commented on June 18, 2024

That worked! Below is the log;
7/30/2021, 2:51:37 PMSmartThings Ac BridgeHomebridgeSmartThingsACSkipping device ---- Master Bedroom Fan Missing capabilities [
'temperatureMeasurement',
'thermostatCoolingSetpoint',
'airConditionerMode'
]
7/30/2021, 2:51:37 PMSmartThings Ac BridgeHomebridgeSmartThingsACSkipping device ---- Living Room Fan Missing capabilities [
'temperatureMeasurement',
'thermostatCoolingSetpoint',
'airConditionerMode'
]
7/30/2021, 2:51:37 PMSmartThings Ac BridgeHomebridgeSmartThingsACRegistering device ----
7/30/2021, 2:51:37 PMSmartThings Ac BridgeHomebridgeSmartThingsACAdding new accessory: Samsung Room A/C
7/30/2021, 2:51:37 PMSmartThings Ac BridgeHomebridgeSmartThingsACCurrent relative humidity will not be available for device ----
7/30/2021, 2:51:37 PMSmartThings Ac BridgeHomebridgeSmartThingsACUpdate status every 15 secs
7/30/2021, 2:51:37 PMSmartThings Ac BridgeHomebridgeSmartThingsACSkipping device 4919aaef-8dae-4690-9aa1-1911c17c1dde Living Room Fan Winter Mode Missing capabilities [
'temperatureMeasurement',
'thermostatCoolingSetpoint',
'airConditionerMode'
]
7/30/2021, 2:51:37 PMSmartThings Ac BridgeHomebridgeSmartThingsACSkipping device ---- Master Bedroom Fan Winter Mode Missing capabilities [
'temperatureMeasurement',
'thermostatCoolingSetpoint',
'airConditionerMode'
]
7/30/2021, 2:51:37 PMSmartThings Ac BridgeHomebridgeSmartThingsACSkipping device ---- Master Bedroom Fan Missing capabilities [
'temperatureMeasurement',
'thermostatCoolingSetpoint',
'airConditionerMode'
]
7/30/2021, 2:51:37 PMSmartThings Ac BridgeHomebridgeSmartThingsACSkipping device ---- Hub Missing capabilities [
'switch',
'temperatureMeasurement',
'thermostatCoolingSetpoint',
'airConditionerMode'
]
7/30/2021, 2:51:37 PMSmartThings Ac BridgeHomebridgeSmartThingsACSkipping device ---- Living Room Fan Missing capabilities [
'temperatureMeasurement',
'thermostatCoolingSetpoint',
'airConditionerMode'
]

It really looks like your plugin can be made to work with more generic SmartThings devices than just Samsung AC's. Perhaps there are generic capabilities that can be used to support more devices.
Those fans that show up are running Bond FW. I don't have a Bond hub but Smartthings found them via wifi scan.

Thanks for the help!

from homebridge-smartthings-ac.

0x4a616e avatar 0x4a616e commented on June 18, 2024

Glad to hear that! Well, in principle it is possible of course to support other accessories as well, however it won't be as easy as making humidity measurements optional. Fans for example use a different accessory type in HomeKit, so we need to distinguish between ACs and Fans. Not saying it's not possible but it certainly would be a bit of work...

from homebridge-smartthings-ac.

Gthompson98 avatar Gthompson98 commented on June 18, 2024

Understood. In the future, would it be possible to add support for temperature readings in DegF in addition to DegC? Just realized why I've been getting errors for the temperature setting... "ERROR[SmartThings Ac Bridge F714@Samsung Room A/C@@HEATING Threshold Temperature] characteristic was supplied illegal value: number 72 exceeded maximum of 30"

from homebridge-smartthings-ac.

0x4a616e avatar 0x4a616e commented on June 18, 2024

Well, that's actually a good point I haven't considered. The current limits will only work correctly for Celsius... I'll create a new ticket for that 👍

from homebridge-smartthings-ac.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.