Beiträge von Flytrapp

    But, isnt your PM a switch aswell? mine is a pure PM. So maybe they removed events from pure PMs.

    anyway: Thank you so much for your help! Needed to install a motorized damper on the kitchen extractor to avoid -15C air seeping in. But adding a button to open the damper isn't appreciated by the lady of the house.

    Status: started Script _[ Open ]_
    17:16:56

    Error: Creating Fake Power Event ---> Error Cannot read property 'apower' of null
    17:16:56

    Starting the fan does nothing in the log, but the device shows a powerdraw

    pasted-from-clipboard.png

    Thank you,

    If i understand this correctly all I would need to do is change variables for powerlimit and IP adress of the switch (Shelly 1 mini) ? and then run this as a script in the PM mini?

    entering http://192.168.68.64/relay/0/?turn=off / on i a browser works, and PM shows a powerdraw of 20W, but no action triggered from the script.

    Diagnostics from the PMmini:

    shelly_notification:163 Status change of pm1:0: {"id":0,"apower":15.4} 11:46:49

    shelly_notification:163 Status change of pm1:0: {"id":0,"current":0.155} 11:46:49

    shelly_notification:163 Status change of pm1:0: {"id":0,"apower":6.1} 11:46:50

    shelly_notification:163 Status change of pm1:0: {"id":0,"current":0.108} 11:46:50

    shelly_notification:163 Status change of pm1:0: {"id":0,"apower":0.0} 11:46:51

    shelly_notification:163 Status change of pm1:0: {"id":0,"current":0.000} 11:46:51

    shelly_notification:163 Status change of pm1:0: {"id":0,"apower":2.9} 11:46:56

    shelly_notification:163 Status change of pm1:0: {"id":0,"current":0.030} 11:46:56

    Hi

    I have a Shelly mini PM "PMFan" connected to the kitchen fan, and I need it to turn on a relay "spjeld" if the powerdraw is >2W, and turn it of again if its below 2W.

    I have tried doing it via actions, but firstly the conditions available are "active power change", which wouldnt do it since the fan can draw 1-200W depending on setting, so a 1W increase or decrease wouldn't turn it of at the right time.

    So basicly it would be a simple If statement for functionality if I did this on a arduino etc. (If PmFan power > 2 , spjeld = on, else Spjeld = off.)

    But I am struggling to understand how to code this in shelly.

    Is there a simple way to do this? Are there any tutorials thats adequate to get this done?

    Thanks for any help

    Flytrapp.