Not sure if this is a front end issue, a configuration issue or a Shelly Integration issue as I am new to HA and do not know how to investigate baffling issues like this, which seems to be some kind of naming conflict.
I’m working on the control panel that comes up when I click on a Shelly device in the Devices tab of the Shelly Integration list. In the ‘Events’ pane, I have two entries ‘Button1’ and ‘Button3’ and when I press the appropriate buttons on the device these events show appropriately (‘Single push’, ‘Double push’ etc.) in HA. If I create an Automation based on a ‘Button1’ trigger, everything works as expected (although the drop-down list in the visual editor unhelpfully shows it as ‘First button’ rather than ‘Button1’). But the drop-down list does not show ‘Second button’ or ‘Third button’, just ‘Button101’. If I select that, when I save the Automation I get an error message:
Message malformed: value must be one of ['button', 'button1', 'button2', 'button3', 'button4', 'button5'] for dictionary value @ data['subtype']
I went in to the YAML editor and changed ‘button101’ to each of the suggested valid values in turn. Except for ‘button1’, all the values gave the same error message. I can change the name of these components in the Shelly web page for the device, so I tried changing it to ‘button101’. This change propagated automatically to HA and the events continued to be shown as expected, but attempts to trigger an Automation on ‘button101’ still gave the same error message.
I do not think this is a problem with the Shelly device as the Events are showing as expected within HA, but for background it is a Shelly 1 PM Gen4 with the Shelly Plus add on. The button that works in HA is connected to the main device while the one that does not work is connected to the digital input on the Shelly Plus. Both are configured as Buttons (rather than Switches) and ‘detached’.