Beiträge von raidboy

    I managed to enhance the one BLU motion script on Shellys example github to roughly do what i wanted. Adding check for time turned out to be more easy than i feared. But because the BLU motion does not periodically re-send motion events, it may not be all that reliable. So i did add at least also a timer based switch-off.

    I've added it to the issue i raised:

    Need example for BLU motion triggering switch without cloud · Issue #75 · ALLTERCO/shelly-script-examples
    Is your feature request related to a problem? Please describe. Need to replace Shelly cloud scene solution with script because deployment does not have…
    github.com

    Thanks a lot for all the help!

    Thanks a lot. I checked out the example scripts, also ble-shelly-motion.js, but they all do not exactly replicate what the simple scene does via the shelly cloud. I want that motion triggers the switch on/off only during certain times.

    I got frustrated trying to figure out how to add that to the script. Sys.GetStatus() requires the use of callbacks, and thats the first part then of becoming a javascript expert.

    I am also worried about the unreliability of BLE. The way i understand it, the BLE motion would only send a message when it changes state, e.g.: from motion to non-motion or back.

    So what happens when the nomotion event is lost ? My switch would stay on for very long time, which is very undesirable.

    I guess somehow one would need to make sure the BLE motion would send motion events periodically, and then be an expert javascript developer write a script that re-triggers a timeout event after a motion event. And check the time... I have opened an issue against this, but i do not expect that ALLTERCO would provide a response ;(

    Maybe the motion event is already sent periodically ? Who knows... could not find documentation about that.

    Need example for BLU motion triggering switch without cloud · Issue #75 · ALLTERCO/shelly-script-examples
    Is your feature request related to a problem? Please describe. Need to replace Shelly cloud scene solution with script because deployment does not have…
    github.com

    Note: this question is about Shelly BLU motion, but the forum tag does not include that product. So i choose Shelly Motion 2 there.

    Question:

    I have managed to set up a Shelly BLU motion to trigger a Shelly Plus Plug S by configuring appropriate Scenes to switch the Plug on/off.

    But this all requires the cloud. I would like a solution that works directly without cloud.

    I also do not want this to require a home controller like Home Asssistant, but directly from BLU motion triggering the Plus Plug S.

    I can do direct triggering without need for a controller or cloud from any Shelly WiFi switches for example to any Shelly Relay or Plug (have that running for a range of lighting). But i wanted the BLU motion for longer battery life and smaller size (i guess it would work with Shelly Motion 2, but i have not bought one).

    Other lower-than-wifi power solutions like Z-Wave or HomeMatic IP also support that direct coupling.

    Thanks for any information!

    Can i configure a shelly device to connect to my cloud account without using the application ?

    Alas, i can not figure this out from shelly documentation (e.g.: https://kb.shelly.cloud/__attachments/…12-4a3b64952f4c). The web interface has a selction to enable/disable cloud, but there is no place to continue then explaining how i would connect the device to my cloud account.

    My shelly app (android 10 phone, version 5.24.4) does not manage to enroll the device directly. I had this problem in many cases (IMHO the applications sucks bedrocks), but i could always first connect my devices directly via their web interface to my wlan and then go to the app and "Add a device by IP".

    But when i use "Add a Device by IP", and enter the IP address of the Shelly Dimmer 2, the app says "Not a recognized Shelly device". And yes, my phone is connected to the same IP subnet as the Dimmer 2, and when i open the Dimmer 2 web browser i will see those HTTP connections. however, when i do an "Add a Device by IP", nothing shows up in the Dimmer 2 log for it.

    ;(

    Any help welcome!