Beiträge von valdus

    For a start...THANK YOU!

    But, it has a problem.

    First from a fully closed position I'm just opening it and I get these two messages:

    shellyplus2pm-5443b23eae68/cover:0/event

    shellyplus2pm-5443b23eae68/cover:0/position

    Now I just close it and I get flooded with below:

    shellyplus2pm-5443b23eae68/cover:0/shellyplus2pm-5443b23eae68/cover:0/shellyplus2pm-5443b23eae68/cover:0/shellyplus2pm-5443b23eae68/cover:0/shellyplus2pm-5443b23eae68/cover:0/event

    with a value of closing

    If I open it again all the above take a value closed. If I stop it midway they get the value of open.

    The first two messages always get the correct values but all the other messages should not be there...


    Just an observation not for you but for shelly. Isn't it too much all this scripting for such a simple task?

    I'm used from tasmota where the same is just 6 words with a rule :

    ON shutter1#position do publish helloworld/position %value% endon

    I could not imagine that such a simple task would take you writing down all this code for me...I'm feeling bad...sorry and thank you again.

    OK, there you have it...

    OK, here are the debug results, first stopped and then opened :


    Thank you again.

    Hello,

    I need help regarding the title. I am not a mjs expert and I want a script that publishes a custom mqtt topic when

    Shelly Plus 2PM in cover mode, changes state or changes position.

    The only thing that I managed to write, combining bits from here and there is the below scipt


    But of course this is not what i want. I understand I should use a statusHandler or eventHandler but I really don;t understand how to do it...

    So, if anybody could help me I would appreciate it.

    Thank you in advance.