Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. ewillems
    E
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    ewillems

    @ewillems

    0
    Reputation
    10
    Posts
    846
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    ewillems Follow

    Best posts made by ewillems

    This user hasn't posted anything yet.

    Latest posts made by ewillems

    • RE: UniPi - Homeseer plugin

      Hi Jellee,

      I've checked your changes, but the only change I've found is in the CreateRoot sub. The other changes are all because of search/replace. In the CreateDevice subs, you've replaced it with the same code:

      Dim dvref = dv.Ref(hs)
      

      I've tested the script in my environments by deleting the root device, but was not able to reproduce your issue. My HS version is the same, 3.0.0.152. I've also checked the helpfiles (http://homeseer.com/support/homeseer/HS ... class1.htm), the property Ref should exists and hold the reference to the root device.

      I've also compared my current version with the first version. There is a bug in that version: The LastUpdate value was constantly changing. You should remove the "hs.SetDeviceValue.." line in Sub UpdateDeviceValue to fix this bug.

      Sub UpdateDeviceValue(DeviceAddress as String, DeviceType as String, Value as Double)
              Dim dvRef = hs.GetDeviceRef(DeviceAddress)
      '       hs.SetDeviceValueByRef(dvRef, Value, True)  <== Remove this line
              Select Case DeviceType
      
      

      Hope that helps!

      Regards,
      Erwin

      posted in HomeSeer
      E
      ewillems
    • RE: UniPi - Homeseer plugin

      Hi Jellee,

      Great to see that there is at least one happy user using my software. Thanks for fixing this issue and sending back your version (that's the spirit of Open Source!). I should compare it with my version. If I remember correctly I did some little improvements on my side. I will combine these with your version. Expect a version 0.2 soon!

      Just curious: Do you have one or more temperature sensors? Were they auto detected?

      Thanks!

      Erwin

      posted in HomeSeer
      E
      ewillems
    • RE: Soft wiring digital input to a relay

      What is the best way to "soft wire" a digital input to a relay?

      I want to monitor a digital input port and replicate that state to a relay (if input is On, turn relay On. If input if Off, turn relay Off).

      Right now I have the following code, but I'm not sure that's the most optimal solution:

      #!/usr/bin/python
      
      import RPi.GPIO as GPIO
      from time import sleep
      
      from jsonrpclib import Server
      # connect to unipy
      s=Server("http://localhost/rpc")
      
      # Setup GPIO
      GPIO.setmode(GPIO.BCM)
      port= 27
      GPIO.setup(port, GPIO.IN, pull_up_down=GPIO.PUD_UP)
      
      print "Test port",port
      
      prevstate=False
      try:
              while True:
                      currstate=GPIO.input(port)
                      if currstate <> prevstate:
                              if currstate:
                                      print "Port",port,"is 0"
                                      s.relay_set(1,0)
                              else:
                                      print "Port",port,"is 1"
                                      s.relay_set(1,1)
                                      sleep(0.5)
                      prevstate=currstate
                      sleep(0.1)      
      finally:
              GPIO.cleanup()
      
      print "done"
      
      
      posted in Official EVOK API
      E
      ewillems
    • Soft wiring digital input to a relay

      What is the best way to "soft wire" a digital input to a relay?

      I want to monitor a digital input port and replicate that state to a relay (if input is On, turn relay On. If input if Off, turn relay Off).

      Right now I have the following code, but I'm not sure that's the most optimal solution:

      #!/usr/bin/python
      
      import RPi.GPIO as GPIO
      from time import sleep
      
      from jsonrpclib import Server
      # connect to unipy
      s=Server("http://localhost/rpc")
      
      # Setup GPIO
      GPIO.setmode(GPIO.BCM)
      port= 27
      GPIO.setup(port, GPIO.IN, pull_up_down=GPIO.PUD_UP)
      
      print "Test port",port
      
      prevstate=False
      try:
              while True:
                      currstate=GPIO.input(port)
                      if currstate <> prevstate:
                              if currstate:
                                      print "Port",port,"is 0"
                                      s.relay_set(1,0)
                              else:
                                      print "Port",port,"is 1"
                                      s.relay_set(1,1)
                                      sleep(0.5)
                      prevstate=currstate
                      sleep(0.1)      
      finally:
              GPIO.cleanup()
      
      print "done"
      
      
      posted in Official EVOK API
      E
      ewillems
    • RE: UniPi - Homeseer plugin

      I've written a script to integrate UniPi to HomeSeer (home automation software).

      [attachment=1:opzs3q6l]UniPi - Homeseer.png[/attachment:opzs3q6l]

      Features

      • Read relay status
      • Control relays
      • Read inputs (digital and analog)
      • Modify Analog output
      • Auto detect one-wire sensors

      To install:

      • Extract the attached Unipi-v0.1.zip and follow instructions in install.txt
      posted in HomeSeer
      E
      ewillems
    • UniPi - Homeseer plugin

      I've written a script to integrate UniPi to HomeSeer (home automation software).

      [attachment=1:opzs3q6l]UniPi - Homeseer.png[/attachment:opzs3q6l]

      Features

      • Read relay status
      • Control relays
      • Read inputs (digital and analog)
      • Modify Analog output
      • Auto detect one-wire sensors

      To install:

      • Extract the attached Unipi-v0.1.zip and follow instructions in install.txt
      posted in HomeSeer
      E
      ewillems
    • RE: Suggestions to make this product even better!

      Just want you to give some suggestions to make the Unipi even better! First, thanks for this great development board. It makes it really easy to connect external devices.

      • It would be great if you add some GND connectors (use an alternate color, like the current 12V connector). This makes it easier to connect external devices
      • Add a 5V power supply to the shop and to the UniPi complete set.
      • Add extra (alternative) connectors for 5V power supply, so there's no need to search for an exact matching power supply connector.
      • Plastic housing, fitted for Din Holder
      posted in General Discussion
      E
      ewillems
    • Suggestions to make this product even better!

      Just want you to give some suggestions to make the Unipi even better! First, thanks for this great development board. It makes it really easy to connect external devices.

      • It would be great if you add some GND connectors (use an alternate color, like the current 12V connector). This makes it easier to connect external devices
      • Add a 5V power supply to the shop and to the UniPi complete set.
      • Add extra (alternative) connectors for 5V power supply, so there's no need to search for an exact matching power supply connector.
      • Plastic housing, fitted for Din Holder
      posted in General Discussion
      E
      ewillems
    • RE: [Fixed] Analog output: Unstable output voltage

      Just want to share my experience with the analog output:
      I had mine external powered (AOV and AOG). The voltage was about 16V. I thought it was stable enough (15.94V ~ 16.30V) but I was not able to get the output AO stable. The output voltage was flapping between 2V to 9V with Analog Output 1 set to 5 (evok api).

      My first guess was a CPU which was not able to handle the PWM. However, the evok api was build by the Unipi guys, so I couldn't believe that was the issue.

      Then I found this brand new wiki: http://unipi.technology/wiki/Using_Analog_Output. I wired AOV to 12V (orange connector) and A0G to AI1- (which is internally connected to GND). Check the wiki for wiring schema. I checked the 12V output and was surprised how stable it was! That output was 12.17V stable. Then I measured the output AOV / AOG with Analog Output 1 set to 7. After adjusting the board trimmer, the Analog Output works as expected!

      Extra bonus:

      • No need for external power (12V)
      • Output is also measured using AI1+, so I can check if the voltage is still as expected.

      Hope this helps!

      posted in UniPi 1 - HW Q&A
      E
      ewillems
    • [Fixed] Analog output: Unstable output voltage

      Just want to share my experience with the analog output:
      I had mine external powered (AOV and AOG). The voltage was about 16V. I thought it was stable enough (15.94V ~ 16.30V) but I was not able to get the output AO stable. The output voltage was flapping between 2V to 9V with Analog Output 1 set to 5 (evok api).

      My first guess was a CPU which was not able to handle the PWM. However, the evok api was build by the Unipi guys, so I couldn't believe that was the issue.

      Then I found this brand new wiki: http://unipi.technology/wiki/Using_Analog_Output. I wired AOV to 12V (orange connector) and A0G to AI1- (which is internally connected to GND). Check the wiki for wiring schema. I checked the 12V output and was surprised how stable it was! That output was 12.17V stable. Then I measured the output AOV / AOG with Analog Output 1 set to 7. After adjusting the board trimmer, the Analog Output works as expected!

      Extra bonus:

      • No need for external power (12V)
      • Output is also measured using AI1+, so I can check if the voltage is still as expected.

      Hope this helps!

      posted in UniPi 1 - HW Q&A
      E
      ewillems