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

Integrate new device. 2 Way Smart Curtain #1855

Open
3 tasks done
palmareka opened this issue Nov 27, 2024 · 0 comments
Open
3 tasks done

Integrate new device. 2 Way Smart Curtain #1855

palmareka opened this issue Nov 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@palmareka
Copy link

The problem

Environment

  • Localtuya version: 5.2.1
  • Home Assistant Core version: 2024.11.3
  • Does the device work using the Home Assistant Tuya Cloud component ?
  • Does the device work using the Tinytuya (https://github.com/jasonacox/tinytuya) command line tool ?
  • [] Was the device working with earlier versions of localtuya ? Which one?
  • Are you using the Tuya/SmartLife App in parallel ?

Steps to reproduce

  1. The second relay cannot be integrated

DP dump

        "1": {
            "code": "control",
            "type": "Enum",
            "values": {
                "range": [
                    "open",
                    "stop",
                    "close"
                ]
            }
        },
        "2": {
            "code": "percent_control",
            "type": "Integer",
            "values": {
                "unit": "%",
                "min": 0,
                "max": 100,
                "scale": 0,
                "step": 1
            }
        },
        "3": {
            "code": "cur_calibration",
            "type": "Enum",
            "values": {
                "range": [
                    "start",
                    "end"
                ]
            }
        },
        "4": {
            "code": "control_2",
            "type": "Enum",
            "values": {
                "range": [
                    "open",
                    "stop",
                    "close"
                ]
            }
        },
        "5": {
            "code": "percent_control_2",
            "type": "Integer",
            "values": {
                "unit": "%",
                "min": 0,
                "max": 100,
                "scale": 0,
                "step": 1
            }
        },
        "6": {
            "code": "cur_calibration_2",
            "type": "Enum",
            "values": {
                "range": [
                    "start",
                    "end"
                ]
            }
        },
        "8": {
            "code": "control_back_mode",
            "type": "Enum",
            "values": {
                "range": [
                    "forward",
                    "back"
                ]
            }
        },
        "9": {
            "code": "control_back_mode_2",
            "type": "Enum",
            "values": {
                "range": [
                    "forward",
                    "back"
                ]
            }
        },
        "10": {
            "code": "tr_timecon",
            "type": "Integer",
            "values": {
                "unit": "s",
                "min": 2,
                "max": 120,
                "scale": 0,
                "step": 1
            }
        },
        "11": {
            "code": "tr_timecon_2",
            "type": "Integer",
            "values": {
                "unit": "s",
                "min": 2,
                "max": 120,
                "scale": 0,
                "step": 1
            }
        },
        "14": {
            "code": "light_mode",
            "type": "Enum",
            "values": {
                "range": [
                    "relay",
                    "pos",
                    "none"
                ]
            }
        }
    },
    "ip": "192.168.1.239",
    "version": "3.3"
}

Provide Home Assistant traceback/logs

Registrador: homeassistant.util.logging
Fuente: util/logging.py:95
Ocurrió por primera vez: 24 de noviembre de 2024, 19:27:33 (67 ocurrencias)
Última vez registrado: 20:56:47

Exception in _update_handler when dispatching 'localtuya_bfa39a887e68b7f744dbm5': ({'1': 'stop', '2': 75, '4': 'stop', '5': 95, '8': 'forward', '9': 'forward', '10': 18, '11': 18, '14': 'relay'},) Traceback (most recent call last): File "/config/custom_components/localtuya/common.py", line 413, in _update_handler self.status_updated() File "/config/custom_components/localtuya/cover.py", line 191, in status_updated if self._state.isupper(): ^^^^^^^^^^^^^^^^^^^ AttributeError: 'int' object has no attribute 'isupper'
Exception in _update_handler when dispatching 'localtuya_bfa39a887e68b7f744dbm5': ({'1': 'close', '2': 75, '4': 'stop', '5': 95, '8': 'forward', '9': 'forward', '10': 18, '11': 18, '14': 'relay'},) Traceback (most recent call last): File "/config/custom_components/localtuya/common.py", line 413, in _update_handler self.status_updated() File "/config/custom_components/localtuya/cover.py", line 191, in status_updated if self._state.isupper(): ^^^^^^^^^^^^^^^^^^^ AttributeError: 'int' object has no attribute 'isupper'
Exception in _update_handler when dispatching 'localtuya_bfa39a887e68b7f744dbm5': ({'1': 'stop', '2': 0, '4': 'stop', '5': 95, '8': 'forward', '9': 'forward', '10': 18, '11': 18, '14': 'relay'},) Traceback (most recent call last): File "/config/custom_components/localtuya/common.py", line 413, in _update_handler self.status_updated() File "/config/custom_components/localtuya/cover.py", line 191, in status_updated if self._state.isupper(): ^^^^^^^^^^^^^^^^^^^ AttributeError: 'int' object has no attribute 'isupper'
Exception in _update_handler when dispatching 'localtuya_bfa39a887e68b7f744dbm5': ({'1': 'stop', '2': 0, '4': 'close', '5': 95, '8': 'forward', '9': 'forward', '10': 18, '11': 18, '14': 'relay'},) Traceback (most recent call last): File "/config/custom_components/localtuya/common.py", line 413, in _update_handler self.status_updated() File "/config/custom_components/localtuya/cover.py", line 191, in status_updated if self._state.isupper(): ^^^^^^^^^^^^^^^^^^^ AttributeError: 'int' object has no attribute 'isupper'
Exception in _update_handler when dispatching 'localtuya_bfa39a887e68b7f744dbm5': ({'1': 'stop', '2': 0, '4': 'stop', '5': 0, '8': 'forward', '9': 'forward', '10': 18, '11': 18, '14': 'relay'},) Traceback (most recent call last): File "/config/custom_components/localtuya/common.py", line 413, in _update_handler self.status_updated() File "/config/custom_components/localtuya/cover.py", line 191, in status_updated if self._state.isupper(): ^^^^^^^^^^^^^^^^^^^ AttributeError: 'int' object has no attribute 'isupper'

Additional information

Controlador Persianas

@palmareka palmareka added the bug Something isn't working label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant