Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


Question

Posted

Dear Fibaro Experts,

 

Did one of you manage to read out the Parrot Flower Power cloud data with the Fibaro HC2?

 

Parrot has an API:   

Please login or register to see this link.

 that allows to read out the information about the flower status such as water level and so on.  It would be great to use this info to trigger e.g. the sprinkler with HC2. If the flower needs water, HC2 turns on the sprinkler system.

 

Did one of you create a VD or scene that allows to readout the Parrot cloud data?
Would be fantastic if you could share?

 

Cheers,
Alex

17 answers to this question

Recommended Posts

  • 0
Guest chaicka
Posted

I have a Parrot Flower Power device. Have not try to use its cloud data in HC2 yet.

 

It is my second piece of the same device (RMA'ed first piece after 6 months) and its water and fertiliser detection has not been working for 2-3 months now (though suddenly works for a few days then stopped again).

  • 0
  • Inquirer
  • Posted

    Update: Is any of you using a Parrot Flower Power API with the Fibaro HC2?

    • 0
    Posted

    I did.

     

    I will post the scene and the VD later this weekend.

     

    • 0
  • Inquirer
  • Posted

    That would be fantastic :-)

    • 0
    Posted (edited)

    + 1 looking to get one so that would be great....Are they any good? How does the information get into HC2?.....sorry many questions

    Edited by darren-mc
    • 0
    Posted
    On 2017-5-27 at 8:12 PM, boerremk said:

    I did.

     

    I will post the scene and the VD later this weekend.

     

     

    Please do, I will apreciate that a lot

    • 0
    Posted

    Ok, here it comes :)

     

     

    1. Create a API key:

    Please login or register to see this link.

    2. Create a scene:

    Please login or register to see this code.

    Remember the scene ID you need it in the VDs

     

    3. In the scene set the following rows:

    local username = 'email' -- also used in app
    local password = 'password' -- also used in app
    local client_id = "email" -- Parrot API username, email address used to create the key
    local client_secret = "API password" -- Parrot API password, key created in step 1

     

    4. Set firstrun to true in the scene and run the scene, it will give back the locations (last row in debug window)

    5. Use the locations row in the debug in the scene:

    local location_id = {} -- replace {} with the debug

     

    6. Create a VD for every Flower Power you have (attached the VD), remember the IDs (you need them in the scene)

    7. Use the Scene ID as TCP port of the VD

    8 if you have several Flower Power VDs only one have to run the scene so in the Main loop you can remove the following line in for the others:

    fibaro:call(selfId, "pressButton", "5")

     

    9. Open the scene and change the row main_id to the VD ids of your Flower Power VDs, has to be the same order as the location_id

    10. set firstrun to false

    11. save the scene

    12. run the scene and the VDs should be updated...

     

    I also use a Rasberry PI with a bluetooth module to connect with FlowerPower, like you do with the app, so it synchronize also without opening the app. It is optional!!!

     

     

     

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    • 0
  • Inquirer
  • Posted

    Wow :-) Thank you! Excellent!

     

    I followed the steps and it seams the scenes is receiving the info from my parrot.

    But the VD is not doing anything even I entered the scene ID as Port and as shown below the VD ID as the main_id.

     

    Can you be so kind to briefly look at the picture if the " and ' and { are correct? Sorry for asking.

     

    This is exciting :-)

     

     

    Please login or register to see this attachment.

    • 0
    Posted
    10 minutes ago, Alzi said:

    Wow :-) Thank you! Excellent!

     

    I followed the steps and it seams the scenes is receiving the info from my parrot.

    But the VD is not doing anything even I entered the scene ID as Port and as shown below the VD ID as the main_id.

     

    Can you be so kind to briefly look at the picture if the " and ' and { are correct? Sorry for asking.

     

    This is exciting :-)

     

     

    Please login or register to see this attachment.

     

     

    You miss the start and end ' in the location_id:

     

    local location_id = {'Exxxxxxxxxxxx23'}

    • 0
  • Inquirer
  • Posted

    Works now perfectly. Thank you very much :-) 

    • 0
  • Inquirer
  • Posted
    On 28.5.2017 at 9:56 PM, boerremk said:

    I also use a Rasberry PI with a bluetooth module to connect with FlowerPower, like you do with the app, so it synchronize also without opening the app. It is optional!!!

     

    Please login or register to see this link.

    Your solution is very useful and works perfect. I start the garden sprinkler when the Moisture level falls below a threshold. Thank you!

     

    The problem I have now is that I can read out the Parrot only once it is connected to my phone. I tried to set up an old HTC phone just for this purpose (no SIM) but it does not connect reliably. As I have an old first generation Raspberry PI I would be interested to learn more about your read out solution. Would be great if you could share.

     

    Once again Thanks.

    • 0
    Posted

    Hi @Alzi,

     

    No problem, I will share the solution. I think it will be next weekend.

     

    Next to the RPi you need a bluetooth dongle for the RPi, to get the solution working.

    • 0
    Posted

    I have a Edyn garden sensor, anyone has build something alike for this device?

    • 0
    Posted

    Hi... I have installed the vd and scene but it doesn't work.

    I have hc2 with 4.530 firmware

    The schene works and i get the full debug with parrot sensors values but the vd doesn't shows any value.

    I have set the scene with correct vd id.

    can you help me?

    thanks

    • 0
    Posted

    The debug does not show any errors?

    If you press the update button of the VD you see debug messages in the scene?

    main_id in scene looks like: local main_id = {407};

    • 0
    Posted

    Hi... thank you and sorry for late reply.

    I'm trying to set the vd and scene but still the vs doesn't shows the datas.

    Scene works good.. no error messa in debug.

    Could you help me?

     

     

     

    [DEBUG] 14:18:29: {"access_token":"NIuGRuqakLawJZlptM6w1wTl8QagKzl4AZmuOFbYMdEwsgEV","expires_in":172800,"refresh_token":"nGpZeUGKxeHN7SaYlMYZ60Iat2SGpe0gOKEpY2ZK7OuYj5L5","import_status":"unavailable"}
    [DEBUG] 14:18:29: {"locations":[{"location_identifier":"OgaXGbjNqz1570816081914","total_sample_count":3817,"last_sample_upload":"2019-10-11T17:48:07Z","first_sample_utc":"2019-09-01T21:25:19Z","last_sample_utc":"2019-10-11T15:25:19Z","status_creation_datetime_utc":"2019-10-11T17:52:58Z","global_validity_datetime_utc":"2019-10-13T17:48:01Z","growth_day":true,"air_temperature":{"status_key":"status_ok","instruction_key":"air_temperature_soon_available","next_analysis_datetime_utc":"2019-10-12T17:48:01Z","gauge_values":{"min_threshold":null,"max_threshold":null,"current_value":null}},"light":{"status_key":"status_ok","instruction_key":"light_soon_available","next_analysis_datetime_utc":"2019-10-12T17:48:01Z","gauge_values":{"min_threshold":null,"max_threshold":null,"current_value":null}},"fertilizer":{"status_key":"status_ok","instruction_key":"fertilizer_unavailable","next_analysis_datetime_utc":null,"gauge_values":{"min_threshold":null,"max_threshold":null,"current_value":null}},"watering":{"status_key":"status_ok","instruction_key":"soil_moisture_good","automatic_watering":{"status_key":"status_ok","instruction_key":"automatic_watering_off","predicted_action_datetime_utc":null,"next_watering_datetime_utc":null,"last_watering_datetime_utc":null,"full_autonomy_days":null,"done_action_datetime_utc":null,"gauge_values":{"min_threshold":0,"max_threshold":100,"current_value":0}},"soil_moisture":{"status_key":"status_ok","instruction_key":"soil_moisture_good","predicted_action_datetime_utc":null,"predicted_action_vwc_value":null,"gauge_values":{"min_threshold":null,"max_threshold":null,"current_value":29.3640003204346}}},"user_sharing":{"first_all_green":{"sharing_status":"to_be_shared"}},"sensor":{"sensor_type":"flower-power","sensor_identifier":"Flower power 2EAA","current_history_index":19570,"firmware_version":"2016-09-14_hawaii-2.0.3_hardware-config-MP","firmware_update":{"firmware_upgrade_available":false}},"battery":{"gauge_values":{"min_threshold":0,"max_threshold":100,"current_value":38}},"processing_uploads":false}],"user_config_version":7,"garden_status_version":11,"errors":[],"server_identifier":"2.1.18 April 6th 2017"}

     

    • 0
    Posted

    hi...finally i have found the mistake and now vd works perfectly.

    i'm interested in raspberry bluetooth solution... could you please share the solution?

    thank you

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...