Created At

Oct 20, 2017

Last Update

Jul 16, 2019

Platforms

HC 2

Views

12536

Download

545

Change history:

  • Corrected png size to 128x128
  • 3.2.5 (20171215): Some regions were not working, changed the method of authentication to fix this issue

 

You need:

  • Evohome with color screen and Internet gateway (RFG100) or Evohome with wifi
  • Evohome account

 

Installation:

 

For the Dutch people: In the zipfile there is an installation manual.

  1. Create a Variable (Panels / Variables Panel): EvohomeAPI
  2. Create a LUA scene "Evohome API"
  3. Paste the code from the "Evohome_2.0_Scene.txt" into the scene
  4. Change the following lines
  5. local username = "EMAIL" -- Evohome username
  6. local password = "PASSWORD" -- Evohome password
  7. local main_id = {1376}; -- ID of Evohome VD's, one for every location, starting with the ID of location 0 eq {111,222} -- see below "Evohome_2.0.vfib"
  8. local zones_name = {"Room1","Room2","Room2","Bathroom","Hallway","Master","Kidsroom","Kitchen"}; -- Name of zones (defined in Evohome, case-sensitive!)
  9. local zones_id = {1219,1377,1222,1221,1218,1217,1220,1223}; -- ID of zones VD -- see below "Evohome_2.0_-_Zone.vfib"
  10. !!REMEMBER THE ID OF THE SCENE!!
  11. Import "Evohome_2.0_-_Zone.vfib" for every zone you need, you have to set/edit:
  12. The name off the VD should match the name of the zone (case-sensitive!)
  13. IP Address of the virtual device with the location ID of youe Evohome system (default = 0) (See Evohome 2.0.png)
  14. TCP port of the virtual device with the ID of the scene (See Evohome 2.0.png)
  15. !!REMEMBER THE ID OF THE VD, THIS HAS TO BE PUT IN THE SCENE, SEE ABOVE!!
  16. Import "Evohome_2.0.vfib" (only once!), you have to set/edit:
  17. IP Address of the virtual device with the location ID of youe Evohome system (default = 0) (See Evohome 2.0.png)
  18. TCP port of the virtual device with the ID of the scene (See Evohome 2.0.png)
  19. The values will be update every 30 minutes (you can change this in the main loop)
  20. !!REMEMBER THE ID OF THE VD, THIS HAS TO BE PUT IN THE SCENE, SEE ABOVE!!
  21. Import "Evohome_2.0_-_DHW.vfib" for every DHW you need, you have to set/edit:
  22. IP Address of the virtual device with the location ID of youe Evohome system (default = 0) (See Evohome 2.0.png)
  23. TCP port of the virtual device with the ID of the scene (See Evohome 2.0.png)
  24. !!REMEMBER THE ID OF THE VD, THIS HAS TO BE PUT IN THE SCENE, SEE ABOVE!!`

 THATS IT...

 

 

IMPORTANT

Honeywell changed there security to there API some tome ago so you will receive the following error:

LuaEnvironment: /home/server/bamboo-agent-home/xml-data/build-dir/HC-LE153-JOB1/LuaEngine/vendor/avhttp/avhttp/cookie.hpp:636: bool avhttp::cookies::parse_cookie_string(const string&, std::vector&): Assertion `0' failed.

I have created two workarounds, you only have to use 1:

  1. Change the line "url= 'https://tccna.honeywell.com/Auth/OAuth/Token'" in the function "GetOAuth" of the scene "Evohome API" to:
     

    url = '

    '

    http://boerremk.nl/cgi-bin/access_token2.py'
  2. In the Evohome zip there is a file called access_token2.py, install this on a local webserver and cange the line "url= 'https://tccna.honeywell.com/Auth/OAuth/Token'" in the function "GetOAuth" of the scene "Evohome API" to:
    url = '<webserver-ip>/access_token2.py'

 

 

 

Link to Fibaro Forum pages

Link to profile

40 Comments,  Want to add comment please login
A704f855710964c3af2afa401e4cfc4a

Thanks Remko, works like a charm, but i used Robbshop's implementation guide, which is easier to understand. also had to change the png size from 100x100 to 128x128.

25e263cee1b95ece7c7b3074c851053d

Thanks for the comment. I changed the size of the png files (don't know what went wrong) and added a statement that in the zipfile there is a Dutch installation manual (the Robbschop's implementation guide is based on that, I made it in on his request).

9d5f96a3e30b73e8c2b7c805e85ca8ef

I get the error : [DEBUG] 13:41:07: EvohomeAPI set to 0, so aborting Any idea what to do ? I followed all the staps. Create a variable EvohomeAPI with the default 0 value

25e263cee1b95ece7c7b3074c851053d

Hi Edwin, If you press "Update" in the Evohome 2.0 VD, what do you see then? Can you post that information

9d5f96a3e30b73e8c2b7c805e85ca8ef

[DEBUG] 17:02:32: EvohomeAPI set to 0, so aborting [DEBUG] 17:04:51: EvohomeAPI: dhw,None,0,,, [DEBUG] 17:04:51: actiontype: dhw [DEBUG] 17:04:51: action: None [DEBUG] 17:04:51: location: 0 [DEBUG] 17:04:51: zone: [DEBUG] 17:04:51: temperature: [DEBUG] 17:04:51: duration: [DEBUG] 17:04:51: expires_in=1799 [DEBUG] 17:04:51: refresh_token=ymIhxiFv0odL4pQl--85IRZxfu5IrSjE1yZR-RiuvkkZMzOHSx7wWLvT3PzXXsX0t1yJyNhRsNQtfN4Z-2eM2f2FnGUNiNtWMnWYo8Zy7UqmFaskh5hTwxQ3VeNiR8Cq4TK2yV37O7bWbkY1Q5WClGy5m7VoSTFJ7J-V_rGm0AbbjwbO1tmJqmkbsIX0aCj8JTTLUKvMPNS46mA63K7hLQ0njtU_QeAwu3TYyyWLLdNHOywyJ8naZOmvvRIEncfZn5fAZEpvaCOV0j3VwvugNjRlwkPq6shkFebpumMMAA7_1IpytyyAL4VyOCbsdrB8fnifGJIKoqJv6D6bzJqVwfzYbjsuHLlSxCqnDOBYkQH2OKB3pR8HkCDhmNQhRM-cdl0X4rHj14R0m_1edHYHr15v9sRsrLciP5UjPmN2W6N86Ye62DwSzSaBnAGQyuXK2Qr1758dC5b4WCJIpKvtOU5-U9UU6zLl55aOXJjvyqMxIBY1yXOMBRLUFg9RNJWybk-cvlsrX1wjV4Vdg6ZSTYULo4i1jzNVsB0g-HD54RnmXMeUrxyQni8RqT_oRwO8LU-6fg [DEBUG] 17:04:51: scope=EMEA-V1-Basic EMEA-V1-Anonymous [DEBUG] 17:04:51: token_type=bearer [DEBUG] 17:04:51: access_token=LsK_8zIAqLL3OJCOH4jJGMAOar8DiWXuo7PUQZvzM7N9OVre8SiN-jLKpq9rKsND5oGNDDWRpwpz4NeaKgi18eIQkxL3uFtqFlwvi4OPxRhl-hcjSyVgQ2kZaxYds2Au2uRmQP5XUxNULoOzqkdKXQzxKjPKdcb9X2lLqiMBJxJBmnftWiDbU8p_vQhsDtvTQ7iXHra5McPXaNCZaZ77LLYjJsQaSwPtaA8c8XON6Ejv-Meds20S_cHtGJOtFhZZbnVVeVK4ohJrp8mzT16V1RVteopcj10_IttqGsbWiFTB3dVLuQNuJ5eS8LGjtrcue4NFIDp2bDyjiyI7dlC06tjPb3-bvBaG3KPANd0Mh6AXOhoh7W2xMCKH-8s7zqdr5KGIwSjHAiMdovd8xSCmeP8bvHNNB_tdVDLlKvjjnquj3U35bQFidjCEAsG3sLa5iAJMa2Mpo5mfKV3rd8JQznANOIK62Y2cdk6yPtmmEJvXpacelV93ReseitzIcEaYf-geTbeO8YnAY8EkIynnIK9awv06eAAqgZTtyg5xz0-vhXmv [DEBUG] 17:04:51: Accept=application/json, application/xml, text/json, text/x-json, text/javascript, text/xml [DEBUG] 17:04:51: Authorization=bearer LsK_8zIAqLL3OJCOH4jJGMAOar8DiWXuo7PUQZvzM7N9OVre8SiN-jLKpq9rKsND5oGNDDWRpwpz4NeaKgi18eIQkxL3uFtqFlwvi4OPxRhl-hcjSyVgQ2kZaxYds2Au2uRmQP5XUxNULoOzqkdKXQzxKjPKdcb9X2lLqiMBJxJBmnftWiDbU8p_vQhsDtvTQ7iXHra5McPXaNCZaZ77LLYjJsQaSwPtaA8c8XON6Ejv-Meds20S_cHtGJOtFhZZbnVVeVK4ohJrp8mzT16V1RVteopcj10_IttqGsbWiFTB3dVLuQNuJ5eS8LGjtrcue4NFIDp2bDyjiyI7dlC06tjPb3-bvBaG3KPANd0Mh6AXOhoh7W2xMCKH-8s7zqdr5KGIwSjHAiMdovd8xSCmeP8bvHNNB_tdVDLlKvjjnquj3U35bQFidjCEAsG3sLa5iAJMa2Mpo5mfKV3rd8JQznANOIK62Y2cdk6yPtmmEJvXpacelV93ReseitzIcEaYf-geTbeO8YnAY8EkIynnIK9awv06eAAqgZTtyg5xz0-vhXmv [DEBUG] 17:04:52: EvohomeAPI: dhw,DHWOn,0,,, [DEBUG] 17:04:52: actiontype: dhw [DEBUG] 17:04:52: action: DHWOn [DEBUG] 17:04:52: location: 0 [DEBUG] 17:04:52: zone: [DEBUG] 17:04:52: temperature: [DEBUG] 17:04:52: duration: [DEBUG] 17:04:53: 2161132 [DEBUG] 17:04:53: token_type=bearer [DEBUG] 17:04:53: access_token=wZxDaoz-PiRBS87P6mXLnHMeLSKOlXTWdTnBB-0hzddBYNDdKOF2CJyBcemt--7-4orj4F2VUmSrSniXStsohy2DA3NSEeLJVXwev7XQnPv1Dykl5q-_TEsNTdg_9gGNPu6q6FZzLJpLmHiO6hadP0dfhpFMenIDtDnJ7xRboW_BAVpMKgfgDV9_j1QTq7lmo3s7gb40tztNanpcDDpvqSw_a8PDh8wNdSg80KMDJy8xgqlWVijrUVjGOFKJKE8f7pFB6pSmKHBVZKyCBEUd4rTGuQN2JCwbYka36ElVlr4dJ9Kh2od35RjtqD-DZsMThM6jbd5Fnh2sQ0BY1e76zO_KpwqD3bR5SqJeYYfg6wplyT2nzU0X3kXLYKrge8yLdtxmuzl8qasKKqY5iRM1F5c0OStMlmAHujGCjdL3uoXeQiTZbuIooC-xEJKQNLnsQBKGkKZGWNBAUGjnDMlrlOzKt4DPDtm_R1BYFOdCQ5nMnkLO6au70-6COUz0khUMS3UYt-Vh3Di5BT1qG-3lUFsgGsoEvlmK9driULtePB0HjKlq [DEBUG] 17:04:53: scope=EMEA-V1-Basic EMEA-V1-Anonymous [DEBUG] 17:04:53: expires_in=1799 [DEBUG] 17:04:53: refresh_token=7-5BYVOGrRU43jFqPBLY2huppW3JKmsPBqxuGP0eRdUcJM-FY8Vi25LKsPnzlW_d_HAdttaoLArBUUC6u7P7a-D2aBVcnpinGQg2_iuc4_V3W8jArrSWFTaHrOOsk_aZvCDj05xlLlUPwaJ3kACy6Wm0nL9o8S8JncWC9JQC80v6E2V4P-ZKR4dtlvsjSAwGRmgGniwH5s0Rty9OsguvFr8fh1c-m9SkuAgbKz0TbQSlQhOgvW6X_Fxko8LDR9InRd2S8zvxKIJGybhYrt3Kh1n6VzXy88qbJh3weUQnyVBCvTMiwWzqYSgA-rnq0OkXslcAapiAL5gC6Qu_CSKZOp_zqJnU9-YwmRFordp1RnGbyAgYvq2IwlKNRI4Qhe1h0ATMRdgJsaXBr0mjr2LGMJ0vVvWTUi5g2UxsJNqiOO-rWFWMcXYYQ8zDURDTxY_VhFE7isJX6TshcrHofzIYyncq7kUn5NOQpdDS-x4Vo0nJobixWnaBp909kNOc4DyNRDWleVuxM3sn7Iq85hpJ3SEKDhieo6BT7PY3jXLpLeAkdqYZMcGa6bUIweNHXXDqORs8lA [DEBUG] 17:04:53: Authorization=bearer wZxDaoz-PiRBS87P6mXLnHMeLSKOlXTWdTnBB-0hzddBYNDdKOF2CJyBcemt--7-4orj4F2VUmSrSniXStsohy2DA3NSEeLJVXwev7XQnPv1Dykl5q-_TEsNTdg_9gGNPu6q6FZzLJpLmHiO6hadP0dfhpFMenIDtDnJ7xRboW_BAVpMKgfgDV9_j1QTq7lmo3s7gb40tztNanpcDDpvqSw_a8PDh8wNdSg80KMDJy8xgqlWVijrUVjGOFKJKE8f7pFB6pSmKHBVZKyCBEUd4rTGuQN2JCwbYka36ElVlr4dJ9Kh2od35RjtqD-DZsMThM6jbd5Fnh2sQ0BY1e76zO_KpwqD3bR5SqJeYYfg6wplyT2nzU0X3kXLYKrge8yLdtxmuzl8qasKKqY5iRM1F5c0OStMlmAHujGCjdL3uoXeQiTZbuIooC-xEJKQNLnsQBKGkKZGWNBAUGjnDMlrlOzKt4DPDtm_R1BYFOdCQ5nMnkLO6au70-6COUz0khUMS3UYt-Vh3Di5BT1qG-3lUFsgGsoEvlmK9driULtePB0HjKlq [DEBUG] 17:04:53: Accept=application/json, application/xml, text/json, text/x-json, text/javascript, text/xml [DEBUG] 17:04:53: No DHW in system [DEBUG] 17:04:53: _set_dhw [DEBUG] 17:04:53: 2018-08-03 17:04:53.877107 [ fatal] LUA error: /opt/fibaro/scenes/313.lua:290: attempt to index global 'dhw' (a nil value) [DEBUG] 17:04:54: EvohomeAPI set to 0, so aborting [DEBUG] 17:04:55: 2161132 [DEBUG] 17:04:55: No DHW in system [DEBUG] 17:04:55: _set_dhw [DEBUG] 17:04:55: 2018-08-03 17:04:55.802570 [ fatal] LUA error: /opt/fibaro/scenes/313.lua:290: attempt to index global 'dhw' (a nil value) [DEBUG] 17:05:02: EvohomeAPI set to 0, so aborting

© 2024. Nice-Polska Sp. z o.o.Privacy policyTerms & ConditionsFeedback