otaviojr / node-red-contrib-smartthings

Allows you to control your devices and get their status using NodeRed
MIT License
32 stars 16 forks source link

Feature Request - Smartthings Windfree Airconditioner options #48

Open wkossen opened 3 years ago

wkossen commented 3 years ago

Hi there.

I'm trying to create a few flows to interact with my airconditioner unit. I can read out temp and hum and switch it on and off. still trying to figure out the thermostat. But i am missing nodes for other functions it has.

would it be possible to add more options?

like to dim the display (at night) (donotdisturb mode i think) set it's modes (like dry, heat, cool, auto) work the fan directions (not sure if that actually possible to do) etc.

when i extract it's properties using the api i get this:

{
    "items": [
        {
            "deviceId": "_some_ugly_long_id_string_",
            "name": "[room a/c] Samsung",
            "label": "Room air conditioner",
            "manufacturerName": "Samsung Electronics",
            "presentationId": "DA-AC-RAC-000003",
            "deviceManufacturerCode": "Samsung Electronics",
            "locationId": "_some_ugly_long_id_string_",
            "ownerId": "_some_ugly_long_id_string_",
            "roomId": "_some_ugly_long_id_string_",
            "deviceTypeName": "Samsung OCF Air Conditioner",
            "components": [
                {
                    "id": "main",
                    "capabilities": [
                        {
                            "id": "ocf",
                            "version": 1
                        },
                        {
                            "id": "switch",
                            "version": 1
                        },
                        {
                            "id": "airConditionerMode",
                            "version": 1
                        },
                        {
                            "id": "airConditionerFanMode",
                            "version": 1
                        },
                        {
                            "id": "fanOscillationMode",
                            "version": 1
                        },
                        {
                            "id": "temperatureMeasurement",
                            "version": 1
                        },
                        {
                            "id": "thermostatCoolingSetpoint",
                            "version": 1
                        },
                        {
                            "id": "relativeHumidityMeasurement",
                            "version": 1
                        },
                        {
                            "id": "airQualitySensor",
                            "version": 1
                        },
                        {
                            "id": "odorSensor",
                            "version": 1
                        },
                        {
                            "id": "dustSensor",
                            "version": 1
                        },
                        {
                            "id": "veryFineDustSensor",
                            "version": 1
                        },
                        {
                            "id": "audioVolume",
                            "version": 1
                        },
                        {
                            "id": "remoteControlStatus",
                            "version": 1
                        },
                        {
                            "id": "powerConsumptionReport",
                            "version": 1
                        },
                        {
                            "id": "demandResponseLoadControl",
                            "version": 1
                        },
                        {
                            "id": "refresh",
                            "version": 1
                        },
                        {
                            "id": "execute",
                            "version": 1
                        },
                        {
                            "id": "custom.spiMode",
                            "version": 1
                        },
                        {
                            "id": "custom.thermostatSetpointControl",
                            "version": 1
                        },
                        {
                            "id": "custom.airConditionerOptionalMode",
                            "version": 1
                        },
                        {
                            "id": "custom.airConditionerTropicalNightMode",
                            "version": 1
                        },
                        {
                            "id": "custom.autoCleaningMode",
                            "version": 1
                        },
                        {
                            "id": "custom.deviceReportStateConfiguration",
                            "version": 1
                        },
                        {
                            "id": "custom.energyType",
                            "version": 1
                        },
                        {
                            "id": "custom.dustFilter",
                            "version": 1
                        },
                        {
                            "id": "custom.veryFineDustFilter",
                            "version": 1
                        },
                        {
                            "id": "custom.deodorFilter",
                            "version": 1
                        },
                        {
                            "id": "custom.electricHepaFilter",
                            "version": 1
                        },
                        {
                            "id": "custom.doNotDisturbMode",
                            "version": 1
                        },
                        {
                            "id": "custom.periodicSensing",
                            "version": 1
                        },
                        {
                            "id": "custom.airConditionerOdorController",
                            "version": 1
                        },
                        {
                            "id": "custom.ocfResourceVersion",
                            "version": 1
                        },
                        {
                            "id": "custom.disabledCapabilities",
                            "version": 1
                        },
                        {
                            "id": "samsungce.driverVersion",
                            "version": 1
                        }
                    ],
                    "categories": [
                        {
                            "name": "AirConditioner"
                        }
                    ]
                }
            ],
            "profile": {
                "id": "_some_ugly_long_id_string_"
            },
            "type": "OCF",
            "restrictionTier": 0
        }
    ],
    "_links": {}
}

so there is plenty to interact with, i guess...

I'ld love to see some more possibilities to play with :) Thanks!

Bordman-ger commented 3 years ago

Looks like this is the best working implementation to include AC Samsung in IO Broker/Node Red envirenments - so I would like to have same features... is there any "short how to" to support you with the development?

syoma755 commented 1 year ago

@wkossen does thermostat work in your case? I get error if I try to set coolingSetpoint