bewee / tuya-adapter

GNU General Public License v3.0
8 stars 8 forks source link

Add support for Plugs with energy monitoring #12

Closed nilsfed closed 4 years ago

nilsfed commented 4 years ago

Tested with my Gosund Smart Plug, which has the following dps:

dps: {
    '1': false,     //on/off
    '9': 0,         //static 0/unknown
    '18': 0,            //electric current  (mA)
    '19': 0,            //power watt * 10
    '20': 2303,          // voltage in volt * 10
    '21': 1,
    '22': 715,
    '23': 30333,
    '24': 20561,
    '25': 1010
  }

image

bewee commented 4 years ago

Works like a charm. I have just tweaked a few little things, see #13