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.

MiCasaVerde Vera UI5, UI6, UI7 Plugin

Questions and comments specific to a particular plugin should go here.
holdestmade
Experienced User
Posts: 182
Joined: Thu Dec 04, 2014 2:44 pm

Re: MiCasaVerde Vera UI5, UI6, UI7 Plugin

Post by holdestmade »

That seemed to be working, lots in the log, processing, building and files written but then the error below.

19:27:57 Traceback (most recent call last):
19:27:57 Python script "3", line 3, in <module>
19:27:57 vera_build.build_files('192.168.1.205', log=True)
19:27:57 File "C:\Program Files (x86)\EventGhost\lib27\site-packages\micasaverde_vera\vera_build.py", line 1110, in build_files
19:27:57 make_templates(found_devices, found_services)
19:27:57 File "C:\Program Files (x86)\EventGhost\lib27\site-packages\micasaverde_vera\vera_build.py", line 554, in make_templates
19:27:57 device_id = convert_type_to_id(device_type)
19:27:57 File "C:\Program Files (x86)\EventGhost\lib27\site-packages\micasaverde_vera\vera_build.py", line 957, in convert_type_to_id
19:27:57 in_type[3][:1].upper() + in_type[3][1:] + in_type[4]
19:27:57 IndexError: list index out of range
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: MiCasaVerde Vera UI5, UI6, UI7 Plugin

Post by kgschlosser »

ok what I am going to do is add a bunch of exception catching to the build script.

I have already made it multi threaded and this greatly improves the build speed. I am thinking I am going to only pull data from a single place instead of 2. this is going to make it less complicated. I no longer really need to pull data from one of the places. I have found that it is redundant and is at a much higher risk of having a change made to it by MIOS.
What I am seeing from that error is that the problem is in the service id and service type that is in the files. I have now come across this in a couple of spots. I am going to make up a testing suite that is going to use your specific files to feed the data in. This is going to help me rout out possible problems.

what I have found with the dervice id and the service type is that most of them conform to this kind of a layout

service type - urn:mios.com:SwitchPower:1
service id - urn:mios.com:SwitchPower1

I have found problems like this

service type - urn:mios.com:SwitchPower:
service id - urn:mios.com:SwitchPower1
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: MiCasaVerde Vera UI5, UI6, UI7 Plugin

Post by kgschlosser »

update on this.

I have yet to update the repo. but that will be very soon.

I have rewritten a huge portion of the build process and I am hoping that I have all of the issues taken care of.. I want to say thanks to @holdestmade for helping out with the debugging process. the contribution of data and errors has helped me discover most if not all of the "quirks" (lack of standardization by the MIOS team). I managed to squeeze some added speed out of the building process. I have gone from 45 seconds down to 15 seconds. HUGE improvement. and I have gotten the startup speed (files already built) down to 190 milliseconds from 350 milliseconds another HUGE improvement.

I have also revamped the event system for it. it functions much in the same way as the EG notification system does. the notification system in EG has been tested and is without flaw so why not model the one for this after it was my thought. I have made it in a manner that makes it really easy to use and allows for wild carding so if you wanted to know if the dimmer level has changed for any switch you do not have to register a callback for each and every switch. one registration will do them all.

I have also written a full interface for scenes. This is to create and change the scenes on the Vera. I do plan on writing one that is built into the library and will not make use of the internal one to the Vera.

I also fixed the startup of the builder so it builds properly when you startup the library. I also added automatic updating of the files when you add a new plugin to the vera
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: MiCasaVerde Vera UI5, UI6, UI7 Plugin

Post by kgschlosser »

I have uploaded the changes to my repo. It seems to be working very well when I am testing it. Tho I do not have a whole lot on the Vera as of yet. I am going to add all of my light switches back on tomorrow
If you like the work I have been doing then feel free to Image
holdestmade
Experienced User
Posts: 182
Joined: Thu Dec 04, 2014 2:44 pm

Re: MiCasaVerde Vera UI5, UI6, UI7 Plugin

Post by holdestmade »

Brilliant, thanks, I'll give it a try later.

No problem helping with the debugging, I'll benefit once it's up and running, I appreciate all the work you're putting in even though I know you hate the Vera. I am enjoying learning from you as I go !

Cheers.
holdestmade
Experienced User
Posts: 182
Joined: Thu Dec 04, 2014 2:44 pm

Re: MiCasaVerde Vera UI5, UI6, UI7 Plugin

Post by holdestmade »

OK, so the build now runs without error and creates lots of files in devices and services (attached).

But when I try to run:

from micasaverde_vera import Vera
vera = Vera('192.168.1.205')


I get:

09:41:36 Traceback (most recent call last):
09:41:36 Python script "19", line 5, in <module>
09:41:36 vera = Vera('192.168.1.205')
09:41:36 File "C:\Program Files (x86)\EventGhost\lib27\site-packages\micasaverde_vera\__init__.py", line 228, in __new__
09:41:36 from micasaverde_vera.core.devices import home_automation_gateway_1
09:41:36 ImportError: No module named devices

Cheers
Attachments
MiCasaVerde_Vera.zip
(255.39 KiB) Downloaded 63 times
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: MiCasaVerde Vera UI5, UI6, UI7 Plugin

Post by kgschlosser »

YOU will need to update the library from github in order for this to work. there were some problems which i found and have now fixed. make sure you delete the generated files so the new library will build updated ones.

I have not tested it to run in EG as of yet..I am going to have to make some changes to get it to work inside of EG. like setting the sys.path to point to the built files folder and add a namespace. I'm not sure how I am going to go about getting that piece of it to work inside of EG

It could be my fault. i don't remember if i said that you have to download and install a python 2.7, I'm sorry for the confusion on that portion of it.

But you will have to install it into the libs/site-packages folder of the python installation.


and if you would like i can key up some tests so we can put the various bits through it's paces. and I can also give you the ability to manually control by typing in commands.

if you decide to install python you will need to install requests into it by doing the following

if you use the default python install folder type in this command at a command prompt

Code: Select all

c:\Python27\Scripts\pip install requests
The code below will get some output from the Vera and also generate events for items you change when using the Vera UI or directly changing the device.

Code: Select all

IP_ADDRESS = 'YOUR_IP_ADDRESS'

import micasaverde_vera

DEVICE_NUMBER = None

# micasaverde_vera.build_files(IP_ADDRESS, log=True)

def test_callback(event):
    split_event = event.event.split('.')

    def check_event():
        if split_event[-1] == 'Changed':
            print
            print'--------------------------------------------'
            print event.event
            attr_name = split_event[-2:][0]
            try:
                print event.name
            except AttributeError:
                print 'NO NAME'
            print attr_name, '=', getattr(event, attr_name)
            print'--------------------------------------------'
            print

    if split_event[0] == 'Device':
        if split_event[1] == str(DEVICE_NUMBER):
            check_event()

    elif split_event[0] == 'Room':
        check_event()

vera = micasaverde_vera.Vera(IP_ADDRESS)
event_handler = vera.bind('*', test_callback)
vera.start_polling(0.2)

while True:
    command = [
        raw_input('key in commands here. the last line must be RUN\n\n')]
    while command[-1] != 'RUN' and not command[-1].endswith('RUN'):
        command += [raw_input('')]
    command = '\n'.join(command)[:-3]

    try:
        exec command
    except:
        import traceback
        traceback.print_exc()
It also allows for control tho you have to key in the direct code. I setup the command entry to accept multiple lines. the last line has to be RUN.

below is a little set of commands you can copy and paste after the above script runs. you will need to change out the SOME_DEVICE to a device name. I would set up a virtual switch and change the name of the switch to something other then VirtualSwitch and use that. or you can put in the device number if you like doesn't matter. But this example will turn the switch on and off as well as change the room name that is attached to the switch. The time.sleep() statements are only in there so you can see the changes happening if you have the vera UI open. don't worry it sets everything back. but set up a test room and a test virtual switch. put the switch in that room.

the last thing this script does is prints off a list of all available commands and variables. the items in that list that have __ at the start of them are for python purposes only and won't do anything for the Vera. typically all of the items in the list that are before the items that start with __ are the variables you can set.it also will list off only the functions and what has to be passed to to them to make them work.

Code: Select all

import time

device = vera.get_device('SOME_DEVICE')
DEVICE_NUMBER = device.id
NAME = device.name
device.set_target(0)
time.sleep(2.0)
device.set_target(1)
print device.name
device.name = 'TEST SWITCH'
time.sleep(2.0)
device.name = NAME
if device.room is not None:
    print device.room.name
NAME = device.room.name
device.room.name = 'TEST_ROOM_NAME'
time.sleep(2.0)
device.room.name = NAME
print
print 'All Commands/Variables'
print '=' * 80
for item in dir(device):
    print item
print '=' * 80
print
print
print 'Available Functions'
print '=' * 80
for key, value in device.argument_mapping.items():
    print key + '(' + ', '.join(k for k in value.keys() if k != 'orig_name') + ')'
RUN
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: MiCasaVerde Vera UI5, UI6, UI7 Plugin

Post by kgschlosser »

ok so you can scratch those last couple of posts. i got it working properly in EG.

you will have to download the new library and you are also going to have to delete the generated files.
If you like the work I have been doing then feel free to Image
holdestmade
Experienced User
Posts: 182
Joined: Thu Dec 04, 2014 2:44 pm

Re: MiCasaVerde Vera UI5, UI6, UI7 Plugin

Post by holdestmade »

Nice one, I'll give it a try tonight.

I did try using python last night and it worked fine for the couple of commands I tried.

Cheers.
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: MiCasaVerde Vera UI5, UI6, UI7 Plugin

Post by kgschlosser »

There isn't to much to finish up on this stage of it. I have to write the mechanics to send any updated scene information to the Vera. and I also have to finish up with the weather settings.

I have one bug that I have to sore out. but I believe I know what is causing it. I have to go sifting throuhg the data being sent back and forth from the Vera to know for sure. Then i have to figure out how to fix it LOL..
If you like the work I have been doing then feel free to Image
holdestmade
Experienced User
Posts: 182
Joined: Thu Dec 04, 2014 2:44 pm

Re: MiCasaVerde Vera UI5, UI6, UI7 Plugin

Post by holdestmade »

Hey,

So tried it in EG and the build went OK but got this error when trying:

Code: Select all

from micasaverde_vera import Vera
vera = Vera('192.168.1.205')
20:50:32 Traceback (most recent call last):
20:50:32 Python script "9", line 3, in <module>
20:50:32 vera = Vera('192.168.1.205')
20:50:32 File "C:\Program Files (x86)\EventGhost\lib27\site-packages\micasaverde_vera\__init__.py", line 226, in __new__
20:50:32 os.path.join(vera_build.BUILD_PATH, '__init__.py')
20:50:32 IOError: [Errno 2] No such file or directory


Where does the external plugins folder (or __init__.py in there) go ?

I tried it in the %appdata%\MiCasaVerde_Vera folder and got this error:

20:50:39 Traceback (most recent call last):
20:50:39 Python script "9", line 3, in <module>
20:50:39 vera = Vera('192.168.1.205')
20:50:39 File "C:\Program Files (x86)\EventGhost\lib27\site-packages\micasaverde_vera\__init__.py", line 281, in __new__
20:50:39 return NewVera(ip_address)
20:50:39 File "C:\Program Files (x86)\EventGhost\lib27\site-packages\micasaverde_vera\__init__.py", line 239, in __init__
20:50:39 _Vera.__init__(self, ip)
20:50:39 File "C:\Program Files (x86)\EventGhost\lib27\site-packages\micasaverde_vera\__init__.py", line 344, in __init__
20:50:39 self.devices = self.__build(Devices, 'devices', data)
20:50:39 File "C:\Program Files (x86)\EventGhost\lib27\site-packages\micasaverde_vera\__init__.py", line 397, in __build
20:50:39 data.pop(key, None)
20:50:39 File "C:\Program Files (x86)\EventGhost\lib27\site-packages\micasaverde_vera\devices.py", line 35, in __init__
20:50:39 self._devices += [self.__build(device)]
20:50:39 File "C:\Program Files (x86)\EventGhost\lib27\site-packages\micasaverde_vera\devices.py", line 53, in __build
20:50:39 'micasaverde_vera.core.devices.' + mod_name
20:50:39 File "importlib\__init__.pyc", line 38, in import_module
20:50:39 KeyError: 'micasaverde_vera.core.devices.'


Cheers
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: MiCasaVerde Vera UI5, UI6, UI7 Plugin

Post by kgschlosser »

did you make sure you deleted the one in the python installation??..

EG will load the one from there which would be the wrong one.
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: MiCasaVerde Vera UI5, UI6, UI7 Plugin

Post by kgschlosser »

ok well i figured out that bug problem. and I have gotten the setting of variables to work properly now.. but i seem to have broken the events :shock:
I should have the events working again tomorrow. it was a pretty large change to make it play nice with the Vera.

The problem was this. I specifically encountered it with the Virtual Switch plugin. But that plugin has 2 Status variables. One is located in the virtual switch service and the other is located in the switch power 1 service. and both need to be set in order for the switch to change state properly. But because of the variable name being the same I was lo longer able to monitor changes by variable name alone as this caused a repeating event issue.

and when you use the switch from inside of the vera UI it would work properly the problem only occurred when you changed the status from the library because one would show as on and the other would show as off.
If you like the work I have been doing then feel free to Image
holdestmade
Experienced User
Posts: 182
Joined: Thu Dec 04, 2014 2:44 pm

Re: MiCasaVerde Vera UI5, UI6, UI7 Plugin

Post by holdestmade »

Hi,

I deleted the python package but still had the error but think I found out what it was.

If the %appdata%\MiCasaVerde_Vera folder exists, even though it's empty, the __init__.py file is not written. If I delete the whole folder, the devices and services folder are created and filled and an __init__.py file is written there too.

There's something odd about the build process as well. All the files are been written to %appdata%\MiCasaVerde_Vera but in the log, for devices, only up to remote_control_1.py is shown and for services only up to tuning_1.py is shown (see below). I let it run for 20 mins to make sure it had finished, could you maybe add a message in the log once the build process is complete ?

I've attached all the files that are written.

Also when I run:

Code: Select all

from micasaverde_vera import Vera
vera = Vera('192.168.1.205')
It starts the build process again and has this error:

08:56:40 .Traceback (most recent call last):
08:56:40 Python script "26", line 3, in <module>
08:56:40 vera = Vera('192.168.1.205')
08:56:40 File "C:\Program Files (x86)\EventGhost\lib27\site-packages\micasaverde_vera\__init__.py", line 208, in __new__
08:56:40 sys.stdout.flush()
08:56:40 AttributeError: StdOut instance has no attribute 'flush'


Hope this all makes sense, let me know if you need me to try something else

Cheers

08:56:55 Building Templates....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\avmisc_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\serial_port_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\siren_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\binary_light_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\scene_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\generic_io_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\rfx_meter_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\z_wave_network_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\ir_device_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\hvac_zone_thermostat_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\usbuirt_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\temperature_sensor_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\motion_sensor_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\ule_network_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\lprf_network_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\insteon_network_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\generic_sensor_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\flood_sensor_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\relay_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\dimmable_light_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\door_lock_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\info_viewer_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\uv_sensor_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\energy_calculator_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\lwrf_remote_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\wind_sensor_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\bluetooth_network_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\combo_device_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\rfxtrx_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\scene_controller_led_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\irrigation_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\schedule_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\smoke_sensor_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\digital_security_camera_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\digital_security_camera_2.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\window_covering_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\light_sensor_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\vera_connect_wwn_structure_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\scale_sensor_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\v_switch_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\vera_connect_wwn_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\ati_remote_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\deus_ex_machina_ii_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\wfa_device_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\serialportroot.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\vera_connect_wwn_deauth_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\heater_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\temp_leak_sensor_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\eco_switch_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\scene_controller_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\keypad_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\power_meter_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\x_1_0_chacon_remote_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\barometer_sensor_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\site_sensor_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\humidity_sensor_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\ir_transmitter_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\doorbell_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\door_sensor_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\home_automation_gateway_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\weather_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\zigbee_network_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\dimmable_rgb_light_2.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\serial_port_root_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\rain_sensor_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\dimmable_rgb_light_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\devices\remote_control_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\ati_remote_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\irrigation_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\tv_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\keypad_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\insteon_network_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\switch_power_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\scale_sensor_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\vera_connect_wwn_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\uv_sensor_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\hvac_user_operating_mode_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\job_handler_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\ule_network_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\doorbell_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\rain_sensor_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\volume_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\dimming_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\digital_security_camera_settings_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\rfxtrx_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\temperature_setpoint_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\hvac_operating_state_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\info_viewer_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\security_sensor_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\door_lock_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\wind_sensor_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\z_wave_network_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\eem_plugin_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\scene_controller_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\barometer_sensor_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\numeric_entry_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\usbuirt_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\energy_metering_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\temperature_sensor_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\color_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\hvac_fan_operating_mode_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\input_selection_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\zigbee_network_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\ir_device_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\wmc_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\misc_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\serial_port_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\lwrf_remote_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\v_switch_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\pip_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\crossdomain.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\x_1_0_chacon_remote_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\camera_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\rfx_metering_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\program_logicc.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\bluetooth_network_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\protection_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\humidity_sensor_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\media_navigation_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\home_automation_gateway_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\scene_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\program_logic_eg.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\program_logic_ts.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\video_adjustment_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\pan_tilt_zoom_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\discrete_power_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\deus_ex_machina_ii_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\weather_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\lprf_network_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\toggle_power_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\ha_device_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\menu_navigation_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\energy_calculator_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\light_sensor_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\window_covering_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\scene_controller_led_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\fan_speed_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\eco_switch_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\schedule_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\digital_security_camera_still_image_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\camera_motion_detection_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\generic_sensor_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\ir_transmitter_1.py ....
08:56:55 Writing File C:\Users\SIMON\AppData\Roaming\MiCasaVerde_Vera\services\tuning_1.py ....
Attachments
MiCasaVerde_Vera.zip
(241.6 KiB) Downloaded 71 times
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: MiCasaVerde Vera UI5, UI6, UI7 Plugin

Post by kgschlosser »

ahhhh ok I know what is going on.. It has to deal with the thread that is running the build process. because in that thread is the message that the build process started and finished. but because of that error you never get to see the finished message. I was always manually running the build process before starting the library.

The crappy thing is the only way to do a check to make sure everything in the folder is correct would be to download all of the files and create the file names. to be able to check. the downloading of the files is what takes the longest amount of time. so i just have to check to see if the directory exists. and if it does exist then it assumes the files have been built.


I guess i can change this up so that if any import from core.devices fails it will start a rebuild of the files.
If you like the work I have been doing then feel free to Image
Post Reply