use WLAN Power Plug with Pulse-Station and Imperihome

Free domotica! Forums How can I …? Blocky examples use WLAN Power Plug with Pulse-Station and Imperihome

This topic contains 1 reply, has 2 voices, and was last updated by  Andreas Brandl 7 months, 4 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #11824

    djandib
    Participant

    Problem:
    Actual more and more WLAN devices like Power Plug exist. Wlan Devices are not supported by Pulse-Station or Imperihome.

    Hardware:
    For my solution I use a PowerPlug, which can be used with the “Smart Life” App.
    For Example: https://www.amazon.de/dp/B075W91N3D/
    The “Smart Life”-App can be implemented in IFTTT as an THEN-Tree.

    Solution:
    1. Create a IFTTT Trigger at Pulse-Station as described here:
    https://www.pulse-station.com/ifttt-service/
    2. For the THIS look for the Service WEBHOOKS (I think former MAKER)
    3. Create a trigger: Strom-1
    https://snag.gy/rPhNZa.jpgTrigger Strom-1
    4. Fill the iftt.event with a default. E.g.” strom-1-off”
    https://snag.gy/Bpox9r.jpgifttt.event
    5. Now you can use this trigger only by change the eventname:
    event = strom-1-on = Power On
    event = strom-1-off= Power Off
    6. With this Blocky you can turn on the power:
    https://snag.gy/zm82Ku.jpgBlocky
    If you want: save this as a manually run blocky scene and use it on its own.

    Now let`s look at Imperihome:
    There aren`t any buttons for WLAN devices so we have to use Virtual Binary Switches.
    7. Create a virtual binary Switch “Strom-1-V”
    8. Create a virtual binary Switch “Strom-1-V_status”
    9. We create this blocky:
    https://snag.gy/ubFelW.jpgVirtual
    10. Finally use the virtual Binary Switch “Strom-1-V” as a new device at Imperihome

    Attention:
    If you make 2 scenes (on/off) and make them each as a new device in Imperihome, the reaction starts immediately (Step 6)
    If you make 1 scene (Step 10), the reaction starts the next cycle of the scenes.

    Feel free for any comments

    Greetings
    Andi

    #11855

    Andreas Brandl
    Participant

    After my Pulse-Station crashed several times, I think there is a bug in the IFTTT Service (but cannont confirm it 100%).
    I use now a direct request for IFTTT within a php-blocky and uninstalled the IFTTT-Service:
    USE_YOUR IFTTT_KEY = You get it at IFTTT

    $temp = file_get_contents(“https://maker.ifttt.com/trigger/”.$ifttt_event.”/with/key/USE_YOUR IFTTT_KEY”);

    blocky

    Feel free for comments
    Andi

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.