This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Comments
what is worse?
Btw. Just receved email, homey is on its wat. So... You Are Right.
Enter ENECEO credentials = Subscription = paid = needed.
But the API is free <100 connections.
Step 4: Use by end users
You can just say "Ok Homey, I'm cold" and make a flow to up the thermostat 1,5 degrees
You need a Toon abo to get it working? No beta test program?
I use https://github.com/rvdm/toon with the already written script toonclient.py which allow me to do the following things with the toon:
- Get current temperature
- Get current power usage
- Get current active profile (home/away/sleeping/vacation)
- change temp to xx (numeric)
- change active profile
I run a cronjob for each of the first 3 options above on a mac mini inside my home network and create files in a local webserver, after that I use the http request app from the appstore to pull these numbers from the local webserver.
I am still trying to find a proper way to change the temperature and active profile, will work on this tomorrow.
--------
EDIT:
bash-3.2# ./toonclient.py -U <username> -P <password> -t
current_temp:22.74
bash-3.2# ./toonclient.py -U <username> -P <password> -p
current_powerusage:284
bash-3.2# ./toonclient.py -U <username> -P <password> -c
active_state:3
got a bash script running in cron every minute doing the following:
#!/bin/bash
# Get toon temperature
API_TEMP=`/opt/toon/toonclient.py -U <username> -P <password> -t`
if [ "${API_TEMP}" ]; then
TEMP="{\"id\":1,\"temperatuur\":[{\"current\":$API_TEMP}]}"
echo $TEMP > "/Library/WebServer/Documents/temp.html"
fi
# Get toon power usage
API_POWER=`/opt/toon/toonclient.py -U <username> -P <password> -p`
if [ "${API_POWER}" ]; then
POWER="{\"id\":1,\"power\":[{\"current\":$API_POWER}]}"
echo $POWER > "/Library/WebServer/Documents/power.html"
fi
# Get toon power state
API_STATE=`/opt/toon/toonclient.py -U <username> -P <password> -c`
if [ "${API_STATE}" ]; then
STATE="{\"id\":1,\"state\":[{\"current\":$API_STATE}]}"
echo $STATE > "/Library/WebServer/Documents/state.html"
fi
And for the temperature I currently have a working flow (testing):
https://www.dropbox.com/s/22dr0ew24bs7v2x/Screenshot 2016-05-02 10.35.40.png?dl=0
http://192.168.2.5/temp.html
{}
$.[0][current]
temperatuur
https://www.dropbox.com/s/uoe1j8mghoz8abp/Screenshot 2016-05-02 10.31.09.png?dl=0
This works, homey tells me what temperature it is in the house plus I get a notification on my phone. With this workaround I can start creating more flows.
I will come back with changing temp/state later.
Nice. I wrote that script, and would be happy to get it working in Homey. Mine is crashed now (and I need to get my Z-wave stuff working) - but I'd really like to see temperature control and metering in there. What I don't like, is requiring a server to be on, so I'd much rather do it on toon (or somewhere else).
Ik heb op het Toon forum maar een verzoekje geplaatst, zodat Athom verder aan de app kan werken.
What is the current status on the toon app?
Well, yeah, but as said, it has to be enabled on all Toon devices in order to work.