Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Cooktop TP2X_DA-KS-COOKTOP-31001 #124

Open
sebastianhegge opened this issue Feb 3, 2025 · 0 comments
Open

Support for Cooktop TP2X_DA-KS-COOKTOP-31001 #124

sebastianhegge opened this issue Feb 3, 2025 · 0 comments

Comments

@sebastianhegge
Copy link

hi,
i wish to add Support for Cooktop TP2X_DA-KS-COOKTOP-31001
i'm adding / replacing some values inside CAPABILITY_TO_SENSORS (inside sensor.py):

    "custom.cooktopOperatingState": [
        Map("cooktopOperatingState", "Cooktop Operating State", None, None, None, None),
        Map("supportedCooktopOperatingState", "Supported Cooktop Operating State", None, None, None, None),
    ],
    "samsungce.cooktopFlexZone": [
        Map("flexZones", "Cooktop Flex Zone", None, None, None, None),
    ],
    "samsungce.kidsLockControl": [
        Map("lockState", "Kids Lock Control", None, None, None, None),
    ],
    "audioMute": [
        Map("mute", "Audio Mute", None, None, None, None),
    ],
    "samsungce.surfaceResidualHeat": [
        Map("surfaceResidualHeat", "Residual Heat", None, None, None, None),
    ],
    "samsungce.cooktopHeatingPower": [
        Map("heatingMode", "Heating Mode", None, None, None, None),
        Map("manualLevel", "Manual Level", None, None, None, None),
        Map("manualLevelMin", "Manual Level Min", None, None, None, None),
        Map("manualLevelMax", "Manual Level Max", None, None, None, None),
        Map("supportedHeatingModes", "Supported Heating Modes", None, None, None, None),
    ],
    "samsungce.countDownTimer": [
        Map("status", "Count Down Timer Status", None, None, None, None),
        Map("startValue", "Count Down Timer Start Value", None, None, None, None),
        Map("currentValue", "Count Down Timer Current Value", None, None, None, None),
    ],
    "samsungce.connectionState": [
        Map("connectionState", "Connection State", None, None, None, None),
    ],
    "samsungce.hoodFanSpeed": [
        Map("hoodFanSpeed", "Hood Fan Speed", None, None, None, None),
        Map("settableMaxFanSpeed", "Settable Max Fan Speed", None, None, None, None),
        Map("settableMinFanSpeed", "Settable Min Fan Speed", None, None, None, None),
        Map("supportedHoodFanSpeed", "Supported Hood Fan Speed", None, None, None, None),
    ],
    "samsungce.lamp": [
        Map("brightnessLevel", "Brightness Level", None, None, None, None),
        Map("supportedBrightnessLevel", "Supported Brightness Level", None, None, None, None),
    ],
    "custom.disabledComponents": [
        Map("disabledComponents", "Disabled Components", None, None, None, None),
    ],
    "custom.userNotification": [
        Map("message", "Message", None, None, None, None),
    ],
    "healthCheck": [
        Map("checkInterval", "Check Interval", None, None, None, None),
        Map("DeviceWatch-DeviceStatus", "Device Watch - Device Status", None, None, None, None),
        Map("DeviceWatch-Enroll", "Device Watch - Enroll", None, None, None, None),
        Map("healthStatus", "Health Status", None, None, None, None),
    ],
    "samsungce.deviceIdentification": [
        Map("binaryId", "Binary ID", None, None, None, None),
        Map("description", "Description", None, None, None, None),
        Map("micomAssayCode", "Micom Assay Code", None, None, None, None),
        Map("modelClassificationCode", "Model Classification Code", None, None, None, None),
        Map("modelName", "Model Name", None, None, None, None),
        Map("releaseYear", "Release Year", None, None, None, None),
        Map("serialNumber", "Serial Number", None, None, None, None),
        Map("serialNumberExtra", "Serial Number Extra", None, None, None, None),
    ],
    "samsungce.errorAndAlarmState": [
        Map("events", "Events", None, None, None, None),
    ],
    "samsungce.kitchenDeviceIdentification": [
        Map("fuel", "Fuel", None, None, None, None),
        Map("modelCode", "Model Code", None, None, None, None),
        Map("regionCode", "Region Code", None, None, None, None),
        Map("representativeComponent", "Representative Component", None, None, None, None),
        Map("type", "Type", None, None, None, None),
    ],
    "samsungce.remoteManagementData": [
        Map("reportRawData", "Report Raw Data", None, None, None, None),
        Map("version", "Version", None, None, None, None),
    ],
    "samsungce.softwareUpdate": [
        Map("availableModules", "Available Modules", None, None, None, EntityCategory.DIAGNOSTIC),
        Map("lastUpdatedDate", "Last Updated Date", None, None, None, EntityCategory.DIAGNOSTIC),
        Map("newVersionAvailable", "New Version Available", None, None, None, EntityCategory.DIAGNOSTIC),
        Map("operatingState", "Operating State", None, None, None, EntityCategory.DIAGNOSTIC),
        Map("otnDUID", "otnDUID", None, None, None, EntityCategory.DIAGNOSTIC),
        Map("progress", "Progress", None, None, None, EntityCategory.DIAGNOSTIC),
        Map("targetModule", "Target Module", None, None, None, EntityCategory.DIAGNOSTIC),
        Map("versions", "Versions", None, None, None, EntityCategory.DIAGNOSTIC),
    ],

but they only apply for the main component. the cooktop has some additional components and i'm not able to add them.
i add the Device Attributes.json (some values are replaced by XXXXXXXXXXXXXXX)
Is there a tipp on how to add additional components?

TP2X_DA-KS-COOKTOP-31001 Device Attributes.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant