NorthernMan54 / homebridge-tasmota

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

Support of Gosund SP1 v23 #35

Closed TheChatty closed 1 year ago

TheChatty commented 2 years ago

Is your feature request related to a problem? Please describe: When having a Gosund SP1 outlet being autodiscovered it shows up as two devices in HB (and in HomeKit as one device with two switches) - the one the right side is connected to the actual switch: image

This happened log-wise:

[10/1/2021, 10:41:23 PM] [Tasmota] Adding new accessory: Waschmaschine ENERGY TotalStartTime
[10/1/2021, 10:41:23 PM] [Tasmota] Found existing accessory: Waschmaschine ENERGY Total
[10/1/2021, 10:41:23 PM] [Tasmota] Creating service: Waschmaschine ENERGY Total sensor
[10/1/2021, 10:41:23 PM] [homebridge-tasmota] This plugin generated a warning from the characteristic 'Total Consumption': Characteristic not in required or optional characteristic section for service . Adding anyway.. See https://git.io/JtMGR for more info.
[10/1/2021, 10:41:23 PM] [homebridge-tasmota] This plugin generated a warning from the characteristic 'Configured Name': Characteristic not in required or optional characteristic section for service . Adding anyway.. See https://git.io/JtMGR for more info.
[10/1/2021, 10:41:23 PM] [Tasmota] Found existing accessory: Waschmaschine ENERGY Yesterday
[10/1/2021, 10:41:23 PM] [Tasmota] Creating service: Waschmaschine ENERGY Yesterday sensor
[10/1/2021, 10:41:23 PM] [Tasmota] Warning: Unhandled Tasmota power sensor type _energy_yesterday
[10/1/2021, 10:41:23 PM] [Tasmota] Marking accessory 'Waschmaschine ENERGY Total' to Online
[10/1/2021, 10:41:23 PM] [Tasmota] Found existing accessory: Waschmaschine ENERGY Today
[10/1/2021, 10:41:23 PM] [Tasmota] Creating service: Waschmaschine ENERGY Today sensor
[10/1/2021, 10:41:23 PM] [Tasmota] Warning: Unhandled Tasmota power sensor type _energy_today
[10/1/2021, 10:41:23 PM] [Tasmota] Found existing accessory: Waschmaschine ENERGY Power
[10/1/2021, 10:41:23 PM] [Tasmota] Creating service: Waschmaschine ENERGY Power sensor
[10/1/2021, 10:41:23 PM] [homebridge-tasmota] This plugin generated a warning from the characteristic 'Current Consumption': Characteristic not in required or optional characteristic section for service . Adding anyway.. See https://git.io/JtMGR for more info.
[10/1/2021, 10:41:23 PM] [Tasmota] Found existing accessory: Waschmaschine ENERGY ApparentPower
[10/1/2021, 10:41:23 PM] [Tasmota] Creating service: Waschmaschine ENERGY ApparentPower sensor
[10/1/2021, 10:41:23 PM] [Tasmota] Warning: Unhandled Tasmota power sensor type _energy_apparentpower
[10/1/2021, 10:41:23 PM] [Tasmota] Found existing accessory: Waschmaschine ENERGY ReactivePower
[10/1/2021, 10:41:23 PM] [Tasmota] Creating service: Waschmaschine ENERGY ReactivePower sensor
[10/1/2021, 10:41:23 PM] [Tasmota] Warning: Unhandled Tasmota power sensor type _energy_reactivepower
[10/1/2021, 10:41:24 PM] [Tasmota] Found existing accessory: Waschmaschine ENERGY Factor
[10/1/2021, 10:41:24 PM] [Tasmota] Creating service: Waschmaschine ENERGY Factor sensor
[10/1/2021, 10:41:24 PM] [Tasmota] Found existing accessory: Waschmaschine ENERGY Voltage
[10/1/2021, 10:41:24 PM] [Tasmota] Creating service: Waschmaschine ENERGY Voltage sensor
[10/1/2021, 10:41:24 PM] [Tasmota] Found existing accessory: Waschmaschine ENERGY Current
[10/1/2021, 10:41:24 PM] [Tasmota] Creating service: Waschmaschine ENERGY Current sensor
[10/1/2021, 10:41:24 PM] [Tasmota] Found existing accessory: Tasmota
[10/1/2021, 10:41:24 PM] [Tasmota] Creating service: Tasmota switch
[10/1/2021, 10:41:24 PM] [homebridge-tasmota] This plugin generated a warning from the characteristic 'Configured Name': Characteristic not in required or optional characteristic section for service . Adding anyway.. See https://git.io/JtMGR for more info.
[10/1/2021, 10:41:24 PM] [Tasmota] Found existing accessory: Waschmaschine status
[10/1/2021, 10:41:24 PM] [Tasmota] Creating service: Waschmaschine status sensor

Describe the solution you'd like: Appear as one switch (which it is) and present details (voltage, current, consumption etc) to HomeKit if possible.

Describe alternatives you've considered: I use homebridge-aedes as broker - means it starts along homebridge. Thus MQTT outlets register some time after aedes started up. When using mqttthing and startPub configuration to ask for on/off status at HB start up the outlets have not yet registered at that point. I would have to create a so-called codec to react on the online messages from the outlets.

Additional context:

NorthernMan54 commented 2 years ago

Currently Voltage, Current and consumption are not part of the Home App, and to view these values you need to use the Elgato Eve App.

TheChatty commented 2 years ago

Ok. But could you please make it appear as one switch?

NorthernMan54 commented 2 years ago

Can you enable debug and share the 'Tasmota:platform Discovered' messages for the device ? I'm wondering what is creating the second switch.

TheChatty commented 2 years ago
2021-10-06T16:00:12.041Z Tasmota:platform Discovered -> homeassistant/sensor/1C52D8_ENERGY_TotalStartTime/config Waschmaschine ENERGY TotalStartTime {
  name: 'Waschmaschine ENERGY TotalStartTime',
  stat_t: 'tele/maschine/SENSOR',
  avty_t: 'tele/maschine/LWT',
  pl_avail: 'Online',
  pl_not_avail: 'Offline',
  uniq_id: '1C52D8_ENERGY_TotalStartTime',
  dev: { ids: [ '1C52D8' ] },
  unit_of_meas: ' ',
  ic: 'mdi:progress-clock',
  frc_upd: true,
  val_tpl: "{{value_json['ENERGY']['TotalStartTime']}}",
  tasmotaType: 'sensor',
  pl_on: 'ON',
  pl_off: 'OFF'
}
[10/6/2021, 6:00:12 PM] [Tasmota] Adding new accessory: Waschmaschine ENERGY TotalStartTime
[10/6/2021, 6:00:12 PM] [Tasmota] Setting accessory information Waschmaschine ENERGY TotalStartTime
2021-10-06T16:00:12.055Z Tasmota:Service fakegatoService exists Waschmaschine ENERGY TotalStartTime
2021-10-06T16:00:12.056Z Tasmota:platform discovery devices - this.api.registerPlatformAccessories
2021-10-06T16:00:12.063Z Tasmota:platform Discovered -> homeassistant/sensor/1C52D8_ENERGY_Total/config Waschmaschine ENERGY Total {
  name: 'Waschmaschine ENERGY Total',
  stat_t: 'tele/maschine/SENSOR',
  avty_t: 'tele/maschine/LWT',
  pl_avail: 'Online',
  pl_not_avail: 'Offline',
  uniq_id: '1C52D8_ENERGY_Total',
  dev: { ids: [ '1C52D8' ] },
  unit_of_meas: 'kWh',
  dev_cla: 'power',
  frc_upd: true,
  val_tpl: "{{value_json['ENERGY']['Total']}}",
  tasmotaType: 'sensor',
  pl_on: 'ON',
  pl_off: 'OFF'
}
[10/6/2021, 6:00:12 PM] [Tasmota] Found existing accessory: Waschmaschine ENERGY Total
[10/6/2021, 6:00:12 PM] [Tasmota] Creating service: Waschmaschine ENERGY Total sensor
[10/6/2021, 6:00:12 PM] [homebridge-tasmota] This plugin generated a warning from the characteristic 'Total Consumption': Characteristic not in required or optional characteristic section for service Switch. Adding anyway.. See https://git.io/JtMGR for more info.
2021-10-06T16:00:12.098Z Tasmota:platform Discovered -> homeassistant/sensor/1C52D8_ENERGY_Yesterday/config Waschmaschine ENERGY Yesterday {
  name: 'Waschmaschine ENERGY Yesterday',
  stat_t: 'tele/maschine/SENSOR',
  avty_t: 'tele/maschine/LWT',
  pl_avail: 'Online',
  pl_not_avail: 'Offline',
  uniq_id: '1C52D8_ENERGY_Yesterday',
  dev: { ids: [ '1C52D8' ] },
  unit_of_meas: 'kWh',
  dev_cla: 'power',
  frc_upd: true,
  val_tpl: "{{value_json['ENERGY']['Yesterday']}}",
  tasmotaType: 'sensor',
  pl_on: 'ON',
  pl_off: 'OFF'
}
[10/6/2021, 6:00:12 PM] [Tasmota] Found existing accessory: Waschmaschine ENERGY Yesterday
[10/6/2021, 6:00:12 PM] [Tasmota] Creating service: Waschmaschine ENERGY Yesterday sensor
[10/6/2021, 6:00:12 PM] [Tasmota] Warning: Unhandled Tasmota power sensor type _energy_yesterday
2021-10-06T16:00:12.102Z Tasmota:Service fakegatoService exists Waschmaschine ENERGY Yesterday
2021-10-06T16:00:12.102Z Tasmota:platform discoveryDevices - this.api.updatePlatformAccessories
2021-10-06T16:00:12.132Z Tasmota:platform Discovered -> homeassistant/sensor/1C52D8_ENERGY_Today/config Waschmaschine ENERGY Today {
  name: 'Waschmaschine ENERGY Today',
  stat_t: 'tele/maschine/SENSOR',
  avty_t: 'tele/maschine/LWT',
  pl_avail: 'Online',
  pl_not_avail: 'Offline',
  uniq_id: '1C52D8_ENERGY_Today',
  dev: { ids: [ '1C52D8' ] },
  unit_of_meas: 'kWh',
  dev_cla: 'power',
  frc_upd: true,
  val_tpl: "{{value_json['ENERGY']['Today']}}",
  tasmotaType: 'sensor',
  pl_on: 'ON',
  pl_off: 'OFF'
}
[10/6/2021, 6:00:12 PM] [Tasmota] Found existing accessory: Waschmaschine ENERGY Today
[10/6/2021, 6:00:12 PM] [Tasmota] Creating service: Waschmaschine ENERGY Today sensor
[10/6/2021, 6:00:12 PM] [Tasmota] Warning: Unhandled Tasmota power sensor type _energy_today
2021-10-06T16:00:12.135Z Tasmota:Service fakegatoService exists Waschmaschine ENERGY Today
2021-10-06T16:00:12.135Z Tasmota:platform discoveryDevices - this.api.updatePlatformAccessories
2021-10-06T16:00:12.138Z Tasmota:platform Discovered -> homeassistant/sensor/1C52D8_ENERGY_Power/config Waschmaschine ENERGY Power {
  name: 'Waschmaschine ENERGY Power',
  stat_t: 'tele/maschine/SENSOR',
  avty_t: 'tele/maschine/LWT',
  pl_avail: 'Online',
  pl_not_avail: 'Offline',
  uniq_id: '1C52D8_ENERGY_Power',
  dev: { ids: [ '1C52D8' ] },
  unit_of_meas: 'W',
  dev_cla: 'power',
  frc_upd: true,
  val_tpl: "{{value_json['ENERGY']['Power']}}",
  tasmotaType: 'sensor',
  pl_on: 'ON',
  pl_off: 'OFF'
}
[10/6/2021, 6:00:12 PM] [Tasmota] Found existing accessory: Waschmaschine ENERGY Power
[10/6/2021, 6:00:12 PM] [Tasmota] Creating service: Waschmaschine ENERGY Power sensor
[10/6/2021, 6:00:12 PM] [homebridge-tasmota] This plugin generated a warning from the characteristic 'Current Consumption': Characteristic not in required or optional characteristic section for service Switch. Adding anyway.. See https://git.io/JtMGR for more info.
2021-10-06T16:00:12.141Z Tasmota:Service fakegatoService exists Waschmaschine ENERGY Power
[10/6/2021, 6:00:12 PM] [Tasmota] Creating statusUpdate listener for tele/maschine/SENSOR Waschmaschine ENERGY Power
2021-10-06T16:00:12.142Z Tasmota:platform discoveryDevices - this.api.updatePlatformAccessories
2021-10-06T16:00:12.145Z Tasmota:platform Discovered -> homeassistant/sensor/1C52D8_ENERGY_ApparentPower/config Waschmaschine ENERGY ApparentPower {
  name: 'Waschmaschine ENERGY ApparentPower',
  stat_t: 'tele/maschine/SENSOR',
  avty_t: 'tele/maschine/LWT',
  pl_avail: 'Online',
  pl_not_avail: 'Offline',
  uniq_id: '1C52D8_ENERGY_ApparentPower',
  dev: { ids: [ '1C52D8' ] },
  unit_of_meas: 'VA',
  dev_cla: 'power',
  frc_upd: true,
  val_tpl: "{{value_json['ENERGY']['ApparentPower']}}",
  tasmotaType: 'sensor',
  pl_on: 'ON',
  pl_off: 'OFF'
}
[10/6/2021, 6:00:12 PM] [Tasmota] Found existing accessory: Waschmaschine ENERGY ApparentPower
[10/6/2021, 6:00:12 PM] [Tasmota] Creating service: Waschmaschine ENERGY ApparentPower sensor
[10/6/2021, 6:00:12 PM] [Tasmota] Warning: Unhandled Tasmota power sensor type _energy_apparentpower
2021-10-06T16:00:12.147Z Tasmota:Service fakegatoService exists Waschmaschine ENERGY ApparentPower
2021-10-06T16:00:12.147Z Tasmota:platform discoveryDevices - this.api.updatePlatformAccessories
2021-10-06T16:00:12.150Z Tasmota:platform Discovered -> homeassistant/sensor/1C52D8_ENERGY_ReactivePower/config Waschmaschine ENERGY ReactivePower {
  name: 'Waschmaschine ENERGY ReactivePower',
  stat_t: 'tele/maschine/SENSOR',
  avty_t: 'tele/maschine/LWT',
  pl_avail: 'Online',
  pl_not_avail: 'Offline',
  uniq_id: '1C52D8_ENERGY_ReactivePower',
  dev: { ids: [ '1C52D8' ] },
  unit_of_meas: 'VAr',
  dev_cla: 'power',
  frc_upd: true,
  val_tpl: "{{value_json['ENERGY']['ReactivePower']}}",
  tasmotaType: 'sensor',
  pl_on: 'ON',
  pl_off: 'OFF'
}
[10/6/2021, 6:00:12 PM] [Tasmota] Found existing accessory: Waschmaschine ENERGY ReactivePower
[10/6/2021, 6:00:12 PM] [Tasmota] Creating service: Waschmaschine ENERGY ReactivePower sensor
[10/6/2021, 6:00:12 PM] [Tasmota] Warning: Unhandled Tasmota power sensor type _energy_reactivepower
2021-10-06T16:00:12.155Z Tasmota:Service fakegatoService exists Waschmaschine ENERGY ReactivePower
2021-10-06T16:00:12.155Z Tasmota:platform discoveryDevices - this.api.updatePlatformAccessories
2021-10-06T16:00:12.158Z Tasmota:platform Discovered -> homeassistant/sensor/1C52D8_ENERGY_Factor/config Waschmaschine ENERGY Factor {
  name: 'Waschmaschine ENERGY Factor',
  stat_t: 'tele/maschine/SENSOR',
  avty_t: 'tele/maschine/LWT',
  pl_avail: 'Online',
  pl_not_avail: 'Offline',
  uniq_id: '1C52D8_ENERGY_Factor',
  dev: { ids: [ '1C52D8' ] },
  unit_of_meas: 'Cos φ',
  ic: 'mdi:alpha-f-circle-outline',
  frc_upd: true,
  val_tpl: "{{value_json['ENERGY']['Factor']}}",
  tasmotaType: 'sensor',
  pl_on: 'ON',
  pl_off: 'OFF'
}
[10/6/2021, 6:00:12 PM] [Tasmota] Found existing accessory: Waschmaschine ENERGY Factor
[10/6/2021, 6:00:12 PM] [Tasmota] Creating service: Waschmaschine ENERGY Factor sensor
[10/6/2021, 6:00:12 PM] [Tasmota] Setting accessory information Waschmaschine ENERGY Factor
2021-10-06T16:00:12.160Z Tasmota:Service fakegatoService exists Waschmaschine ENERGY Factor
2021-10-06T16:00:12.160Z Tasmota:platform discoveryDevices - this.api.updatePlatformAccessories
2021-10-06T16:00:12.163Z Tasmota:platform Discovered -> homeassistant/sensor/1C52D8_ENERGY_Voltage/config Waschmaschine ENERGY Voltage {
  name: 'Waschmaschine ENERGY Voltage',
  stat_t: 'tele/maschine/SENSOR',
  avty_t: 'tele/maschine/LWT',
  pl_avail: 'Online',
  pl_not_avail: 'Offline',
  uniq_id: '1C52D8_ENERGY_Voltage',
  dev: { ids: [ '1C52D8' ] },
  unit_of_meas: 'V',
  ic: 'mdi:alpha-v-circle-outline',
  frc_upd: true,
  val_tpl: "{{value_json['ENERGY']['Voltage']}}",
  tasmotaType: 'sensor',
  pl_on: 'ON',
  pl_off: 'OFF'
}
[10/6/2021, 6:00:12 PM] [Tasmota] Found existing accessory: Waschmaschine ENERGY Voltage
[10/6/2021, 6:00:12 PM] [Tasmota] Creating service: Waschmaschine ENERGY Voltage sensor
[10/6/2021, 6:00:12 PM] [Tasmota] Setting accessory information Waschmaschine ENERGY Voltage
2021-10-06T16:00:12.166Z Tasmota:Service fakegatoService exists Waschmaschine ENERGY Voltage
2021-10-06T16:00:12.166Z Tasmota:platform discoveryDevices - this.api.updatePlatformAccessories
2021-10-06T16:00:12.169Z Tasmota:platform Discovered -> homeassistant/sensor/1C52D8_ENERGY_Current/config Waschmaschine ENERGY Current {
  name: 'Waschmaschine ENERGY Current',
  stat_t: 'tele/maschine/SENSOR',
  avty_t: 'tele/maschine/LWT',
  pl_avail: 'Online',
  pl_not_avail: 'Offline',
  uniq_id: '1C52D8_ENERGY_Current',
  dev: { ids: [ '1C52D8' ] },
  unit_of_meas: 'A',
  ic: 'mdi:alpha-a-circle-outline',
  frc_upd: true,
  val_tpl: "{{value_json['ENERGY']['Current']}}",
  tasmotaType: 'sensor',
  pl_on: 'ON',
  pl_off: 'OFF'
}
[10/6/2021, 6:00:12 PM] [Tasmota] Found existing accessory: Waschmaschine ENERGY Current
[10/6/2021, 6:00:12 PM] [Tasmota] Creating service: Waschmaschine ENERGY Current sensor
[10/6/2021, 6:00:12 PM] [Tasmota] Setting accessory information Waschmaschine ENERGY Current
2021-10-06T16:00:12.171Z Tasmota:Service fakegatoService exists Waschmaschine ENERGY Current
2021-10-06T16:00:12.172Z Tasmota:platform discoveryDevices - this.api.updatePlatformAccessories
2021-10-06T16:00:12.177Z Tasmota:platform Discovered -> homeassistant/switch/1C52D8_RL_1/config Tasmota {
  name: 'Tasmota',
  stat_t: 'tele/maschine/STATE',
  avty_t: 'tele/maschine/LWT',
  pl_avail: 'Online',
  pl_not_avail: 'Offline',
  cmd_t: 'cmnd/maschine/POWER',
  val_tpl: '{{value_json.POWER}}',
  pl_off: 'OFF',
  pl_on: 'ON',
  uniq_id: '1C52D8_RL_1',
  dev: { ids: [ '1C52D8' ] },
  tasmotaType: 'switch'
}
[10/6/2021, 6:00:12 PM] [Tasmota] Found existing accessory: Tasmota
[10/6/2021, 6:00:12 PM] [Tasmota] Creating service: Tasmota switch
2021-10-06T16:00:12.182Z Tasmota:Service fakegatoService exists Tasmota
[10/6/2021, 6:00:12 PM] [Tasmota] Creating statusUpdate listener for tele/maschine/STATE Tasmota
2021-10-06T16:00:12.186Z Tasmota:platform discoveryDevices - this.api.updatePlatformAccessories
[10/6/2021, 6:00:12 PM] [homebridge-tasmota] This plugin generated a warning from the characteristic 'Configured Name': Characteristic not in required or optional characteristic section for service Switch. Adding anyway.. See https://git.io/JtMGR for more info.
2021-10-06T16:00:12.204Z Tasmota:platform Discovered -> homeassistant/sensor/1C52D8_status/config Waschmaschine status {
  name: 'Waschmaschine status',
  stat_t: 'tele/maschine/HASS_STATE',
  avty_t: 'tele/maschine/LWT',
  pl_avail: 'Online',
  pl_not_avail: 'Offline',
  json_attr_t: 'tele/maschine/HASS_STATE',
  unit_of_meas: '%',
  val_tpl: "{{value_json['RSSI']}}",
  ic: 'mdi:information-outline',
  uniq_id: '1C52D8_status',
  dev: {
    ids: [ '1C52D8' ],
    name: 'Waschmaschine',
    mdl: 'Gosund SP1 v23',
    sw: '9.4.0(tasmota)',
    mf: 'Tasmota'
  },
  tasmotaType: 'sensor',
  pl_on: 'ON',
  pl_off: 'OFF'
}
[10/6/2021, 6:00:12 PM] [Tasmota] Found existing accessory: Waschmaschine status
[10/6/2021, 6:00:12 PM] [Tasmota] Creating service: Waschmaschine status sensor
[10/6/2021, 6:00:12 PM] [Tasmota] Setting accessory information Waschmaschine status
2021-10-06T16:00:12.207Z HAP-NodeJS:Accessory [Waschmaschine ENERGY TotalStartTime] Muting event notification for Name as ids aren't yet assigned!
2021-10-06T16:00:12.207Z HAP-NodeJS:Accessory [Waschmaschine ENERGY TotalStartTime] Muting event notification for Manufacturer as ids aren't yet assigned!
2021-10-06T16:00:12.208Z HAP-NodeJS:Accessory [Waschmaschine ENERGY TotalStartTime] Muting event notification for Model as ids aren't yet assigned!
2021-10-06T16:00:12.208Z HAP-NodeJS:Accessory [Waschmaschine ENERGY TotalStartTime] Muting event notification for Firmware Revision as ids aren't yet assigned!
2021-10-06T16:00:12.208Z HAP-NodeJS:Accessory [Waschmaschine ENERGY TotalStartTime] Muting event notification for Serial Number as ids aren't yet assigned!
2021-10-06T16:00:12.208Z Tasmota:Service fakegatoService exists Waschmaschine status
2021-10-06T16:00:12.209Z Tasmota:platform discoveryDevices - this.api.updatePlatformAccessories
2021-10-06T16:00:12.265Z Tasmota:mqtt emit tele/maschine/LWT Online
[10/6/2021, 6:00:12 PM] [Tasmota] Marking accessory 'Waschmaschine ENERGY Total' to Online
2021-10-06T16:00:12.266Z HAP-NodeJS:Accessory [Waschmaschine ENERGY TotalStartTime] Muting event notification for Total Consumption as ids aren't yet assigned!
[10/6/2021, 6:00:12 PM] [Tasmota] Marking accessory 'Waschmaschine ENERGY Total' to Online
2021-10-06T16:00:12.267Z HAP-NodeJS:Accessory [Waschmaschine ENERGY TotalStartTime] Muting event notification for Current Consumption as ids aren't yet assigned!
[10/6/2021, 6:00:12 PM] [Tasmota] Marking accessory 'Tasmota' to Online
2021-10-06T16:00:12.267Z HAP-NodeJS:Accessory [Waschmaschine ENERGY TotalStartTime] Muting event notification for On as ids aren't yet assigned!
NorthernMan54 commented 2 years ago

Thanks for this

The line to look for is this 'tasmotaType', as it indicates what type of device is created

And I only see a single switch, which indicates that something wacky likely occurred during initial setup. I was expecting to see a second switch

Have you tried removing and adding the device again in HomeKit ie 'setoption19 0' then wait for a minute 'setoption19 1' ?

TheChatty commented 2 years ago

I stripped my configuration down to be just:

I did SetOption19 1 --> two devices appear I did SetOption19 0 & waited --> both devices disappear I did SetOption19 1 --> two devices appear

This happened (probably essentially the same):

2021-10-11T20:34:24.943Z Tasmota:platform Discovered -> homeassistant/sensor/1C52D8_ENERGY_TotalStartTime/config Waschmaschine ENERGY TotalStartTime {
  name: 'Waschmaschine ENERGY TotalStartTime',
  stat_t: 'tele/maschine/SENSOR',
  avty_t: 'tele/maschine/LWT',
  pl_avail: 'Online',
  pl_not_avail: 'Offline',
  uniq_id: '1C52D8_ENERGY_TotalStartTime',
  dev: { ids: [ '1C52D8' ] },
  unit_of_meas: ' ',
  ic: 'mdi:progress-clock',
  frc_upd: true,
  val_tpl: "{{value_json['ENERGY']['TotalStartTime']}}",
  tasmotaType: 'sensor',
  pl_on: 'ON',
  pl_off: 'OFF'
}
[10/11/2021, 10:34:24 PM] [Tasmota] Adding new accessory: Waschmaschine ENERGY TotalStartTime
2021-10-11T20:34:24.948Z Tasmota:Service fakegatoService exists Waschmaschine ENERGY TotalStartTime
2021-10-11T20:34:24.948Z Tasmota:platform discovery devices - this.api.registerPlatformAccessories
2021-10-11T20:34:24.951Z Tasmota:platform Discovered -> homeassistant/sensor/1C52D8_ENERGY_Total/config Waschmaschine ENERGY Total {
  name: 'Waschmaschine ENERGY Total',
  stat_t: 'tele/maschine/SENSOR',
  avty_t: 'tele/maschine/LWT',
  pl_avail: 'Online',
  pl_not_avail: 'Offline',
  uniq_id: '1C52D8_ENERGY_Total',
  dev: { ids: [ '1C52D8' ] },
  unit_of_meas: 'kWh',
  dev_cla: 'power',
  frc_upd: true,
  val_tpl: "{{value_json['ENERGY']['Total']}}",
  tasmotaType: 'sensor',
  pl_on: 'ON',
  pl_off: 'OFF'
}
[10/11/2021, 10:34:24 PM] [Tasmota] Found existing accessory: Waschmaschine ENERGY Total
[10/11/2021, 10:34:24 PM] [Tasmota] Creating service: Waschmaschine ENERGY Total sensor
[10/11/2021, 10:34:24 PM] [homebridge-tasmota] This plugin generated a warning from the characteristic 'Total Consumption': Characteristic not in required or optional characteristic section for service Switch. Adding anyway.. See https://git.io/JtMGR for more info.
2021-10-11T20:34:24.955Z Tasmota:Service fakegatoService exists Waschmaschine ENERGY Total
2021-10-11T20:34:24.955Z Tasmota:platform discoveryDevices - this.api.updatePlatformAccessories
[10/11/2021, 10:34:24 PM] [homebridge-tasmota] This plugin generated a warning from the characteristic 'Configured Name': Characteristic not in required or optional characteristic section for service Switch. Adding anyway.. See https://git.io/JtMGR for more info.
2021-10-11T20:34:24.989Z Tasmota:platform Discovered -> homeassistant/sensor/1C52D8_ENERGY_Yesterday/config Waschmaschine ENERGY Yesterday {
  name: 'Waschmaschine ENERGY Yesterday',
  stat_t: 'tele/maschine/SENSOR',
  avty_t: 'tele/maschine/LWT',
  pl_avail: 'Online',
  pl_not_avail: 'Offline',
  uniq_id: '1C52D8_ENERGY_Yesterday',
  dev: { ids: [ '1C52D8' ] },
  unit_of_meas: 'kWh',
  dev_cla: 'power',
  frc_upd: true,
  val_tpl: "{{value_json['ENERGY']['Yesterday']}}",
  tasmotaType: 'sensor',
  pl_on: 'ON',
  pl_off: 'OFF'
}
[10/11/2021, 10:34:24 PM] [Tasmota] Found existing accessory: Waschmaschine ENERGY Yesterday
[10/11/2021, 10:34:24 PM] [Tasmota] Creating service: Waschmaschine ENERGY Yesterday sensor
[10/11/2021, 10:34:24 PM] [Tasmota] Warning: Unhandled Tasmota power sensor type _energy_yesterday
2021-10-11T20:34:24.991Z Tasmota:Service fakegatoService exists Waschmaschine ENERGY Yesterday
2021-10-11T20:34:24.991Z Tasmota:platform discoveryDevices - this.api.updatePlatformAccessories
2021-10-11T20:34:24.994Z Tasmota:platform Discovered -> homeassistant/sensor/1C52D8_ENERGY_Today/config Waschmaschine ENERGY Today {
  name: 'Waschmaschine ENERGY Today',
  stat_t: 'tele/maschine/SENSOR',
  avty_t: 'tele/maschine/LWT',
  pl_avail: 'Online',
  pl_not_avail: 'Offline',
  uniq_id: '1C52D8_ENERGY_Today',
  dev: { ids: [ '1C52D8' ] },
  unit_of_meas: 'kWh',
  dev_cla: 'power',
  frc_upd: true,
  val_tpl: "{{value_json['ENERGY']['Today']}}",
  tasmotaType: 'sensor',
  pl_on: 'ON',
  pl_off: 'OFF'
}
[10/11/2021, 10:34:24 PM] [Tasmota] Found existing accessory: Waschmaschine ENERGY Today
[10/11/2021, 10:34:24 PM] [Tasmota] Creating service: Waschmaschine ENERGY Today sensor
[10/11/2021, 10:34:24 PM] [Tasmota] Warning: Unhandled Tasmota power sensor type _energy_today
2021-10-11T20:34:24.996Z Tasmota:Service fakegatoService exists Waschmaschine ENERGY Today
2021-10-11T20:34:24.997Z Tasmota:platform discoveryDevices - this.api.updatePlatformAccessories
2021-10-11T20:34:24.998Z Tasmota:platform Discovered -> homeassistant/sensor/1C52D8_ENERGY_Power/config Waschmaschine ENERGY Power {
  name: 'Waschmaschine ENERGY Power',
  stat_t: 'tele/maschine/SENSOR',
  avty_t: 'tele/maschine/LWT',
  pl_avail: 'Online',
  pl_not_avail: 'Offline',
  uniq_id: '1C52D8_ENERGY_Power',
  dev: { ids: [ '1C52D8' ] },
  unit_of_meas: 'W',
  dev_cla: 'power',
  frc_upd: true,
  val_tpl: "{{value_json['ENERGY']['Power']}}",
  tasmotaType: 'sensor',
  pl_on: 'ON',
  pl_off: 'OFF'
}
[10/11/2021, 10:34:24 PM] [Tasmota] Found existing accessory: Waschmaschine ENERGY Power
[10/11/2021, 10:34:24 PM] [Tasmota] Creating service: Waschmaschine ENERGY Power sensor
[10/11/2021, 10:34:25 PM] [homebridge-tasmota] This plugin generated a warning from the characteristic 'Current Consumption': Characteristic not in required or optional characteristic section for service Switch. Adding anyway.. See https://git.io/JtMGR for more info.
2021-10-11T20:34:25.001Z Tasmota:Service fakegatoService exists Waschmaschine ENERGY Power
2021-10-11T20:34:25.001Z Tasmota:platform discoveryDevices - this.api.updatePlatformAccessories
2021-10-11T20:34:25.003Z Tasmota:platform Discovered -> homeassistant/sensor/1C52D8_ENERGY_ApparentPower/config Waschmaschine ENERGY ApparentPower {
  name: 'Waschmaschine ENERGY ApparentPower',
  stat_t: 'tele/maschine/SENSOR',
  avty_t: 'tele/maschine/LWT',
  pl_avail: 'Online',
  pl_not_avail: 'Offline',
  uniq_id: '1C52D8_ENERGY_ApparentPower',
  dev: { ids: [ '1C52D8' ] },
  unit_of_meas: 'VA',
  dev_cla: 'power',
  frc_upd: true,
  val_tpl: "{{value_json['ENERGY']['ApparentPower']}}",
  tasmotaType: 'sensor',
  pl_on: 'ON',
  pl_off: 'OFF'
}
[10/11/2021, 10:34:25 PM] [Tasmota] Found existing accessory: Waschmaschine ENERGY ApparentPower
[10/11/2021, 10:34:25 PM] [Tasmota] Creating service: Waschmaschine ENERGY ApparentPower sensor
[10/11/2021, 10:34:25 PM] [Tasmota] Warning: Unhandled Tasmota power sensor type _energy_apparentpower
2021-10-11T20:34:25.005Z Tasmota:Service fakegatoService exists Waschmaschine ENERGY ApparentPower
2021-10-11T20:34:25.006Z Tasmota:platform discoveryDevices - this.api.updatePlatformAccessories
2021-10-11T20:34:25.007Z Tasmota:platform Discovered -> homeassistant/sensor/1C52D8_ENERGY_ReactivePower/config Waschmaschine ENERGY ReactivePower {
  name: 'Waschmaschine ENERGY ReactivePower',
  stat_t: 'tele/maschine/SENSOR',
  avty_t: 'tele/maschine/LWT',
  pl_avail: 'Online',
  pl_not_avail: 'Offline',
  uniq_id: '1C52D8_ENERGY_ReactivePower',
  dev: { ids: [ '1C52D8' ] },
  unit_of_meas: 'VAr',
  dev_cla: 'power',
  frc_upd: true,
  val_tpl: "{{value_json['ENERGY']['ReactivePower']}}",
  tasmotaType: 'sensor',
  pl_on: 'ON',
  pl_off: 'OFF'
}
[10/11/2021, 10:34:25 PM] [Tasmota] Found existing accessory: Waschmaschine ENERGY ReactivePower
[10/11/2021, 10:34:25 PM] [Tasmota] Creating service: Waschmaschine ENERGY ReactivePower sensor
[10/11/2021, 10:34:25 PM] [Tasmota] Warning: Unhandled Tasmota power sensor type _energy_reactivepower
2021-10-11T20:34:25.010Z Tasmota:Service fakegatoService exists Waschmaschine ENERGY ReactivePower
2021-10-11T20:34:25.010Z Tasmota:platform discoveryDevices - this.api.updatePlatformAccessories
2021-10-11T20:34:25.011Z Tasmota:platform Discovered -> homeassistant/sensor/1C52D8_ENERGY_Factor/config Waschmaschine ENERGY Factor {
  name: 'Waschmaschine ENERGY Factor',
  stat_t: 'tele/maschine/SENSOR',
  avty_t: 'tele/maschine/LWT',
  pl_avail: 'Online',
  pl_not_avail: 'Offline',
  uniq_id: '1C52D8_ENERGY_Factor',
  dev: { ids: [ '1C52D8' ] },
  unit_of_meas: 'Cos φ',
  ic: 'mdi:alpha-f-circle-outline',
  frc_upd: true,
  val_tpl: "{{value_json['ENERGY']['Factor']}}",
  tasmotaType: 'sensor',
  pl_on: 'ON',
  pl_off: 'OFF'
}
[10/11/2021, 10:34:25 PM] [Tasmota] Found existing accessory: Waschmaschine ENERGY Factor
[10/11/2021, 10:34:25 PM] [Tasmota] Creating service: Waschmaschine ENERGY Factor sensor
2021-10-11T20:34:25.014Z Tasmota:Service fakegatoService exists Waschmaschine ENERGY Factor
2021-10-11T20:34:25.014Z Tasmota:platform discoveryDevices - this.api.updatePlatformAccessories
2021-10-11T20:34:25.018Z Tasmota:platform Discovered -> homeassistant/sensor/1C52D8_ENERGY_Voltage/config Waschmaschine ENERGY Voltage {
  name: 'Waschmaschine ENERGY Voltage',
  stat_t: 'tele/maschine/SENSOR',
  avty_t: 'tele/maschine/LWT',
  pl_avail: 'Online',
  pl_not_avail: 'Offline',
  uniq_id: '1C52D8_ENERGY_Voltage',
  dev: { ids: [ '1C52D8' ] },
  unit_of_meas: 'V',
  ic: 'mdi:alpha-v-circle-outline',
  frc_upd: true,
  val_tpl: "{{value_json['ENERGY']['Voltage']}}",
  tasmotaType: 'sensor',
  pl_on: 'ON',
  pl_off: 'OFF'
}
[10/11/2021, 10:34:25 PM] [Tasmota] Found existing accessory: Waschmaschine ENERGY Voltage
[10/11/2021, 10:34:25 PM] [Tasmota] Creating service: Waschmaschine ENERGY Voltage sensor
2021-10-11T20:34:25.020Z Tasmota:Service fakegatoService exists Waschmaschine ENERGY Voltage
2021-10-11T20:34:25.021Z Tasmota:platform discoveryDevices - this.api.updatePlatformAccessories
2021-10-11T20:34:25.029Z Tasmota:platform Discovered -> homeassistant/sensor/1C52D8_ENERGY_Current/config Waschmaschine ENERGY Current {
  name: 'Waschmaschine ENERGY Current',
  stat_t: 'tele/maschine/SENSOR',
  avty_t: 'tele/maschine/LWT',
  pl_avail: 'Online',
  pl_not_avail: 'Offline',
  uniq_id: '1C52D8_ENERGY_Current',
  dev: { ids: [ '1C52D8' ] },
  unit_of_meas: 'A',
  ic: 'mdi:alpha-a-circle-outline',
  frc_upd: true,
  val_tpl: "{{value_json['ENERGY']['Current']}}",
  tasmotaType: 'sensor',
  pl_on: 'ON',
  pl_off: 'OFF'
}
[10/11/2021, 10:34:25 PM] [Tasmota] Found existing accessory: Waschmaschine ENERGY Current
[10/11/2021, 10:34:25 PM] [Tasmota] Creating service: Waschmaschine ENERGY Current sensor
2021-10-11T20:34:25.032Z Tasmota:Service fakegatoService exists Waschmaschine ENERGY Current
2021-10-11T20:34:25.032Z Tasmota:platform discoveryDevices - this.api.updatePlatformAccessories
2021-10-11T20:34:25.036Z Tasmota:platform Discovered -> homeassistant/switch/1C52D8_RL_1/config Tasmota {
  name: 'Tasmota',
  stat_t: 'tele/maschine/STATE',
  avty_t: 'tele/maschine/LWT',
  pl_avail: 'Online',
  pl_not_avail: 'Offline',
  cmd_t: 'cmnd/maschine/POWER',
  val_tpl: '{{value_json.POWER}}',
  pl_off: 'OFF',
  pl_on: 'ON',
  uniq_id: '1C52D8_RL_1',
  dev: { ids: [ '1C52D8' ] },
  tasmotaType: 'switch'
}
[10/11/2021, 10:34:25 PM] [Tasmota] Found existing accessory: Tasmota
[10/11/2021, 10:34:25 PM] [Tasmota] Creating service: Tasmota switch
2021-10-11T20:34:25.040Z Tasmota:Service fakegatoService exists Tasmota
2021-10-11T20:34:25.041Z Tasmota:platform discoveryDevices - this.api.updatePlatformAccessories
[10/11/2021, 10:34:25 PM] [homebridge-tasmota] This plugin generated a warning from the characteristic 'Configured Name': Characteristic not in required or optional characteristic section for service Switch. Adding anyway.. See https://git.io/JtMGR for more info.
2021-10-11T20:34:25.124Z Tasmota:platform Discovered -> homeassistant/sensor/1C52D8_status/config Waschmaschine status {
  name: 'Waschmaschine status',
  stat_t: 'tele/maschine/HASS_STATE',
  avty_t: 'tele/maschine/LWT',
  pl_avail: 'Online',
  pl_not_avail: 'Offline',
  json_attr_t: 'tele/maschine/HASS_STATE',
  unit_of_meas: '%',
  val_tpl: "{{value_json['RSSI']}}",
  ic: 'mdi:information-outline',
  uniq_id: '1C52D8_status',
  dev: {
    ids: [ '1C52D8' ],
    name: 'Waschmaschine',
    mdl: 'Gosund SP1 v23',
    sw: '9.4.0(tasmota)',
    mf: 'Tasmota'
  },
  tasmotaType: 'sensor',
  pl_on: 'ON',
  pl_off: 'OFF'
}
2021-10-11T20:34:25.127Z Tasmota:Service fakegatoService exists Waschmaschine status
2021-10-11T20:34:25.127Z Tasmota:platform discoveryDevices - this.api.updatePlatformAccessories
[10/11/2021, 10:34:25 PM] [Tasmota] Found existing accessory: Waschmaschine status
[10/11/2021, 10:34:25 PM] [Tasmota] Creating service: Waschmaschine status sensor

I just also tested with mosquitto instead of Aedes - to no avail. Still recognized as two switches with the useful one named "Tasmota" instead of "Wäschetrockner". image

Dannypeja commented 2 years ago

I am having the exact same issue and got frustrated since I couldn't remove it. I tried filtering it out with deny filters at "homeassistant/sensor/#". But that did not have any effect. I would be very happy for a solution since it is always one more tap in the Home App before i can actually switch something. Cheers :)

washcroft commented 2 years ago

I had the same issue with a Shelly 1PM, I fixed it by fully removing the cached accessory via Homebridge UI - then when Homebridge was restarted, the Tasmota plugin rediscovered the device and set it up correctly with just one power switch.

Dannypeja commented 2 years ago

Thanks for the hint! I will try it out! It needed to block the /homeassistant/sensor/# branch in order to work or will it work without the blocklist?

washcroft commented 2 years ago

Shouldn't need to block anything

Dannypeja commented 2 years ago

okay I can confirm that flushing the cached accessories did not solve the issue. I even flushed the docker container an it's persistant volumes and that did not help.

here is the log that is adding the devices:

[11/26/2021, 2:15:24 PM] [Tasmota] Found existing accessory: Socket4-DP-PC ENERGY TotalStartTime
[11/26/2021, 2:15:24 PM] [Tasmota] Creating service: Socket4-DP-PC ENERGY TotalStartTime sensor
[11/26/2021, 2:15:24 PM] [Tasmota] Warning: missing dev_cla Socket4-DP-PC ENERGY TotalStartTime
[11/26/2021, 2:15:24 PM] [Tasmota] Found existing accessory: Socket4-DP-PC ENERGY Total
[11/26/2021, 2:15:24 PM] [Tasmota] Creating service: Socket4-DP-PC ENERGY Total sensor
[11/26/2021, 2:15:24 PM] [Tasmota] Found existing accessory: Socket4-DP-PC ENERGY Yesterday
[11/26/2021, 2:15:24 PM] [Tasmota] Creating service: Socket4-DP-PC ENERGY Yesterday sensor
[11/26/2021, 2:15:24 PM] [Tasmota] Warning: Unhandled Tasmota power sensor type _energy_yesterday
[11/26/2021, 2:15:24 PM] [Tasmota] Found existing accessory: Socket4-DP-PC ENERGY Today
[11/26/2021, 2:15:24 PM] [Tasmota] Creating service: Socket4-DP-PC ENERGY Today sensor
[11/26/2021, 2:15:24 PM] [Tasmota] Warning: Unhandled Tasmota power sensor type _energy_today
[11/26/2021, 2:15:24 PM] [Tasmota] Found existing accessory: Socket4-DP-PC ENERGY Power
[11/26/2021, 2:15:24 PM] [Tasmota] Creating service: Socket4-DP-PC ENERGY Power sensor
[11/26/2021, 2:15:24 PM] [Tasmota] Found existing accessory: Socket4-DP-PC ENERGY ApparentPower
[11/26/2021, 2:15:24 PM] [Tasmota] Creating service: Socket4-DP-PC ENERGY ApparentPower sensor
[11/26/2021, 2:15:24 PM] [Tasmota] Warning: Unhandled Tasmota power sensor type _energy_apparentpower
[11/26/2021, 2:15:25 PM] [Tasmota] Found existing accessory: Socket4-DP-PC ENERGY ReactivePower
[11/26/2021, 2:15:25 PM] [Tasmota] Creating service: Socket4-DP-PC ENERGY ReactivePower sensor
[11/26/2021, 2:15:25 PM] [Tasmota] Warning: Unhandled Tasmota power sensor type _energy_reactivepower
[11/26/2021, 2:15:25 PM] [Tasmota] Found existing accessory: Socket4-DP-PC ENERGY Factor
[11/26/2021, 2:15:25 PM] [Tasmota] Creating service: Socket4-DP-PC ENERGY Factor sensor
[11/26/2021, 2:15:25 PM] [Tasmota] Warning: missing dev_cla Socket4-DP-PC ENERGY Factor
[11/26/2021, 2:15:25 PM] [Tasmota] Found existing accessory: Socket4-DP-PC ENERGY Voltage
[11/26/2021, 2:15:25 PM] [Tasmota] Creating service: Socket4-DP-PC ENERGY Voltage sensor
[11/26/2021, 2:15:25 PM] [Tasmota] Warning: missing dev_cla Socket4-DP-PC ENERGY Voltage
[11/26/2021, 2:15:25 PM] [Tasmota] Found existing accessory: Socket4-DP-PC ENERGY Current
[11/26/2021, 2:15:25 PM] [Tasmota] Creating service: Socket4-DP-PC ENERGY Current sensor
[11/26/2021, 2:15:25 PM] [Tasmota] Warning: missing dev_cla Socket4-DP-PC ENERGY Current
[11/26/2021, 2:15:25 PM] [Tasmota] Found existing accessory: Socket4-DP-PC status
[11/26/2021, 2:15:25 PM] [Tasmota] Creating service: Socket4-DP-PC status sensor
[11/26/2021, 2:15:25 PM] [Tasmota] Found existing accessory: Socket2-Fernseher ENERGY TotalStartTime
[11/26/2021, 2:15:25 PM] [Tasmota] Creating service: Socket2-Fernseher ENERGY TotalStartTime sensor
[11/26/2021, 2:15:25 PM] [Tasmota] Warning: missing dev_cla Socket2-Fernseher ENERGY TotalStartTime
[11/26/2021, 2:15:25 PM] [Tasmota] Found existing accessory: Socket2-Fernseher ENERGY Total
[11/26/2021, 2:15:25 PM] [Tasmota] Creating service: Socket2-Fernseher ENERGY Total sensor
[11/26/2021, 2:15:25 PM] [Tasmota] Found existing accessory: Socket2-Fernseher ENERGY Yesterday
[11/26/2021, 2:15:25 PM] [Tasmota] Creating service: Socket2-Fernseher ENERGY Yesterday sensor
[11/26/2021, 2:15:25 PM] [Tasmota] Warning: Unhandled Tasmota power sensor type _energy_yesterday
[11/26/2021, 2:15:25 PM] [Tasmota] Found existing accessory: Socket2-Fernseher ENERGY Today
[11/26/2021, 2:15:25 PM] [Tasmota] Creating service: Socket2-Fernseher ENERGY Today sensor
[11/26/2021, 2:15:25 PM] [Tasmota] Warning: Unhandled Tasmota power sensor type _energy_today
[11/26/2021, 2:15:25 PM] [Tasmota] Found existing accessory: Socket2-Fernseher ENERGY Power
[11/26/2021, 2:15:25 PM] [Tasmota] Creating service: Socket2-Fernseher ENERGY Power sensor
[11/26/2021, 2:15:25 PM] [Tasmota] Found existing accessory: Socket2-Fernseher ENERGY ApparentPower
[11/26/2021, 2:15:25 PM] [Tasmota] Creating service: Socket2-Fernseher ENERGY ApparentPower sensor
[11/26/2021, 2:15:25 PM] [Tasmota] Warning: Unhandled Tasmota power sensor type _energy_apparentpower
[11/26/2021, 2:15:25 PM] [Tasmota] Found existing accessory: Socket2-Fernseher ENERGY ReactivePower
[11/26/2021, 2:15:25 PM] [Tasmota] Creating service: Socket2-Fernseher ENERGY ReactivePower sensor
[11/26/2021, 2:15:25 PM] [Tasmota] Warning: Unhandled Tasmota power sensor type _energy_reactivepower
[11/26/2021, 2:15:25 PM] [Tasmota] Found existing accessory: Socket2-Fernseher ENERGY Factor
[11/26/2021, 2:15:25 PM] [Tasmota] Creating service: Socket2-Fernseher ENERGY Factor sensor
[11/26/2021, 2:15:25 PM] [Tasmota] Warning: missing dev_cla Socket2-Fernseher ENERGY Factor
[11/26/2021, 2:15:25 PM] [Tasmota] Found existing accessory: Socket2-Fernseher ENERGY Voltage
[11/26/2021, 2:15:25 PM] [Tasmota] Creating service: Socket2-Fernseher ENERGY Voltage sensor
[11/26/2021, 2:15:25 PM] [Tasmota] Warning: missing dev_cla Socket2-Fernseher ENERGY Voltage
[11/26/2021, 2:15:25 PM] [Tasmota] Found existing accessory: Socket2-Fernseher ENERGY Current
[11/26/2021, 2:15:25 PM] [Tasmota] Creating service: Socket2-Fernseher ENERGY Current sensor
[11/26/2021, 2:15:25 PM] [Tasmota] Warning: missing dev_cla Socket2-Fernseher ENERGY Current
[11/26/2021, 2:15:25 PM] [Tasmota] Found existing accessory: Socket2-Fernseher status
[11/26/2021, 2:15:25 PM] [Tasmota] Creating service: Socket2-Fernseher status sensor
[11/26/2021, 2:15:25 PM] [Tasmota] Found existing accessory: Socket4-DP-PC
[11/26/2021, 2:15:25 PM] [Tasmota] Creating service: Socket4-DP-PC switch
[11/26/2021, 2:15:25 PM] [Tasmota] Found existing accessory: Socket2-Fernseher
[11/26/2021, 2:15:25 PM] [Tasmota] Creating service: Socket2-Fernseher switch
[11/26/2021, 2:15:25 PM] [Tasmota] Marking accessory 'Socket4-DP-PC ENERGY Total' to Online
[11/26/2021, 2:15:25 PM] [Tasmota] Marking accessory 'Socket4-DP-PC ENERGY Total' to Online
[11/26/2021, 2:15:25 PM] [Tasmota] Marking accessory 'Socket4-DP-PC' to Online
[11/26/2021, 2:15:25 PM] [Tasmota] Marking accessory 'Socket2-Fernseher ENERGY Total' to Online
[11/26/2021, 2:15:25 PM] [Tasmota] Marking accessory 'Socket2-Fernseher ENERGY Total' to Online
[11/26/2021, 2:15:25 PM] [Tasmota] Marking accessory 'Socket2-Fernseher' to Online
washcroft commented 2 years ago

okay I can confirm that flushing the cached accessories did not solve the issue. I even flushed the docker container an it's persistant volumes and that did not help

Are you sure, and the device disappeared from Home app? According to your log, it only tried to create two switches, one on two separate devices?

[11/26/2021, 2:15:25 PM] [Tasmota] Found existing accessory: Socket4-DP-PC
[11/26/2021, 2:15:25 PM] [Tasmota] Creating service: Socket4-DP-PC switch
[11/26/2021, 2:15:25 PM] [Tasmota] Found existing accessory: Socket2-Fernseher
[11/26/2021, 2:15:25 PM] [Tasmota] Creating service: Socket2-Fernseher switch
Dannypeja commented 2 years ago

What do you mean? It also finds all the sensor and adds them. This creates a switch device with two switches within it. This the energy Sensor as a switch does not make sense. [11/26/2021, 2:15:25 PM] [Tasmota] Marking accessory 'Socket4-DP-PC ENERGY Total' to Online [11/26/2021, 2:15:25 PM] [Tasmota] Marking accessory 'Socket4-DP-PC ENERGY Total' to Online [11/26/2021, 2:15:25 PM] [Tasmota] Marking accessory 'Socket4-DP-PC' to Online [11/26/2021, 2:15:25 PM] [Tasmota] Marking accessory 'Socket2-Fernseher ENERGY Total' to Online [11/26/2021, 2:15:25 PM] [Tasmota] Marking accessory 'Socket2-Fernseher ENERGY Total' to Online [11/26/2021, 2:15:25 PM] [Tasmota] Marking accessory 'Socket2-Fernseher' to Online

washcroft commented 2 years ago

What do you mean? It also finds all the sensor and adds them.

The main lines are those which say "Creating service:" - these tell you what is being created in HomeKit based on what is being discovered. It's creating two "switches" (amongst other sensors), one on Socket4-DP-PC and one on Socket2-Fernseher.

Is one of these two switches incorrect? Otherwise, if you have other switches in HomeKit, these are still cached accessories, since they aren't being created now.

Dannypeja commented 2 years ago

All lines

"Creating service... ENERGY ..... sensor"  

are wrong. I have only 2 switches on the network and they are being recognized. But along them they get added as energy sensors. The switches are fine, but the switches as energy sensors is wrong. Plus the energy sensors (which are the switches) get displayed as a switch. They are not showing any sensor data. Just taking up space in the app and doing nothing. I cannot manually delete those.

temp commented 2 years ago

Same problem here, also Gosund.

image

All devices are shown twice, I think the plugin incorrectly adds the switch-sensors as another switch?

Here is my log, only the lines with the faulty device:

[1/19/2022, 7:04:00 PM] [Tasmota] Adding new accessory: Schlafzimmer ENERGY TotalStartTime
[1/19/2022, 7:04:00 PM] [Tasmota] Warning: missing dev_cla Schlafzimmer ENERGY TotalStartTime
[1/19/2022, 7:04:00 PM] [Tasmota] Warning: incomplete HASS Discovery message and device definition homeassistant/sensor/643F67_ENERGY_TotalStartTime/config Schlafzimmer ENERGY TotalStartTime
[1/19/2022, 7:04:00 PM] [Tasmota] Adding new accessory: Schlafzimmer ENERGY Total
[1/19/2022, 7:04:00 PM] [Tasmota] Warning: Unhandled Tasmota sensor type energy
[1/19/2022, 7:04:00 PM] [Tasmota] Warning: incomplete HASS Discovery message and device definition homeassistant/sensor/643F67_ENERGY_Total/config Schlafzimmer ENERGY Total
[1/19/2022, 7:04:00 PM] [Tasmota] Adding new accessory: Schlafzimmer ENERGY Yesterday
[1/19/2022, 7:04:00 PM] [Tasmota] Warning: Unhandled Tasmota sensor type energy
[1/19/2022, 7:04:00 PM] [Tasmota] Warning: incomplete HASS Discovery message and device definition homeassistant/sensor/643F67_ENERGY_Yesterday/config Schlafzimmer ENERGY Yesterday
[1/19/2022, 7:04:00 PM] [Tasmota] Adding new accessory: Schlafzimmer ENERGY Today
[1/19/2022, 7:04:00 PM] [Tasmota] Warning: Unhandled Tasmota sensor type energy
[1/19/2022, 7:04:00 PM] [Tasmota] Warning: incomplete HASS Discovery message and device definition homeassistant/sensor/643F67_ENERGY_Today/config Schlafzimmer ENERGY Today
[Schlafzimmer ENERGY Power@Schlafzimmer ENERGY Power@Current Consumption] Characteristic not in required or optional characteristic section for service . Adding anyway.
[1/19/2022, 7:04:00 PM] [Tasmota] Adding new accessory: Schlafzimmer ENERGY Power
[1/19/2022, 7:04:00 PM] [homebridge-tasmota] This plugin generated a warning from the characteristic 'Configured Name': Characteristic not in required or optional characteristic section for service . Adding anyway.. See https://git.io/JtMGR for more info.
[1/19/2022, 7:04:00 PM] [Tasmota] Found existing accessory: Schlafzimmer ENERGY ApparentPower
[1/19/2022, 7:04:00 PM] [Tasmota] Creating service: Schlafzimmer ENERGY ApparentPower sensor
[1/19/2022, 7:04:00 PM] [Tasmota] Warning: Unhandled Tasmota power sensor type _energy_apparentpower
[1/19/2022, 7:04:00 PM] [Tasmota] Found existing accessory: Schlafzimmer ENERGY ReactivePower
[1/19/2022, 7:04:00 PM] [Tasmota] Creating service: Schlafzimmer ENERGY ReactivePower sensor
[1/19/2022, 7:04:00 PM] [Tasmota] Warning: Unhandled Tasmota power sensor type _energy_reactivepower
[1/19/2022, 7:04:00 PM] [Tasmota] Found existing accessory: Schlafzimmer ENERGY Factor
[1/19/2022, 7:04:00 PM] [Tasmota] Creating service: Schlafzimmer ENERGY Factor sensor
[1/19/2022, 7:04:00 PM] [Tasmota] Warning: Unhandled Tasmota sensor type power_factor
[1/19/2022, 7:04:00 PM] [Tasmota] Found existing accessory: Schlafzimmer ENERGY Voltage
[1/19/2022, 7:04:00 PM] [Tasmota] Creating service: Schlafzimmer ENERGY Voltage sensor
[1/19/2022, 7:04:00 PM] [Tasmota] Warning: Unhandled Tasmota sensor type voltage
[1/19/2022, 7:04:00 PM] [Tasmota] Found existing accessory: Schlafzimmer ENERGY Current
[1/19/2022, 7:04:00 PM] [Tasmota] Creating service: Schlafzimmer ENERGY Current sensor
[1/19/2022, 7:04:00 PM] [Tasmota] Warning: Unhandled Tasmota sensor type current
[1/19/2022, 7:04:00 PM] [Tasmota] Found existing accessory: Schlafzimmer status
[1/19/2022, 7:04:00 PM] [Tasmota] Creating service: Schlafzimmer status sensor
[1/19/2022, 7:04:00 PM] [Tasmota] Found existing accessory: Schlafzimmer
[1/19/2022, 7:04:00 PM] [Tasmota] Creating service: Schlafzimmer switch
[1/19/2022, 7:04:00 PM] [homebridge-tasmota] This plugin generated a warning from the characteristic 'Configured Name': Characteristic not in required or optional characteristic section for service . Adding anyway.. See https://git.io/JtMGR for more info.
[1/19/2022, 7:04:00 PM] [Tasmota] Marking accessory 'Schlafzimmer ENERGY Power' to Online
[1/19/2022, 7:04:00 PM] [Tasmota] Marking accessory 'Schlafzimmer' to Online

It adds several accessories for all the sensors, but only the ENERGE Power one seems to be wrong? But nevertheless, none of the sensors are shown.

If there is something I can do to help pin this down, just let me know!