I'm bought a Hybrid car and i would like to automate everything in Domoticz so i can see the power consumption/usage. It is a company car so i can get a refund on all the power usage for charging at home.
I would like to have a wireless power meter for that socket only.
I have the following 16A switch: http://www.klikaanklikuit.nl/shop/nl/aws-3500
The car charges at 10A so it should be safe.
The car has build in Wifi but it cannot connect to my Wireless. It is a stand alone AP. So i made a script to detect the presence of the Wifi SSID.
Code: Select all
#!/bin/bash
iwlist wlan0 scan | grep Immagetu_GSM1
if [ $? -eq 0 ]
then
echo "The car is in the driveway, let's check if we have to do something in Domoticz."
curl "http://192.168.0.204:8080/json.htm?type=devices&rid=451" | grep '"Status" : "On",'
if [ $? -eq 0 ]
then
echo "The car was allready here :)"
else
echo "Aha! You just got home, let's turn the switch on"
curl "http://192.168.0.204:8080/json.htm?type=command¶m=switchlight&idx=451&switchcmd=On"
fi
else
echo "The car is gone, let's check if it was already gone"
curl "http://192.168.0.204:8080/json.htm?type=devices&rid=451" | grep '"Status" : "Off",'
if [ $? -eq 0 ]
then
echo "The car was already gone"
else
echo "Oh, someone took the car just now, let turn the switch off"
curl "http://192.168.0.204:8080/json.htm?type=command¶m=switchlight&idx=451&switchcmd=Off"
fi
fi
But i also want to generate an overview in Domoticz giving me the total power usage. Anyone have any suggestions?
I have the RFXCom 433 and the mysensors gateway (but i do not prefer to use home build stuff for 240v appliances)