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


Search the Community

Showing results for tags 'efergy'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • FIBARO Community
    • FIBARO Portal and Forum policy
    • FIBARO
    • Say hello!
    • Off-topics
  • FIBARO Update
    • FIBARO System Update
    • FIBARO Mobile Update
  • FIBARO Community Support
    • Scenes and Interface
    • FIBARO Products
    • FIBARO Mobile
    • FIBARO HomeKit
    • FIBARO Assistant Integrations
    • Other Devices / Third-party devices
    • Tutorials and Guides
    • Home Automation
    • Suggestions
  • FIBARO Społeczność
    • FIBARO
    • Przywitaj się!
    • Off-topic
  • FIBARO Aktualizacja
    • FIBARO System Aktualizacja
    • FIBARO Mobile Aktualizacja
  • FIBARO Wsparcie Społeczności
    • Sceny i Interfejs
    • FIBARO Urządzenia
    • FIBARO Mobilnie
    • FIBARO HomeKit
    • Integracja z Amazon Alexa i Google Home
    • Urządzenia Firm Trzecich
    • Poradniki
    • Automatyka Domowa
    • Sugestie

Categories

  • Scenes
  • Virtual Devices
  • Quick Apps
  • Icons

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Facebook


Google+


Skype


Website URL


WhatsApp


Country


Gateway/s


Interests

Found 2 results

  1. Hi, I'm new to HC2 and to scripting in general and am hoping someone can point me in the right direction. I have a Efergy energy monitor on my mains which displays my power consumption in watts and has an API at Energyhive.com. If I input this address into a web browser https://engage.efergy.com/mobile_proxy/getInstant?token=OAuB2POIvD-----------------afpKsGVCnD (I have blanked out part of the access token so the link won't work) it returns this string {"age":0,"last_reading_time":1502878245000,"reading":1851} "reading" = 1851 Watts Is it possible to get that "reading" into Fibaro and use it to monitor energy consumption. I have looked through the forum and have found posts on similar exercises but can't make sense of the scripting required or where to start. I'l be happy just to be able to get the data through Fibaro for now and work out the rest as I learn more. Any help would be greatly appreciated. Thanks, Paul Larkin
  2. Próbuję utworzyć urządzenie wirtualne, które będzie cyklicznie odczytywało pobór mocy elektrycznej z serwera Efergy Engage. Na serwerze dostępne jest API, dzięki któremu możemy otrzymać odczyt w formacie json: https://engage.efergy.com/mobile_proxy/getInstant?token=HnMmDzWlLc3j5yIoFleXQb6BYghTX8IM {"age":3,"last_reading_time":1471694520000,"reading":232.185} Niestety nie mogę sobie poradzić. Uruchomienie debugu daje mi następującą informację: [DEBUG] 15:07:51: [ERROR] 15:07:51: line 7: Expected value but found T_END at character 1 Wygląda to tak, jakby zapytanie nie zostało wykonane. efergy = Net.FHttp("https://engage.efergy.com", 443) local data = efergy:GET("/mobile_proxy/getInstant?token=xxx") fibaro:debug(data) jsonTable = json.decode(data) fibaro:debug(jsonTable.reading) fibaro:call(617, "setProperty", "ui.Label1.value", jsonTable.reading) Dla ciekawskich, poniżej lista dostępnych poleceń API: http://napi.hbcontent.com/document/index.php oraz komentarz: http://blog.krisdaniels.be/efergy-engage-api-reference-part-1/ http://blog.krisdaniels.be/efergy-engage-api-reference-part-2/ Zważywszy, że można przez API zaciągnąć również historię zużycia energii za ostatni rok, jest to całkiem przyjemny system pomiarowy dla całego domu. Myślę, że miałoby przyszłość dodanie gotowego pluginu do Fibaro... Kod udostępniam razem z moim tokenem do testów. Gdy uda się to uruchomić, to unieważnię ten token. Będę wdzięczny za wskazówki, jak to poprawić.
×
×
  • Create New...