arevindh / tinxy-hacs

Hacs addon for tinxy
GNU Affero General Public License v3.0
12 stars 3 forks source link

No device discovered, attaching error on logs #1

Closed anshul10s closed 3 years ago

anshul10s commented 3 years ago

Hi, Thanks for writing this custom integration of tinxy. I tried it today with my HA

Getting following errors in logs

Logger: homeassistant.config_entries
Source: config_entries.py:711
First occurred: 8:08:08 PM (1 occurrences)
Last logged: 8:08:08 PM

Error occurred loading configuration flow for integration tinxy: No module named 'custom_components.tinxy.config_flow'
[home-assistant.log](https://github.com/arevindh/tinxy-hacs/files/7570937/home-assistant.log)

Attached the log file too, do let me know if you need any other info.

arevindh commented 3 years ago

You can ignore the config_flow error , I haven't yet implemented the config_flow method .

I have a few questions for you in order to help troubleshoot.

  1. How many devices do you have on your account ?
  2. Model of each device.
  3. Did you try using it via the REST API ?
anshul10s commented 3 years ago
  1. I have only 1 device as of now
  2. This one: https://tinxy.in/product/tinxy-ac-geyser-smart-wifi-switch/
  3. No I am not aware of the REST API spec, can you share?
arevindh commented 3 years ago

@anshul10s Check here for the Postman API Collection

arevindh commented 3 years ago

Please join their official discord https://discord.gg/4zJvRga7, I will be there in my free time, I can answer your question in real time there.

anshul10s commented 3 years ago

Thanks! I tried the REST API yous hared, i can see my device as well as can control it. But i don't see any device getting auto discovered in my home assistant.

arevindh commented 3 years ago

Can you send me the response for https://backend.tinxy.in/v2/devices/ API , don't forget to remove all id's , passwords, pairingCode from the JSON.

Thanks! I tried the REST API yous hared, i can see my device as well as can control it. But i don't see any device getting auto discovered in my home assistant.

anshul10s commented 3 years ago

Response of https://backend.tinxy.in/v2/devices/

[
    {
        "enabled": true,
        "devices": [],
        "deviceTypes": [],
        "notificationOn": false,
        "firmwareVersion": 44,
        "_id": "##",
        "userId": "###",
        "switchType": "SWITCH",
        "name": "Geyser",
        "toggleDelay": 250,
        "registrationDate": "2020-12-30T01:50:07.705Z",
        "mqttPassword": "##",
        "pairingCode": ##,
        "typeId": {
            "primary": true,
            "numberOfRelays": 1,
            "toggleDelay": 0,
            "traits": [
                "action.devices.traits.OnOff"
            ],
            "_id": "##",
            "name": "WIFI_SWITCH_V2",
            "gtype": "action.devices.types.SWITCH"
        },
        "uuidRef": "##",
        "__v": 0
    }
]

Here you go i have redacted the Sensitive information

arevindh commented 3 years ago

So you don't have something like this in JSON right (devices and deviceTypes) ? image

arevindh commented 3 years ago

@anshul10s Fixed in new version 0.1.4 please update and check .

mechswitch commented 3 years ago

Its Working !!! Great work... Thanks !! 👍

anshul10s commented 3 years ago

Yes works for me to with new version. Thanks!

On Sun, 21 Nov, 2021, 5:32 pm Yasir Anjum, @.***> wrote:

Its Working !!! Great work... Thanks !! 👍

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/arevindh/tinxy-hacs/issues/1#issuecomment-974803950, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKPVNQIGVYNHHW6Q4DMQT3UNDNWJANCNFSM5IMJ4CXQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.