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 multiple devices #494

Open
TristanBrotherton opened this issue Aug 29, 2024 · 1 comment
Open

Support for multiple devices #494

TristanBrotherton opened this issue Aug 29, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@TristanBrotherton
Copy link

TristanBrotherton commented Aug 29, 2024

Thank you so much for your work on this plugin.

I have a weather station with multiple temperature sensors. I was able to create a mapping using "category": "wsdcg", to showcase the first (ToutCh1) temp sensor with the following JSON but the additional sensors are not displayed. A work-around would be to be able to add as multiple devices, but that did not seem to be possible.

{
    "name": "Tuya",
    "options": {
        "projectType": "2",
        "endpoint": "https://openapi.tuyaus.com",
        "accessId": "",
        "accessKey": "",
        "countryCode": 1,
        "username": "",
        "password": "",
        "appSchema": "tuyaSmart",
        "deviceOverrides": [
            {
                "id": "",
                "category": "wsdcg",
                "unbridged": false,
                "schema": [
                    {
                        "code": "ToutCh1",
                        "newCode": "va_temperature",
                    },
                    {
                        "code": "HoutCh1",
                        "newCode": "humidity_value",
                    },
                    {
                        "code": "ToutCh2",
                        "newCode": "va_temperature",
                    },
                    {
                        "code": "HoutCh2",
                        "newCode": "humidity_value",
                    },
                    {
                        "code": "ToutCh3",
                        "newCode": "va_temperature",
                    },
                    {
                        "code": "HoutCh3",
                        "newCode": "humidity_value",
                    }
                ]
            }
        ],
        "debug": false
    },
    "platform": "TuyaPlatform"
}
@TristanBrotherton TristanBrotherton added the enhancement New feature or request label Aug 29, 2024
@TristanBrotherton
Copy link
Author

Seemed easier to just add support for weather stations, so I did that with #495

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

No branches or pull requests

1 participant