Shelly Wifi Button Incorrect Entities

I just cannot get my shelly 1 wifi button to integreate. There is just on and off or battery level. There is not click event or any way to get the number of clicks. I have the integration added to my home assistant. The button just sits there with a red light on it and I cannot get it to show properly in home assistant.

Any suggestion on how to fix this?

I’m not sure what the “on/off” entity(ies) could be since a button doesn’t have a state. It’s just pushed or not. My Shelly 1 button only has a battery level entity.

If you have that entity then it is integrated.

you have to listen for the events in order to act on them.

to see the events go to the developers tools events tab. then in the “Listen to Events” section type in “shelly.click” (no quotations marks). then click the button and you should see the event data being populated for the different click types.

Here is an example of the data you should see:

{
    "event_type": "shelly.click",
    "data": {
        "device_id": "c511a2cf064fe5a9bb7a2502904",
        "device": "shellybutton1-84CCA8AB607F",
        "channel": 1,
        "click_type": "single"
    },
    "origin": "LOCAL",
    "time_fired": "2021-06-07T17:58:31.146491+00:00",
    "context": {
        "id": "0682b48181514f3525def6d4eba",
        "parent_id": null,
        "user_id": null
    }
}

then you can use that data in your automations as triggers.

I will try this tonight and report back.