Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Vera Plugin (Retired)

Questions and comments specific to a particular plugin should go here.
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Vera Plugin

Post by kgschlosser »

anyone using a sprinkler control system???...



I think i am going to tackle that next.


K
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Vera Plugin

Post by kgschlosser »

minor text change


K
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Vera Plugin

Post by kgschlosser »

hey Pako,

would love it if you would add a sub category for the plugins for lighting control systems, I have seen a couple of plugins for them and i think it's a small worth while addition


K
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Vera Plugin

Post by kgschlosser »

ok CPU tests are in, 100 ms = 5% cpu on an 8 core 3.8 ghz

2 seconds = .5 on the same

.5 seconds is at about 2%

K
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Vera Plugin

Post by kgschlosser »

ok,


update... I have tested this thing as much as i can with the devices i have. it seems as tho everything is operating right. is something is moofed up lemme know please.


i dont know to fix it unless you tell me.

thanks K
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Vera Plugin

Post by kgschlosser »

again more text changes


K
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Vera Plugin

Post by kgschlosser »

23:44:04 MiCasaVerdeVera.Weather.High-Temperature.Temperature Sensor.Temperature.48
23:44:04 MiCasaVerdeVera.Weather.World.Devices.WindChill.40
23:44:04 MiCasaVerdeVera.Weather.World.Devices.Pressure.30.11
23:44:04 MiCasaVerdeVera.Weather.World.Devices.Feels.40
23:44:04 MiCasaVerdeVera.Weather.World.Devices.Condition.Partly Cloudy
23:44:04 MiCasaVerdeVera.Weather.World.Devices.Dew.3
23:44:04 MiCasaVerdeVera.Weather.Temperature.Temperature Sensor.Temperature.40.3
23:44:04 MiCasaVerdeVera.Weather.Humidity.Humidity Sensor.Humidity.21



weather event gen looks good

23:47:26 MiCasaVerdeVera.Office.Media-Recessed.Dimmable Light.Status.On
23:47:26 MiCasaVerdeVera.Office.Media-Recessed.Dimmable Light.Watts.240
23:47:26 MiCasaVerdeVera.Office.Media-Recessed.Dimmable Light.Level.100

dimmer event gen OK

23:48:32 MiCasaVerdeVera.Outside-Back.Lower-Deck.Switch.Status.On
23:48:32 MiCasaVerdeVera.Outside-Back.Lower-Deck.Switch.Watts.60

switch

23:49:13 MiCasaVerdeVera.Hallway.Main.Thermostat.HeatSetPoint.72
23:49:15 MiCasaVerdeVera.Hallway.Main.Thermostat.Fan.On
23:49:15 MiCasaVerdeVera.Hallway.Main.Thermostat.HVACState.Heating

HVAC




K
If you like the work I have been doing then feel free to Image
WinoOutWest
Posts: 24
Joined: Wed Dec 09, 2009 10:49 pm

Re: Vera Plugin

Post by WinoOutWest »

Hey K,
Installed your latest and it seems to be working much better.

Shutdown performs as expected and it no longer seems to be a resource hog or throwing a million events!

Thanks for your work on this.

I will continue to test tomorrow.
Cheers!
Darren
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Vera Plugin

Post by kgschlosser »

no worries m8, was actually a minor fix.

K
If you like the work I have been doing then feel free to Image
kkl
Experienced User
Posts: 317
Joined: Wed May 04, 2011 9:32 pm

Re: Vera Plugin

Post by kkl »

kgschlosser, I really thank you for your work on this plugin. Unfortunately, I'm having trouble updating to your most recent posted version.

1) Since you've really created a new version of this plugin, it would be better if you created a new topic for it so that you can provide instructions and update the current version in the first post.

2) Is the Lua code in Vera no longer needed?

3a) If I place the Feb 6 version 1.9b in its own plugin folder, I can't find it in the Add Plugin dialog.
3b) If I replace this version,
# $LastChangedDate: 2015-10-04 19:42:00 -0600$
# $LastChangedRevision: 7b $
# $LastChangedBy: K $
then I get a bunch of errors at EG startup,
Plugin: MiCasaVerde Vera UI5 UI7
Error starting plugin: MiCasaVerde Vera UI5 UI7
Traceback (most recent call last) (1710):
File "C:\Program Files (x86)\EventGhost\eg\Classes\PluginInstanceInfo.py", line 177, in Start
self.instance.__start__(*self.args)
File "C:\Program Files (x86)\EventGhost\plugins\Vera-original\__init__.py", line 608, in __start__
self.server = self.Server.Start(ip=ip, port=port, plugin=self)
File "C:\Program Files (x86)\EventGhost\plugins\Vera-original\__init__.py", line 906, in Start
self.RunningUpdate = self.ConnectHTTPAPI(ip, port)
File "C:\Program Files (x86)\EventGhost\plugins\Vera-original\__init__.py", line 917, in ConnectHTTPAPI
return self.VERA_HTTP_API.connect(ip=self.VeraIP, port=self.VeraPort)
File "C:\Program Files (x86)\EventGhost\plugins\Vera-original\__init__.py", line 1006, in connect
self.CONNECTED = PN("VERA_HTTP_API", "Connection Successful") if self.send('ComRoomList') \
File "C:\Program Files (x86)\EventGhost\plugins\Vera-original\__init__.py", line 1034, in send
Request = self.SendData(Request)
File "C:\Program Files (x86)\EventGhost\plugins\Vera-original\__init__.py", line 1044, in SendData
sock.connect((self.ip, self.port))
File "<string>", line 1, in connect
TypeError: an integer is required
Any help would be appreciated.
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Vera Plugin

Post by kgschlosser »

are you deleting the .pyc file?


You should be and just leaving the .py

i am also going to maybe change the guid, don't know, others are running without a problem, lemme set up a new VM and a fresh install of EG and see what i get, give me 15 minutes to do this for ya


Thanks


K
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Vera Plugin

Post by kgschlosser »

also, this version is a spawn of what m19 started and this is what it has blossomed into, there is no real need to create yet another thread for the same kind of plugin because this is a modification of what has already been made.



thanks again


K
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Vera Plugin

Post by kgschlosser »

ok sorry about the time quote, i just had to copy a VM to get this thing going the same way, it's working fine for me.
not 1 error

NOTE this is NOT backwards compatible with any other version of the vera plugin, i should have stated that.


best results are to remove and reinstall the new plugin, it is going to show as the same name.

unless i should change it.

removal is a complete deletion of the py file and the pyc file in the plugins folder and the addition into the same folder if wanted as the __init__.py


EOL

K
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Vera Plugin

Post by kgschlosser »

Plugin: MiCasaVerde Vera UI5 UI7
Error starting plugin: MiCasaVerde Vera UI5 UI7
Traceback (most recent call last) (1710):
File "C:\Program Files (x86)\EventGhost\eg\Classes\PluginInstanceInfo.py", line 177, in Start
self.instance.__start__(*self.args)
File "C:\Program Files (x86)\EventGhost\plugins\Vera-original\__init__.py", line 608, in __start__
self.server = self.Server.Start(ip=ip, port=port, plugin=self)
File "C:\Program Files (x86)\EventGhost\plugins\Vera-original\__init__.py", line 906, in Start
self.RunningUpdate = self.ConnectHTTPAPI(ip, port)
File "C:\Program Files (x86)\EventGhost\plugins\Vera-original\__init__.py", line 917, in ConnectHTTPAPI
return self.VERA_HTTP_API.connect(ip=self.VeraIP, port=self.VeraPort)
File "C:\Program Files (x86)\EventGhost\plugins\Vera-original\__init__.py", line 1006, in connect
self.CONNECTED = PN("VERA_HTTP_API", "Connection Successful") if self.send('ComRoomList') \
File "C:\Program Files (x86)\EventGhost\plugins\Vera-original\__init__.py", line 1034, in send
Request = self.SendData(Request)
File "C:\Program Files (x86)\EventGhost\plugins\Vera-original\__init__.py", line 1044, in SendData
sock.connect((self.ip, self.port))
File "<string>", line 1, in connect
TypeError: an integer is required

you have to delete the plugin from the EG tree, i am terribly sorry for this, i know if you have it laced in it will require some time to find all the actions and remove them.


it was necessary to make this work 1 million percent better.

then close EG and restart it,

then add the plugin again, you will see a whole new world of what is available now and won't be so mad at me ;-D



K
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Vera Plugin

Post by kgschlosser »

remember this is a complete self contained plugin.


NO NEED TO ADD THE STARTUP LUA CODE.

REMOVE IT, NO LONGER NEEDED.

that is the major modification, no more 5 second eg event delay, down to about 150 ms


EOL

K
If you like the work I have been doing then feel free to Image
Post Reply