[Résolu] Control Zwave with URL

Domotica gratuit Forums Report a bug Control Zwave with URL

Mots-clés : , ,

Ce sujet a 2 réponses, 2 participants et a été mis à jour par  jsamson, il y a 1 an et 7 mois.

3 sujets de 1 à 3 (sur un total de 3)
  • Auteur
    Messages
  • #2653

    jsamson
    Participant

    Hi guys,

    First, thanks for everything, pulsestation on my NAS is simply amazing, I had a lot of fun with it so far 🙂

    However, I have some issues trying to shut off / on my zwave devices by calling an url.
    Indeed, I’m controling everything with imperihome which is great but I can’t manage to make it work by simply putting it all together with an URL.

    Here is how I managed to make it work :
    1) calling ON OFF on the dashboard on a specific device (simple plug controller)
    2) checking the log to get both on and off command

    Message In Core : 1|HUB|zwave|UPDATEPROPERTY|zwave-2|37-user-bool-1-0|false
    zwave : Message received - 1|HUB|zwave|UPDATEPROPERTY|zwave-2|37-user-bool-1-0|false|1454610565201|232799316f291b4ad0a216cd6c514759
    Message In Core : 1|HUB|zwave|UPDATEPROPERTY|zwave-2|37-user-bool-1-0|true
    zwave : Message received - 1|HUB|zwave|UPDATEPROPERTY|zwave-2|37-user-bool-1-0|true|1454610569479|35b01bf14f658f2d4ca0b1061df6b0cf

    With the log, I guess 1|HUB|zwave|UPDATEPROPERTY|zwave-2|37-user-bool-1-0|false is for the OFF command and 1|HUB|zwave|UPDATEPROPERTY|zwave-2|37-user-bool-1-0|true is for the ON.

    3) Putting it all in a browser http://myip:4070/message=1|HUB|zwave|UPDATEPROPERTY|zwave-2|37-user-bool-1-0|false

    But it’s not working :/

    I also tried with curl in a command line :

    curl --request GET 'http://myip:4070/message=1|HUB|zwave|UPDATEPROPERTY|zwave-2|37-user-bool-1-0|false'

    All I got from the browser or from the command line is : {“id” : “My Service”, “apiversion” : 1}

    Any idea what’s wrong with all of this ?

    Thank you very much 🙂

    #2656

    K.Rens
    Admin bbPress

    Hi,

    If you use your local ip, you do not need login and password, so in that case it’s fine.
    Otherwise follow steps here:
    https://www.pulse-station.com/faqs/control-devices-calling-a-url/

    It looks also like you are using a wrong port.
    Could it be you are using the imperihome port instead of the zwave port?
    http://myip:4020/message=1|HUB|zwave|UPDATEPROPERTY|zwave-2|37-user-bool-1-0|false
    For me it’s 4020, instead of 4070

    This works for me.

    It should work from your browser 🙂

    • Cette réponse a été modifiée le il y a 1 an et 7 mois par  K.Rens.

    Kind regards,
    K.Rens

    #2659

    jsamson
    Participant

    God, you are right it was the wrong port !

    Now I have :
    {“Root”: { “Response”: { “Status”: “_API_COMMAND_OK_”, “ErrorCode”: “”, “ErrorMessage”: “” }}}

    which means it’s working !

    Thanks for the quick answer 😉

3 sujets de 1 à 3 (sur un total de 3)

Vous devez être connecté pour répondre à ce sujet.