8000 Support for T300 and T110 · Issue #875 · python-kasa/python-kasa · GitHub
[go: up one dir, main page]

Skip to content
Support for T300 and T110 #875
Closed
@ngaertner

Description

@ngaertner

Hi All,

I am just testing the latest support for the TAPO H100 hub with various sensors.

It looks like the temperature/humidity sensor T310 is working, but the T300 (Waterleak) and T110 (Contact) sensors are not.
The sensors are discovered fine as child devices, but the device type is unknown and the relevant attributes are not shown in the CLI.

== Smart Hub - H100 ==

        Host: 192.168.1.86
        Port: 80
        Device state: False
        == Children ==

         == Temperatur (innen) (T310, DeviceType.Sensor) ==

        == Information ==
        Signal Level (signal_level): 3
        Battery level (battery_level): got exception ('battery_percentage')
        Battery low (battery_low): False
        Cloud connection (cloud_connection): True
        Update available (update_available): False
        Humidity (humidity): 40
        Humidity warning (humidity_warning): False
        Temperature (temperature): 22.2
        Temperature warning (temperature_warning): False

        == Configuration ==
        Temperature unit (temperature_unit): celsius

        == Debug ==
        Device ID (device_id): 802E6B66E717D6AD31BB4726011746212219698C
        RSSI (rssi): -51
        Report interval (report_interval): 16
        Time (time): 2024-04-27 13:52:21+01:00
WARNING:kasa.smart.smartchilddevice:Unknown child device type, please open issue

         == Wasser (T300, DeviceType.Unknown) ==

        == Information ==
        Signal Level (signal_level): 3
        Battery level (battery_level): 100
        Battery low (battery_low): False
        Cloud connection (cloud_connection): True
        Update available (update_available): False

        == Debug ==
        Device ID (device_id): 802ED99B9EC1A0A8C9F48AB5C709927D2245EEE7
        RSSI (rssi): -43
        Time (time): 2024-04-27 13:52:21+01:00
WARNING:kasa.smart.smartchilddevice:Unknown child device type, please open issue

         == Dach (innen) (T110, DeviceType.Unknown) ==

        == Information ==
        Signal Level (signal_level): 0
        Battery level (battery_level): got exception ('battery_percentage')
        Battery low (battery_low): False
        Cloud connection (cloud_connection): True
        Update available (update_available): False

        == Debug ==
        Device ID (device_id): 802E3B14B17594B105DEB69CCED699DD22155944
        RSSI (rssi): 0
        Time (time): 2024-04-27 13:52:21+01:00

        == Generic information ==
        Time:         2024-04-27 13:52:21+01:00 (tz: {'timezone': 'Europe/Berlin'}
        Hardware:     1.0
        Software:     1.5.10 Build 240207 Rel.175759
        MAC (rssi):   E4:FA:C4:6F:50:64 (-45)
        Location:     {'latitude': 49.3225, 'longitude': 8.6947}

        == Information ==
        Signal Level (signal_level): 3
        Alarm (alarm): False
        Alarm source (alarm_source): None
        Alarm sound (alarm_sound): Alarm 1
        Alarm volume (alarm_volume): high
        Cloud connection (cloud_connection): True
        Update available (update_available): False

        == Configuration ==
        Test alarm (test_alarm): <Action>
        Stop alarm (stop_alarm): <Action>
        Auto update enabled (auto_update_enabled): True
        LED (led): True

        == Debug ==
        Device ID (device_id): 802D587301438320D7122ECF6E591028221B023C
        RSSI (rssi): -45
        SSID (ssid): CarpeNoctemRemote
        Overheated (overheated): False
        Time (time): 2024-04-27 13:52:21+01:00

        == Modules ==
        + <Module AlarmModule (alarm) for 192.168.1.86>
        + <Module ChildDeviceModule (child_device) for 192.168.1.86>
        + <Module CloudModule (cloud_connect) for 192.168.1.86>
        + <Module DeviceModule (device) for 192.168.1.86>
        + <Module Firmware (firmware) for 192.168.1.86>
        + <Module LedModule (led) for 192.168.1.86>
        + <Module TimeModule (time) for 192.168.1.86>

Here is the JSON output:

WARNING:kasa.smart.smartchilddevice:Unknown child device type, please open issue
WARNING:kasa.smart.smartchilddevice:Unknown child device type, please open issue
{
    "get_alarm_configure": {
        "type": "Alarm 1",
        "volume": "high",
        "duration": 300
    },
    "get_support_alarm_type_list": {
        "alarm_type_list": [
            "Doorbell Ring 1",
            "Doorbell Ring 2",
            "Doorbell Ring 3",
            "Doorbell Ring 4",
            "Doorbell Ring 5",
            "Doorbell Ring 6",
            "Doorbell Ring 7",
            "Doorbell Ring 8",
            "Doorbell Ring 9",
            "Doorbell Ring 10",
            "Phone Ring",
            "Alarm 1",
            "Alarm 2",
            "Alarm 3",
            "Alarm 4",
            "Dripping Tap",
            "Alarm 5",
            "Connection 1",
            "Connection 2"
        ]
    },
    "get_child_device_list": {
        "child_device_list": [
            {
                "parent_device_id": "802D587301438320D7122ECF6E591028221B023C",
                "hw_ver": "1.0",
                "fw_ver": "1.5.0 Build 230105 Rel.150707",
                "device_id": "802E6B66E717D6AD31BB4726011746212219698C",
                "mac": "E4FAC44C516F",
                "type": "SMART.TAPOSENSOR",
                "model": "T310",
                "hw_id": "2AE1228C7CE042A310FC70EA70D7A788",
                "oem_id": "02F7CFFC203A7E622F6EA84BBB74C68F",
                "specs": "EU",
                "category": "subg.trigger.temp-hmdt-sensor",
                "bind_count": 2,
                "status_follow_edge": false,
                "status": "online",
                "lastOnboardingTimestamp": 1708892232,
                "rssi": -50,
                "signal_level": 3,
                "jamming_rssi": -117,
                "jamming_signal_level": 1,
                "at_low_battery": false,
                "temp_unit": "celsius",
                "current_temp": 22.3,
                "current_humidity": 39,
                "current_temp_exception": 0,
                "current_humidity_exception": 0,
                "nickname": "VGVtcGVyYXR1ciAoaW5uZW4p",
                "avatar": "sensor_t310",
                "report_interval": 16,
                "region": "Europe/Berlin"
            },
            {
                "parent_device_id": "802D587301438320D7122ECF6E591028221B023C",
                "hw_ver": "1.0",
                "fw_ver": "1.7.0 Build 230628 Rel.194748",
                "device_id": "802ED99B9EC1A0A8C9F48AB5C709927D2245EEE7",
                "mac": "98254AED3001",
                "type": "SMART.TAPOSENSOR",
                "model": "T300",
                "hw_id": "CE0B3AE8E83B5A0D78D53B41EC4D5F1E",
                "oem_id": "BA0BFAB2B6264F680059C097EA3AC8F4",
                "specs": "EU",
                "category": "subg.trigger.water-leak-sensor",
                "bind_count": 3,
                "status_follow_edge": false,
                "status": "online",
                "lastOnboardingTimestamp": 1708893337,
                "rssi": -43,
                "signal_level": 3,
                "jamming_rssi": -121,
                "jamming_signal_level": 1,
                "in_alarm": false,
                "water_leak_status": "normal",
                "battery_percentage": 100,
                "at_low_battery": false,
                "nickname": "V2Fzc2Vy",
                "avatar": "sensor_t300",
                "report_interval": 16,
                "region": "Europe/Berlin"
            },
            {
                "parent_device_id": "802D587301438320D7122ECF6E591028221B023C",
                "hw_ver": "1.0",
                "fw_ver": "1.9.0 Build 230704 Rel.154531",
                "device_id": "802E3B14B17594B105DEB69CCED699DD22155944",
                "mac": "E4FAC4310C0D",
                "type": "SMART.TAPOSENSOR",
                "model": "T110",
                "hw_id": "8B5164B3EDF216E59BCAB740ABCB40CD",
                "oem_id": "477C83614EF5FFFF6A8C2D80BBD306AB",
                "specs": "EU",
                "category": "subg.trigger.contact-sensor",
                "bind_count": 2,
                "status_follow_edge": false,
                "status": "online",
                "lastOnboardingTimestamp": 1708892158,
                "rssi": 0,
                "signal_level": 0,
                "jamming_rssi": 0,
                "jamming_signal_level": 0,
                "at_low_battery": false,
                "open": false,
                "nickname": "RGFjaCAoaW5uZW4p",
                "avatar": "sensor_t110",
                "report_interval": 16,
                "region": "Europe/Berlin"
            }
        ],
        "start_index": 0,
        "sum": 3
    },
    "get_connect_cloud_state": {
        "status": 0
    },
    "get_device_info": {
        "device_id": "802D587301438320D7122ECF6E591028221B023C",
        "fw_ver": "1.5.10 Build 240207 Rel.175759",
        "hw_ver": "1.0",
        "type": "SMART.TAPOHUB",
        "model": "H100",
        "mac": "E4-FA-C4-6F-50-64",
        "hw_id": "81C01BC6E4AD1827315AC6A9D81A5132",
        "fw_id": "00000000000000000000000000000000",
        "oem_id": "D65F1AA7B819559EDF3C5C2BD5957929",
        "overheated": false,
        "ip": "192.168.1.86",
        "time_diff": 60,
        "ssid": "Q2FycGVOb2N0ZW1SZW1vdGU=",
        "rssi": -45,
        "signal_level": 3,
        "in_alarm": false,
        "in_alarm_source": "",
        "longitude": 86947,
        "latitude": 493225,
        "lang": "de_DE",
        "avatar": "hub",
        "region": "Europe/Berlin",
        "specs": "EU",
        "nickname": "U21hcnQgSHVi",
        "has_set_location_info": true
    },
    "get_device_usage": {},
    "get_latest_fw": {
        "type": 0,
        "fw_ver": "1.5.10 Build 240207 Rel.175759",
        "release_date": "",
        "release_note": "",
        "fw_size": 0,
        "hw_id": "",
        "oem_id": "",
        "need_to_upgrade": false
    },
    "get_auto_update_info": {
        "enable": true,
        "time": 780,
        "random_range": 120
    },
    "get_led_info": {
        "night_mode": {
            "night_mode_type": "sunrise_sunset",
            "start_time": 1239,
            "end_time": 368,
            "sunrise_offset": 0,
            "sunset_offset": 0
        },
        "led_status": true,
        "led_rule": "always"
    },
    "get_device_time": {
        "time_diff": 60,
        "timestamp": 1714223467,
        "region": "Europe/Berlin"
    }
}

I hope that with this info these senor types can be fully supported soon.

Best Regards,

Nico

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0