Giter VIP home page Giter VIP logo

Comments (9)

einarsi avatar einarsi commented on September 25, 2024 1

It turns out those entities came from the native Shelly integration. I must have enabled it a long time ago and had completely forgotten about it. I am now only using MQTT via Shellies Discovery. Thank you so much for your help in debugging this - much appreciated.

from ha-shellies-discovery.

bieniu avatar bieniu commented on September 25, 2024

Your trigger configuration is invalid, example of a valid configuration:

  - platform: device
    domain: mqtt
    device_id: 8b0d2dd5099fa8d8664ab14cd4a30f87
    type: button_long_press
    subtype: button_1
    discovery_id: shelly1l-xxxxxx-input-0 button_long_press

from ha-shellies-discovery.

einarsi avatar einarsi commented on September 25, 2024

Thank you, I will try that.

I think I found the problem: When I add a device trigger for the Shelly, the first five options are as follows:

  • "First button" released
  • "First button" continuously pressed
  • "First button" pressed
  • Button long clicked
  • Button single clicked

I selected the Button long clicked, which resulted in yaml like I mentioned above. But selecting "First button" continuously pressed results in the yaml you showed.

What's the reason for the "Button * clicked" options? Can you remove the options if they should not be used?

Also: I suggest to rename "First button" continuously pressed to "First button" long press

from ha-shellies-discovery.

bieniu avatar bieniu commented on September 25, 2024

I think I found the problem: When I add a device trigger for the Shelly, the first five options are as follows:

Where do you see these triggers? Only the first three are available:

obraz

Also: I suggest to rename "First button" continuously pressed to "First button" long press

These are default strings coming from HA not from Shellies Discovery.

from ha-shellies-discovery.

einarsi avatar einarsi commented on September 25, 2024

They are right there after I select to "show 11 more":

image

These are default strings coming from HA not from Shellies Discovery.

Ok, I see. I guess this wouldn't have been an issue if the "Button long clicked" trigger weren't there to cause the confusion in the first place.

from ha-shellies-discovery.

bieniu avatar bieniu commented on September 25, 2024

Show me please the triggers section in MQTT Info for this device.
obraz

from ha-shellies-discovery.

einarsi avatar einarsi commented on September 25, 2024

image

from ha-shellies-discovery.

einarsi avatar einarsi commented on September 25, 2024

This may be related: I noticed that my Shelly has two controls, while yours has just one (Sterowanie):
image

The top one is switch.livingroom_salon_table_light_switch_relay_0 while the bottom one is light.shelly1_93ef98. Should I have both? Keep in mind I have had Shellies configured with your HA extension for a few years, so there may potentially be some stuff that has not been properly cleaned up along the way.

These are the 8 entities that belong to the device:
image

The switch belongs to the MQTT integration, not Shelly:
image

If I go to Integrations->MQTT-> x devices, I get this:
image

Should they be doubled up like this? If no, which do I get rid of and any suggestions as to how?

from ha-shellies-discovery.

bieniu avatar bieniu commented on September 25, 2024

I think those entities and triggers come from ShellyForHass custom component and are not related to Shellies Discovery.

from ha-shellies-discovery.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.