@ShinJjang (ShinJjang) posted a new topic, subject "Xiaomi Zigbee Socket DTH(with Power, Energy meter)". It read:

   **This DTH is available for the sockets shown below. It is not perfect yet.**  
    
    
    IMG_2358.jpeg1646×960 50.9 KB
    
    IMG_2362.jpeg3375×2436 465 KB
    
    **This DTH works well both SmartThings Classic App and SmartThings New App.**
    
    **[Xiaomi Curtain DTH GitHub Repository Integration - Owner : shin4299 / Name : XiaomiSJ ]**
    
    Code Link

To which @Babar_Khan (Dr Babar Khan) replied

    Working! Great.

@Babar_Khan (Dr Babar Khan) replied

    Everything working great. Only one problem, temp sensor is shown in Smartthings tiles but cannot be added as temperature sensor in Webcore. Energy meter is working fine in both.
    
    Edit: I was able to add temperature in webcore too by adding [DeviceName:temp] but has to be refreshed manually to update

To which @brozeki (Benny) replied

    is there anyway to set the default state in case of power outage? I want to delay certain device from turning on too quickly after a power outage.

After which, @dotan_shai added

    Any chance to add support to the new Xiaomi ZNCZ04LM - Xiaomi Mijia EU Smart Socket Zigbee  
    aliexpress.com
    
    ### US $21.16 22% OFF|Xiaomi ZNCZ04LM Mini Home Smart WiFi Socket Compatible With...
    
    Smarter Shopping, Better Living! Aliexpress.com
    
    Which have better connectivity to EU sockets than the Chianese version .

To which @YoshaL (Йосип Лецович) replied

    I used this handler with Xiaomi ZNCZ04LM and working great, but power meter isn't work.

So @dotan_shai replied

    You can see also the power . Use this:
    
    Xiaomi Mi Smart Plug (New Model) Device Handler Devices & Integrations
    
    > Hi everyone! Does anyone know if there is a device handler for the relatively new Xiaomi Outlet (Model ZNCZ04LM)? I just bought it to do automations based on the power consumption but the device handlers that I have found just work for switch control (i.e. basic on/off). Would really appreciate someone pointing me in the right direction or adding support on one of the Xiaomi Device handlers that are already out there! Thanks!

Then @YoshaL (Йосип Лецович) said

    Thanks. I know about this handler, but it don't show kW per hour (kWh).


{'source': 'discourse', 'url': 'https://community.smartthings.com/t/xiaomi-zigbee-socket-dth-with-power-energy-meter/134455', 'title': 'Xiaomi Zigbee Socket DTH(with Power, Energy meter)', 'views': 2834, 'has_accepted_answer': False, 'word_count': 233, 'like_count': 2, 'reply_count': 3, 'participant_count': 5, 'posts': 8, 'tags': 'dth_pocketsocket', 'author': '@ShinJjang (ShinJjang)', 'participants': '@ShinJjang (ShinJjang), @Babar_Khan (Dr Babar Khan), @brozeki (Benny), @dotan_shai, @YoshaL (Йосип Лецович)', 'image_url': ['https://global.discourse-cdn.com/smartthings/optimized/3X/f/d/fdb6c9f872133a848d14194a07582839ff107619_2_1023x597.jpeg'], 'created_at': '2018-08-23T11:06:52.727Z', 'last_posted_at': '2020-08-02T13:08:41.650Z'}