SY1-ZigBee Smart Metering Switch (qeuvnohg) por Tuya

How to put this “SY1-ZigBee Smart Metering Switch (qeuvnohg) by Tuya” to manage the total power consumption in the home assistant?

In the home assistant it only has the on and off function.

If you open the device info, does it show any sensors?

Did you try the suggestion posted her: [Support new devices | Zigbee2MQTT]

No, just on and off function

As of 2024-03 this kind of devices show the power, current and voltage information, although they might be disabled:

My only issue is the data seems to be static, and only when I check the device in the Smart Life app, updated values are pushed to Home Assistant.

Adding the diagnostics data:

{
  "home_assistant": {
    "installation_type": "Home Assistant Container",
    "version": "2024.3.0",
    "dev": false,
    "hassio": false,
    "virtualenv": false,
    "python_version": "3.12.2",
    "docker": true,
    "arch": "x86_64",
    "timezone": "Europe/Madrid",
    "os_name": "Linux",
    "os_version": "6.5.0-25-generic",
    "run_as_root": true
  },
  "custom_components": {
    "wundergroundpws": {
      "version": "2.0.6",
      "requirements": []
    },
    "hacs": {
      "version": "1.34.0",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    }
  },
  "integration_manifest": {
    "domain": "tuya",
    "name": "Tuya",
    "codeowners": [
      "@Tuya",
      "@zlinoliver",
      "@frenck"
    ],
    "config_flow": true,
    "dependencies": [
      "ffmpeg"
    ],
    "dhcp": [
      {
        "macaddress": "105A17*"
      },
      {
        "macaddress": "10D561*"
      },
      {
        "macaddress": "1869D8*"
      },
      {
        "macaddress": "381F8D*"
      },
      {
        "macaddress": "508A06*"
      },
      {
        "macaddress": "68572D*"
      },
      {
        "macaddress": "708976*"
      },
      {
        "macaddress": "7CF666*"
      },
      {
        "macaddress": "84E342*"
      },
      {
        "macaddress": "D4A651*"
      },
      {
        "macaddress": "D81F12*"
      }
    ],
    "documentation": "https://www.home-assistant.io/integrations/tuya",
    "integration_type": "hub",
    "iot_class": "cloud_push",
    "loggers": [
      "tuya_iot"
    ],
    "requirements": [
      "tuya-device-sharing-sdk==0.1.9"
    ],
    "is_built_in": true
  },
  "data": {
    "endpoint": "https://apigw.tuyaeu.com",
    "terminal_id": "17079086049214wGiQJ",
    "mqtt_connected": true,
    "disabled_by": null,
    "disabled_polling": false,
    "id": "bfab24edc0846aea91zvia",
    "name": "Interruptor general",
    "category": "dlq",
    "product_id": "qeuvnohg",
    "product_name": "SY1-ZigBee Smart Metering Switch",
    "online": true,
    "sub": true,
    "time_zone": "+02:00",
    "active_time": "2024-03-14T09:58:52+00:00",
    "create_time": "2024-03-14T09:58:52+00:00",
    "update_time": "2024-03-14T09:58:52+00:00",
    "function": {
      "switch": {
        "type": "Boolean",
        "value": {}
      },
      "countdown_1": {
        "type": "Integer",
        "value": {
          "unit": "s",
          "min": 0,
          "max": 43200,
          "scale": 0,
          "step": 1
        }
      },
      "relay_status": {
        "type": "Enum",
        "value": {
          "range": [
            "power_off",
            "power_on",
            "last"
          ]
        }
      },
      "light_mode": {
        "type": "Enum",
        "value": {
          "range": [
            "none",
            "relay",
            "pos",
            "on"
          ]
        }
      },
      "child_lock": {
        "type": "Boolean",
        "value": {}
      },
      "online_state": {
        "type": "Enum",
        "value": {
          "range": [
            "online",
            "offline"
          ]
        }
      }
    },
    "status_range": {
      "switch": {
        "type": "Boolean",
        "value": {}
      },
      "countdown_1": {
        "type": "Integer",
        "value": {
          "unit": "s",
          "min": 0,
          "max": 43200,
          "scale": 0,
          "step": 1
        }
      },
      "add_ele": {
        "type": "Integer",
        "value": {
          "unit": "kW\u00b7h",
          "min": 0,
          "max": 9999999,
          "scale": 3,
          "step": 100
        }
      },
      "cur_current": {
        "type": "Integer",
        "value": {
          "unit": "mA",
          "min": 0,
          "max": 99999,
          "scale": 0,
          "step": 1
        }
      },
      "cur_power": {
        "type": "Integer",
        "value": {
          "unit": "W",
          "min": 0,
          "max": 260000,
          "scale": 1,
          "step": 1
        }
      },
      "cur_voltage": {
        "type": "Integer",
        "value": {
          "unit": "V",
          "min": 0,
          "max": 9999,
          "scale": 1,
          "step": 1
        }
      },
      "test_bit": {
        "type": "Integer",
        "value": {
          "min": 0,
          "max": 5,
          "scale": 0,
          "step": 1
        }
      },
      "voltage_coe": {
        "type": "Integer",
        "value": {
          "min": 0,
          "max": 999999,
          "scale": 0,
          "step": 1
        }
      },
      "electric_coe": {
        "type": "Integer",
        "value": {
          "min": 0,
          "max": 999999,
          "scale": 0,
          "step": 1
        }
      },
      "power_coe": {
        "type": "Integer",
        "value": {
          "min": 0,
          "max": 999999,
          "scale": 0,
          "step": 1
        }
      },
      "electricity_coe": {
        "type": "Integer",
        "value": {
          "min": 0,
          "max": 999999,
          "scale": 0,
          "step": 1
        }
      },
      "fault": {
        "type": "Bitmap",
        "value": {
          "label": [
            "ov_cr",
            "ov_vol",
            "ov_pwr",
            "ls_cr",
            "ls_vol",
            "ls_pow",
            "short_circuit_alarm",
            "overload_alarm",
            "leakagecurr_alarm",
            "self_test_alarm",
            "high_temp",
            "unbalance_alarm",
            "miss_phase_alarm"
          ]
        }
      },
      "relay_status": {
        "type": "Enum",
        "value": {
          "range": [
            "power_off",
            "power_on",
            "last"
          ]
        }
      },
      "light_mode": {
        "type": "Enum",
        "value": {
          "range": [
            "none",
            "relay",
            "pos",
            "on"
          ]
        }
      },
      "child_lock": {
        "type": "Boolean",
        "value": {}
      }
    },
    "status": {
      "switch": true,
      "countdown_1": 0,
      "add_ele": 9330,
      "cur_current": 2447,
      "cur_power": 3690,
      "cur_voltage": 2290,
      "test_bit": 0,
      "voltage_coe": 0,
      "electric_coe": 0,
      "power_coe": 0,
      "electricity_coe": 0,
      "fault": 0,
      "relay_status": "last",
      "light_mode": "relay",
      "child_lock": false
    },
    "home_assistant": {
      "name": "Interruptor general",
      "name_by_user": null,
      "disabled": false,
      "disabled_by": null,
      "entities": [
        {
          "disabled": true,
          "disabled_by": "integration",
          "entity_category": null,
          "device_class": null,
          "original_device_class": "current",
          "icon": null,
          "original_icon": null,
          "unit_of_measurement": "A",
          "state": null
        },
        {
          "disabled": true,
          "disabled_by": "integration",
          "entity_category": null,
          "device_class": null,
          "original_device_class": "voltage",
          "icon": null,
          "original_icon": null,
          "unit_of_measurement": "V",
          "state": null
        },
        {
          "disabled": false,
          "disabled_by": null,
          "entity_category": "config",
          "device_class": null,
          "original_device_class": null,
          "icon": null,
          "original_icon": "mdi:account-lock",
          "unit_of_measurement": null,
          "state": {
            "entity_id": "switch.interruptor_general_bloqueo_infantil",
            "state": "off",
            "attributes": {
              "icon": "mdi:account-lock",
              "friendly_name": "Interruptor general Bloqueo infantil"
            },
            "last_changed": "2024-03-14T10:12:04.474904+00:00",
            "last_updated": "2024-03-14T10:12:04.474904+00:00"
          }
        },
        {
          "disabled": false,
          "disabled_by": null,
          "entity_category": null,
          "device_class": null,
          "original_device_class": null,
          "icon": null,
          "original_icon": null,
          "unit_of_measurement": null,
          "state": {
            "entity_id": "switch.interruptor_general_interruptor",
            "state": "on",
            "attributes": {
              "friendly_name": "Interruptor general Interruptor"
            },
            "last_changed": "2024-03-14T10:12:04.475119+00:00",
            "last_updated": "2024-03-14T10:12:04.475119+00:00"
          }
        },
        {
          "disabled": false,
          "disabled_by": null,
          "entity_category": null,
          "device_class": null,
          "original_device_class": "power",
          "icon": null,
          "original_icon": null,
          "unit_of_measurement": "W",
          "state": {
            "entity_id": "sensor.interruptor_general_potencia",
            "state": "369.0",
            "attributes": {
              "state_class": "measurement",
              "unit_of_measurement": "W",
              "device_class": "power",
              "friendly_name": "Interruptor general Potencia"
            },
            "last_changed": "2024-03-15T09:09:58.862533+00:00",
            "last_updated": "2024-03-15T09:09:58.862533+00:00"
          }
        },
        {
          "disabled": false,
          "disabled_by": null,
          "entity_category": null,
          "device_class": null,
          "original_device_class": "energy",
          "icon": null,
          "original_icon": "mdi:chart-histogram",
          "unit_of_measurement": null,
          "state": {
            "entity_id": "sensor.consumo_santo_angel",
            "state": "8.76",
            "attributes": {
              "state_class": "total",
              "source": "sensor.interruptor_general_potencia",
              "unit_of_measurement": "kWh",
              "device_class": "energy",
              "friendly_name": "Consumo Santo Angel"
            },
            "last_changed": "2024-03-15T09:09:58.863256+00:00",
            "last_updated": "2024-03-15T09:09:58.863256+00:00"
          }
        },
        {
          "disabled": false,
          "disabled_by": null,
          "entity_category": null,
          "device_class": null,
          "original_device_class": "energy",
          "icon": null,
          "original_icon": null,
          "unit_of_measurement": null,
          "state": {
            "entity_id": "sensor.consumo_diario_santo_angel",
            "state": "0.01",
            "attributes": {
              "state_class": "total_increasing",
              "source": "sensor.consumo_santo_angel",
              "status": "collecting",
              "last_period": "0",
              "last_valid_state": "8.76",
              "meter_period": "daily",
              "cron pattern": "0 0 * * *",
              "last_reset": "2024-03-15T09:09:30.984377+00:00",
              "unit_of_measurement": "kWh",
              "device_class": "energy",
              "friendly_name": "Consumo diario Santo Angel"
            },
            "last_changed": "2024-03-15T09:09:58.864488+00:00",
            "last_updated": "2024-03-15T09:09:58.864488+00:00"
          }
        }
      ]
    },
    "set_up": true,
    "support_local": true
  }
}