Shelly 1 application

  • Good evening,

    I just purchased a shelly one and have installed it and it works great, however i am trying to set up a sensor that will let me know when the device controlled is open. In the application I am missing the input state under the application settings section. I think I have installed everything correctly, but looking for some help on how to get that option?

    Kevin

    • Offizieller Beitrag

    Hi and welcome to the forum. :)

    Which BUTTON MODE do you use?

  • I ran into the same issue on my Shelly 2.5. After some investigation of the cloud APIs and JavaScript i think this might be a bug and thus opened the following ticket T-20037569 with Allterco:

    Zitat

    Myself and some other users (see Shelly 1 application and Input State (German)) ran into a strange bug where some of our Shellys (Shelly 2.5 in my case, Shelly 1 for other users from the linked threads) would not show the "Add input state identifier to the power button" checkbox in the "Application Settings".

    I was able to investigate it and work around the issue (just for myself) by doing some browser devtool HTTP magic. I basically POSTed devices_data={"DEVICE_ID":{"input_state":true}} to the cloud /interface/device/bulk_update endpoint. From that point onward the "Add input state identifier to the power button" setting appeared and also stayed visible even when i disabled the option.

    This leads me to believe this is actually a bug that occurs when the device is completely missing the input_state property (instead of it being either true or false) in the device entry returned by the cloud /interface/device/get_all_lists HTTP endpoint. Not sure under which conditions the device entry will end up in that state, but for me it occured on 1 of my 3 Shelly 2.5 devices. For another user it occurred on 5 of his 13 Shelly 1 devices.

    I believe the actual bug in the code is in https://my.shelly.cloud/assets/js/modu…ice_settings.js in the init_input_state_events() function which does a "device.hasOwnProperty('input_state')" check. So if the input_state property is completely missing (for whatever unknown reason), the user will not be able to ever activate that option.

    Obviously another option to fix this would be to make sure that the input_state property is always there (for the devices that support it).

    I will try to keep you updated on Alltercos response.

    Shellys – 16x Plus 1PM / 8x 1PM / 4x Dimmer 2 / 3x Shelly 2.5 / 3x Plus 2PM / 2x Button 1 / 1x Plus 1 / 3x Plus i4 / 1x i3 / 1x Door/Window 2 / 5x PM Mini Gen3 / 2x H&T Gen3 / 1x Plus AddOn //// WLAN – 4x UniFi Access Points //// Rollläden / Rollos / Storen – Somfy Tahoma Switch mi 5x Somfy io & 3x Velux io-homecontrol / 2x euroMOT powerFlex //// Heizung / Klima – Viessmann mit Vitoconnect 100 (OPTO1) & Vitocom 100 (LAN1) / Mitsubishi