NorthernMan54 / homebridge-tasmota

Plugin for Tasmota devices leveraging Home Assistant auto discovery
Apache License 2.0
35 stars 9 forks source link

Tasmota outlets show up as 2 switches #44

Closed MHeuvel closed 1 year ago

MHeuvel commented 2 years ago

Describe The Bug: Different versions on Tasmota flashed power plugs show up as 2 devices, the switch itself and the total energy plug.

To Reproduce: Enable setoption19 1 for a tasmota flashed plug (version 9, 10)

Expected behavior: Omit second plug

Logs: [2/13/2022, 6:36:35 PM] Homebridge v1.4.0 (HAP v0.10.0) (Homebridge 72E9) is running on port 51655. [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: HDHomeRun ENERGY TotalStartTime [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: HDHomeRun ENERGY TotalStartTime sensor [2/13/2022, 6:36:35 PM] [Tasmota] Warning: missing dev_cla HDHomeRun ENERGY TotalStartTime [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: HDHomeRun ENERGY Total [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: HDHomeRun ENERGY Total sensor [2/13/2022, 6:36:35 PM] [Tasmota] Warning: Unhandled Tasmota sensor type energy [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: HDHomeRun ENERGY Yesterday [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: HDHomeRun ENERGY Yesterday sensor [2/13/2022, 6:36:35 PM] [Tasmota] Warning: Unhandled Tasmota sensor type energy [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: HDHomeRun ENERGY Today [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: HDHomeRun ENERGY Today sensor [2/13/2022, 6:36:35 PM] [Tasmota] Warning: Unhandled Tasmota sensor type energy [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: HDHomeRun ENERGY Power [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: HDHomeRun ENERGY Power sensor [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: HDHomeRun ENERGY ApparentPower [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: HDHomeRun ENERGY ApparentPower sensor [2/13/2022, 6:36:35 PM] [Tasmota] Warning: Unhandled Tasmota power sensor type _energy_apparentpower [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: HDHomeRun ENERGY ReactivePower [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: HDHomeRun ENERGY ReactivePower sensor [2/13/2022, 6:36:35 PM] [Tasmota] Warning: Unhandled Tasmota power sensor type _energy_reactivepower [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: HDHomeRun ENERGY Factor [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: HDHomeRun ENERGY Factor sensor [2/13/2022, 6:36:35 PM] [Tasmota] Warning: Unhandled Tasmota sensor type power_factor [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: HDHomeRun ENERGY Voltage [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: HDHomeRun ENERGY Voltage sensor [2/13/2022, 6:36:35 PM] [Tasmota] Warning: Unhandled Tasmota sensor type voltage [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: HDHomeRun ENERGY Current [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: HDHomeRun ENERGY Current sensor [2/13/2022, 6:36:35 PM] [Tasmota] Warning: Unhandled Tasmota sensor type current [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: HDHomeRun status [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: HDHomeRun status sensor [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: Light status [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: Light status sensor [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: TV ENERGY TotalStartTime [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: TV ENERGY TotalStartTime sensor [2/13/2022, 6:36:35 PM] [Tasmota] Warning: missing dev_cla TV ENERGY TotalStartTime [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: TV ENERGY Total [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: TV ENERGY Total sensor [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: TV ENERGY Yesterday [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: TV ENERGY Yesterday sensor [2/13/2022, 6:36:35 PM] [Tasmota] Warning: Unhandled Tasmota power sensor type _energy_yesterday [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: TV ENERGY Today [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: TV ENERGY Today sensor [2/13/2022, 6:36:35 PM] [Tasmota] Warning: Unhandled Tasmota power sensor type _energy_today [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: TV ENERGY Power [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: TV ENERGY Power sensor [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: TV ENERGY ApparentPower [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: TV ENERGY ApparentPower sensor [2/13/2022, 6:36:35 PM] [Tasmota] Warning: Unhandled Tasmota power sensor type _energy_apparentpower [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: TV ENERGY ReactivePower [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: TV ENERGY ReactivePower sensor [2/13/2022, 6:36:35 PM] [Tasmota] Warning: Unhandled Tasmota power sensor type _energy_reactivepower [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: TV ENERGY Factor [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: TV ENERGY Factor sensor [2/13/2022, 6:36:35 PM] [Tasmota] Warning: missing dev_cla TV ENERGY Factor [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: TV ENERGY Voltage [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: TV ENERGY Voltage sensor [2/13/2022, 6:36:35 PM] [Tasmota] Warning: missing dev_cla TV ENERGY Voltage [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: TV ENERGY Current [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: TV ENERGY Current sensor [2/13/2022, 6:36:35 PM] [Tasmota] Warning: missing dev_cla TV ENERGY Current [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: TV status [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: TV status sensor [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: Computer ENERGY TotalStartTime [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: Computer ENERGY TotalStartTime sensor [2/13/2022, 6:36:35 PM] [Tasmota] Warning: missing dev_cla Computer ENERGY TotalStartTime [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: Computer ENERGY Total [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: Computer ENERGY Total sensor [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: Computer ENERGY Yesterday [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: Computer ENERGY Yesterday sensor [2/13/2022, 6:36:35 PM] [Tasmota] Warning: Unhandled Tasmota power sensor type _energy_yesterday [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: Computer ENERGY Today [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: Computer ENERGY Today sensor [2/13/2022, 6:36:35 PM] [Tasmota] Warning: Unhandled Tasmota power sensor type _energy_today [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: Computer ENERGY Power [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: Computer ENERGY Power sensor [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: Computer ENERGY ApparentPower [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: Computer ENERGY ApparentPower sensor [2/13/2022, 6:36:35 PM] [Tasmota] Warning: Unhandled Tasmota power sensor type _energy_apparentpower [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: Computer ENERGY ReactivePower [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: Computer ENERGY ReactivePower sensor [2/13/2022, 6:36:35 PM] [Tasmota] Warning: Unhandled Tasmota power sensor type _energy_reactivepower [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: Computer ENERGY Factor [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: Computer ENERGY Factor sensor [2/13/2022, 6:36:35 PM] [Tasmota] Warning: missing dev_cla Computer ENERGY Factor [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: Computer ENERGY Voltage [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: Computer ENERGY Voltage sensor [2/13/2022, 6:36:35 PM] [Tasmota] Warning: missing dev_cla Computer ENERGY Voltage [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: Computer ENERGY Current [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: Computer ENERGY Current sensor [2/13/2022, 6:36:35 PM] [Tasmota] Warning: missing dev_cla Computer ENERGY Current [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: Computer status [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: Computer status sensor [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: Sensors AM2301 Temperature [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: Sensors AM2301 Temperature sensor [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: Sensors AM2301 Humidity [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: Sensors AM2301 Humidity sensor [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: Sensors AM2301 DewPoint [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: Sensors AM2301 DewPoint sensor [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: Sensors BH1750 Illuminance [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: Sensors BH1750 Illuminance sensor [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: Sensors status [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: Sensors status sensor [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: Bed ENERGY TotalStartTime [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: Bed ENERGY TotalStartTime sensor [2/13/2022, 6:36:35 PM] [Tasmota] Warning: missing dev_cla Bed ENERGY TotalStartTime [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: Bed ENERGY Total [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: Bed ENERGY Total sensor [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: Bed ENERGY Yesterday [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: Bed ENERGY Yesterday sensor [2/13/2022, 6:36:35 PM] [Tasmota] Warning: Unhandled Tasmota power sensor type _energy_yesterday [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: Bed ENERGY Today [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: Bed ENERGY Today sensor [2/13/2022, 6:36:35 PM] [Tasmota] Warning: Unhandled Tasmota power sensor type _energy_today [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: Bed ENERGY Power [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: Bed ENERGY Power sensor [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: Bed ENERGY ApparentPower [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: Bed ENERGY ApparentPower sensor [2/13/2022, 6:36:35 PM] [Tasmota] Warning: Unhandled Tasmota power sensor type _energy_apparentpower [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: Bed ENERGY ReactivePower [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: Bed ENERGY ReactivePower sensor [2/13/2022, 6:36:35 PM] [Tasmota] Warning: Unhandled Tasmota power sensor type _energy_reactivepower [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: Bed ENERGY Factor [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: Bed ENERGY Factor sensor [2/13/2022, 6:36:35 PM] [Tasmota] Warning: missing dev_cla Bed ENERGY Factor [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: Bed ENERGY Voltage [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: Bed ENERGY Voltage sensor [2/13/2022, 6:36:35 PM] [Tasmota] Warning: missing dev_cla Bed ENERGY Voltage [2/13/2022, 6:36:35 PM] [Tasmota] Found existing accessory: Bed ENERGY Current [2/13/2022, 6:36:35 PM] [Tasmota] Creating service: Bed ENERGY Current sensor [2/13/2022, 6:36:35 PM] [Tasmota] Warning: missing dev_cla Bed ENERGY Current [2/13/2022, 6:36:36 PM] [Tasmota] Found existing accessory: Bed status [2/13/2022, 6:36:36 PM] [Tasmota] Creating service: Bed status sensor [2/13/2022, 6:36:36 PM] [Tasmota] Found existing accessory: Light [2/13/2022, 6:36:36 PM] [Tasmota] Creating service: Light light [2/13/2022, 6:36:36 PM] [Tasmota] Found existing accessory: HDHomeRun [2/13/2022, 6:36:36 PM] [Tasmota] Creating service: HDHomeRun switch [2/13/2022, 6:36:36 PM] [Tasmota] Found existing accessory: TV [2/13/2022, 6:36:36 PM] [Tasmota] Creating service: TV switch [2/13/2022, 6:36:36 PM] [Tasmota] Found existing accessory: Computer [2/13/2022, 6:36:36 PM] [Tasmota] Creating service: Computer switch [2/13/2022, 6:36:36 PM] [Tasmota] Found existing accessory: Bed [2/13/2022, 6:36:36 PM] [Tasmota] Creating service: Bed switch [2/13/2022, 6:36:36 PM] [Tasmota] Marking accessory 'HDHomeRun ENERGY Power' to Online [2/13/2022, 6:36:36 PM] [Tasmota] Marking accessory 'HDHomeRun' to Online [2/13/2022, 6:36:36 PM] [Tasmota] Marking accessory 'TV ENERGY Total' to Online [2/13/2022, 6:36:36 PM] [Tasmota] Marking accessory 'TV ENERGY Total' to Online [2/13/2022, 6:36:36 PM] [Tasmota] Marking accessory 'TV' to Online [2/13/2022, 6:36:36 PM] [Tasmota] Marking accessory 'Computer ENERGY Total' to Online [2/13/2022, 6:36:36 PM] [Tasmota] Marking accessory 'Computer ENERGY Total' to Online [2/13/2022, 6:36:36 PM] [Tasmota] Marking accessory 'Computer' to Online [2/13/2022, 6:36:36 PM] [Tasmota] Marking accessory 'Sensors AM2301 Temperature' to Online [2/13/2022, 6:36:36 PM] [Tasmota] Marking accessory 'Sensors AM2301 Humidity' to Online [2/13/2022, 6:36:36 PM] [Tasmota] Marking accessory 'Sensors AM2301 DewPoint' to Online [2/13/2022, 6:36:36 PM] [Tasmota] Marking accessory 'Sensors BH1750 Illuminance' to Online [2/13/2022, 6:36:36 PM] [Tasmota] Marking accessory 'Bed ENERGY Total' to Online [2/13/2022, 6:36:36 PM] [Tasmota] Marking accessory 'Bed ENERGY Total' to Online [2/13/2022, 6:36:36 PM] [Tasmota] Marking accessory 'Bed' to Online [2/13/2022, 6:36:36 PM] [Tasmota] Marking accessory 'Light' to Online [2/13/2022, 6:36:36 PM] [Tasmota] Marking accessory 'Light' to Online

Tasmota Device Config:


Please include the Tasmota Module Type / Configuration and Template ( if used )
{"NAME":"Neo Coolcam 16","GPIO":[32,0,0,0,2688,2656,0,0,2624,320,224,0,0,0],"FLAG":0,"BASE":49}

**Screenshots:**
<!-- If applicable, add screenshots to help explain your problem. -->

**Environment:**

* **Tasmota Version**: 9.3.1, 10.0.1
* **Plugin Version**: 0.1.1
* **Homebridge Version**: 1.4.0
* **Node.js Version**: <!-- node -v -->
* **NPM Version**: <!-- npm -v -->
* **Operating System**: ubuntu 18.04.5

<!-- Click the "Preview" tab before you submit to ensure the formatting is correct. -->
NorthernMan54 commented 2 years ago

I’m currently away and don’t have access to my test environment for a few weeks, so this investigation will have to wait until I’m back

madmarf commented 2 years ago

I have the same problem, I think the total-energy switch is the current power consumption, but shown as a switch and not as a status..