Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid event type with latest version #485

Closed
antivirus68 opened this issue Oct 7, 2023 · 4 comments
Closed

Invalid event type with latest version #485

antivirus68 opened this issue Oct 7, 2023 · 4 comments

Comments

@antivirus68
Copy link

Describe the bug

I still got "Invalid event type"
I have at least 20 shelly devices and only these ones return the warning.

Versions:

  • Home Assistant: 2023.9.3
  • Shellies Discovery: 4.5.3
  • Shelly device firmware: 1.14.0

Shellies Discovery automation:

- id: shellies_announce
  alias: 'Shellies Announce'
  trigger:
    - platform: homeassistant
      event: start
  action:
    service: mqtt.publish
    data:
      topic: shellies/command
      payload: announce

- id: 'shellies_discovery'
  alias: 'Shellies Discovery'
  mode: queued
  max: 999
  trigger:
    platform: mqtt
    topic: shellies/announce
  action:
    service: python_script.shellies_discovery
    data:
      id: '{{ trigger.payload_json.id }}'
      mac: '{{ trigger.payload_json.mac }}'
      fw_ver: '{{ trigger.payload_json.fw_ver }}'
      model: '{{ trigger.payload_json.model }}'
      mode: '{{ trigger.payload_json.mode | default }}'
      host: '{{ trigger.payload_json.ip }}'
      use_kwh: true

Debug log:

2023-10-07 21:33:36.589 WARNING (MainThread) [homeassistant.components.mqtt.event] Invalid event type  for event.luce_garage_1_button_0 received on topic shellies/shelly1pm-68C63AFAE9D2/input_event/0, payload {"event_type":""}
2023-10-07 21:33:36.591 WARNING (MainThread) [homeassistant.components.mqtt.event] Invalid event type  for event.luce_tavernetta_giardino_button_0 received on topic shellies/shelly1pm-68C63AFAED4B/input_event/0, payload {"event_type":""}
2023-10-07 21:33:36.592 WARNING (MainThread) [homeassistant.components.mqtt.event] Invalid event type  for event.luce_studio_button_0 received on topic shellies/shelly1pm-76C246/input_event/0, payload {"event_type":""}
2023-10-07 21:33:36.593 WARNING (MainThread) [homeassistant.components.mqtt.event] Invalid event type  for event.luce_casetta_button_0 received on topic shellies/shelly1pm-485519CC2E75/input_event/0, payload {"event_type":""}
2023-10-07 21:33:36.595 WARNING (MainThread) [homeassistant.components.mqtt.event] Invalid event type  for event.luce_scala_notte_button_0 received on topic shellies/shelly1pm-BA4981/input_event/0, payload {"event_type":""}
2023-10-07 21:33:36.598 WARNING (MainThread) [homeassistant.components.mqtt.event] Invalid event type  for event.luce_bagno_notte_button_0 received on topic shellies/shelly1pm-7664C8/input_event/0, payload {"event_type":""}
2023-10-07 21:33:36.598 WARNING (MainThread) [homeassistant.components.mqtt.event] Invalid event type  for event.luce_balcone_matrimoniale_button_0 received on topic shellies/shelly1pm-3C6105E56EBB/input_event/0, payload {"event_type":""}
2023-10-07 21:33:36.599 WARNING (MainThread) [homeassistant.components.mqtt.event] Invalid event type  for event.luce_lavanderia_button_0 received on topic shellies/shelly1pm-BA4CD4/input_event/0, payload {"event_type":""}
2023-10-07 21:33:36.600 WARNING (MainThread) [homeassistant.components.mqtt.event] Invalid event type  for event.luce_balcone_emma_button_0 received on topic shellies/shelly1pm-8CAAB506021C/input_event/0, payload {"event_type":""}

@antivirus68 antivirus68 added the bug Something isn't working label Oct 7, 2023
@bieniu
Copy link
Owner

bieniu commented Oct 7, 2023

Add this to your configuration.yaml file:

logger:
  default:warning
  logs:
    homeassistant.components.mqtt: info
    homeassistant.components.python_script: debug

restart HA, run an announce automation and attach here the log file.

@bieniu bieniu added needs-more-information and removed bug Something isn't working labels Oct 7, 2023
@antivirus68
Copy link
Author

Hi @bieniu,

I think I solved the problem. I updated the firmware on those devices (to 1.14) and after an HA restart I don't get the WARNING anymore.

I would like to ask you another questions if possible.
I have 4/5 shelly devices added a year ago that I dismissed and that are not connected anymore, but I don't find any way to remove them from HA.
Do you know some way for doing this?
I've already removed all shelly topics on my mqtt broker for these devices.

Thanks
Marco

@bieniu
Copy link
Owner

bieniu commented Oct 8, 2023

I updated the firmware on those devices (to 1.14) and after an HA restart I don't get the WARNING anymore.

You shouldn’t see those warnings with Shellies Discovery 4.5.3 and firmware 1.13.x. I suppose that your entity configuration comes from older Shellies Discovery. You can check that in MQTT Info section.

Do you know some way for doing this?

image

@antivirus68
Copy link
Author

Thanks @bieniu

I removed the devices.

@bieniu bieniu closed this as completed Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants