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
ostry 3
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:
Please login or register to see this link.
{"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.
Please login or register to see this code.
Dla ciekawskich, poniżej lista dostępnych poleceń API:
Please login or register to see this link.
oraz komentarz:
Please login or register to see this link.
Please login or register to see this link.
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ć.
8 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.