Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome General
 PowerHome Messageboard : PowerHome General
Subject Topic: Need Help with EZIO Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
grif091
Super User
Super User


Joined: March 26 2008
Location: United States
Online Status: Offline
Posts: 1357
Posted: October 20 2008 at 00:08 | IP Logged Quote grif091

This is an evaluation macro.

Global variables GV2X4INPUTS, GV2X4INPUT1, GV2X4INPUT2, GV2X4INPUT3, GV2X4INPUT4 must be defined.

Seq 10 retrieves the current state of the EZIO2X4 Inputs. Stores that value into Global variable GV2X4INPUTS.   
Seq 20 retrieves Global variable GV2X4INPUTS, stores that value into LOCAL1 variable.
Seq 30 retrieves LOCAL1 variable, ANDs the value 1, tests the result for >0 indicating bit 1 is on, sets GLOBAL variable GV2X4INPUT1 to “Bit 1 ON” or “Bit 1 OFF”
Seq 40 retrieves LOCAL1 variable, ANDs the value 2, tests the result for >0 indicating bit 2 is on, sets GLOBAL variable GV2X4INPUT2 to “Bit 2 ON” or “Bit 2 OFF”
Seq 50 retrieves LOCAL1 variable, ANDs the value 4, tests the result for >0 indicating bit 4 is on, sets GLOBAL variable GV2X4INPUT3 to “Bit 4 ON” or “Bit 4 OFF”
Seq 60 retrieves LOCAL1 variable, ANDs the value 8, tests the result for >0 indicating bit 8 is on, sets GLOBAL variable GV2X4INPUT4 to “Bit 8 ON” or “Bit 8 OFF”

You can view the Global variable content using PowerHome Explorer

Seq Command ID or Value   Formula
10 Set Global GV2X4INPUTS ph_insteonwithret("TEST EZIO2X4",73,0)
20 Formula    immediate ph_setvar_a(1, 1, ph_getglobal_s("GV2X4INPUTS"))
30 Set Global GV2X4INPUT1 (if (ph_and(ph_getvar_n(1,1),1)>0, "Bit 1 ON", "Bit 1 OFF"))
40 Set Global GV2X4INPUT2 (if (ph_and(ph_getvar_n(1,1),2)>0, "Bit 2 ON", "Bit 2 OFF"))
50 Set Global GV2X4INPUT3 (if (ph_and(ph_getvar_n(1,1),4)>0, "Bit 4 ON", "Bit 4 OFF"))
60 Set Global GV2X4INPUT4 (if (ph_and(ph_getvar_n(1,1),8)>0, "Bit 8 ON", "Bit 8 OFF"))


Edited by grif091 - October 20 2008 at 10:46


__________________
Lee G
Back to Top View grif091's Profile Search for other posts by grif091
 
doctorjerry
Groupie
Groupie


Joined: November 10 2007
Location: United States
Online Status: Offline
Posts: 57
Posted: October 22 2008 at 23:07 | IP Logged Quote doctorjerry

Thanks Lee,

I have the macro working. I can follow the changed status in the Explorer when the EZIO ouput changes.
How can I convert the state of an input to a trigger for an Insteon command?



__________________
Jerome
Back to Top View doctorjerry's Profile Search for other posts by doctorjerry
 
grif091
Super User
Super User


Joined: March 26 2008
Location: United States
Online Status: Offline
Posts: 1357
Posted: October 23 2008 at 09:05 | IP Logged Quote grif091

I think I had the wrong idea about what you are looking for. Are you looking for a PH Trigger to fire at the time when an EZIO2X4 Input changes state (turns on/off); or are you looking for a way to execute an Insteon command at some arbitrary time based on the current Input state regardless of when that Input state occurred.

Also, regardless of which of the above is true, what type of Insteon command are you looking to execute. There are Direct commands which do not require a specific Controller to Responder Link, there are Broadcast messages that require a link but have no built in retry mechanism and there are Group commands which are the most reliable because there is command retry built into the hardware but require a Controller to Responder Link be in existence. The latter is what Insteon hardware uses in native mode when there is no HA involved. A Direct command controls a single Insteon device. A Broadcast command is not sent to any specific device. All responder devices on the powerline examine a Broadcast command to see if there is a matching responder link record. A Group command can control a single Insteon device or multiple Insteon devices that have been linked together to form a Group.

Perhaps, in addition, a description of what you are trying to accomplish logically would help. ie turn on/off an Insteon device(s) when a specific Input turns on/off; at some arbitrary time determine what the current Input state is and take some action based on that state. As many specifics as possible; are Keypadlinc buttons involved, are multiple Insteon switches involved, etc. associated with the Input state change or current Input status.   

EDIT:
Another question. If you want KeypadLinc buttons and/or other insteon switches to turn on/off when the Input turns on/off, do you want this activity to happen regardless of whether PH is running or not?

EDIT2:
Corrected the text. The Direct command description was incorrect regarding ACK (retry) and there was no mention of Broadcast messages.


Edited by grif091 - October 24 2008 at 05:33


__________________
Lee G
Back to Top View grif091's Profile Search for other posts by grif091
 
doctorjerry
Groupie
Groupie


Joined: November 10 2007
Location: United States
Online Status: Offline
Posts: 57
Posted: October 24 2008 at 13:02 | IP Logged Quote doctorjerry

Lee,

So many questions. Where do I begin. I hope at some point to learn enough about PH to address many of the functions you mention. But I like the path of small steps.

Right now I run PH continuously with timers controlling lights and macros triggered by switches and keypadlincs perfoming various lighting scenes and sequences. I've only need use basic insteon and x10 commands.

I like having access to the home automation system when I'm out of town and at work. I use LogMeIn to view PH over the internet.
I've installed a WaterCop (solenoid water valve) that controls the main water supply to the house. When I'm out of town I turn off the water and avoid the possibility of any flooding that I'm not around to see. With PH I'll be able to turn it on for the cat sitter and be sure it's off when they leave.

The Watercop comes with a wired remote panel that has two momentary switches. One for On and one for OFF. It has two indicator lights to indicate these states. I want to duplicate this setup in PH. Basically setting up a virtual KeypadLinc.

The Watercop uses +5v dc for the switch and indicator lights making direct connection with the EZIO2X4 straightforward.

I connected, in parallel, the On switch to output1 and the Off switch to output2. The insteon command (ph_insteon("EZIO",72,1) turns on output1 and opens with Watercop valve. Similarly, ph_insteon("EZIO",72,2) turns on output 2 and closes the Watercop valve. Not knowing the command to turn off each output to create a momentary switch, I used the built in EZIO timer function to do that part. (I do hope to learn those commands later)

Now I need to create a virtual indicator light (VIL) in PH to respond to Input1 and Input2 which are wired in parallel to the indicator lamps on the wired remote panel. This VIL would ideally be visible in the Device List.
In the Control Center I would create a complete virtual remote panel with both the on and off switches and on and off indicator lights.

Jerry

__________________
Jerome
Back to Top View doctorjerry's Profile Search for other posts by doctorjerry
 
grif091
Super User
Super User


Joined: March 26 2008
Location: United States
Online Status: Offline
Posts: 1357
Posted: October 24 2008 at 15:02 | IP Logged Quote grif091

First, (ph_insteon("EZIO",72,0)) turns off both output relays. Using the output timer is the best approach because it always gives the result of a momentary button press.

This can be done with less macros and more programming but this will give you what you need, I think. I have done this on my system and it does work.

Under PH define 2 X10 devices. I used D1 and D2 to represent Input 1 and Input 2 on the EZIO2X4 but any two unused X10 addresses will do. The X10 devices do show up in the Device Status display and are changed from Off to On to Off as the EZIO2X4 Inputs change from Off to On to Off.

Create 4 macros; macro 1 turns on X10 D1, macro 2 turns off X10 D1, macro 3 turns on X10 D2, macro 4 turns off X10 D2.

Create 4 triggers.
Trigger 1
invokes macro 1,
Insteon Group In,
ID of EZIO2X4
Trigger ID Number = 1
Trigger Value = On
Trigger 2
invokes macro 2,
Insteon Group In,
ID of EZIO2X4
Trigger ID Number = 1
Trigger Value = Off
Trigger 3
invokes macro 3,
Insteon Group In,
ID of EZIO2X4
Trigger ID Number = 2
Trigger Value = On
Trigger 4
invokes macro 4,
Insteon Group In,
ID of EZIO2X4
Trigger ID Number = 2
Trigger Value = Off

Link EZIO2X4 Input 1 (Group 1) as a controller, the PLC as responder.
Link EZIO2X4 Input 2 (Group 2) as a controller, the PLC as responder.

If the links are established with the Set button on the EZIO2X4 the following steps are not needed.

Otherwise, invoke the Simplehomenet Utility Suite (free download). Under the EZIOxx tab, Inputs Settings and Monitor, set Input 1 to Group 1 and set Input 2 to Group 2.

When EZIO2X4 Input 1 turns on, it sends a Group 1 ON command sequence to the PLC which causes trigger 1 to fire, invokes macro 1 which turns X10 D1 ON which is reflected in the Device Status display as X10 D1 ON.

When EZIO2X4 Input 1 turns off, it sends a Group 1 OFF command sequence to the PLC which causes trigger 2 to fire, invokes macro 2 which turns X10 D1 OFF which is reflected in the Device Status display as X10 D1 OFF.

When EZIO2X4 Input 2 turns on, it sends a Group 2 ON command sequence to the PLC which causes trigger 3 to fire, invokes macro 3 which turns X10 D2 ON which is reflected in the Device Status display as X10 D2 ON.

When EZIO2X4 Input 2 turns off, it sends a Group 2 OFF command sequence to the PLC which causes trigger 4 to fire, invokes macro 4 which turns X10 D2 OFF which is reflected in the Device Status display as X10 D2 OFF.

As I said earlier, I have created this on my system and it works as described.


__________________
Lee G
Back to Top View grif091's Profile Search for other posts by grif091
 
doctorjerry
Groupie
Groupie


Joined: November 10 2007
Location: United States
Online Status: Offline
Posts: 57
Posted: October 26 2008 at 22:00 | IP Logged Quote doctorjerry

Lee,

I set up the x10 devices, macros and triggers as specified. The macros activate the x10 devices properly, but the triggers aren't working.

I couldn't link the EZIO with the PLC using the set button. Using the SHN Utility I set Input 1 to Group 1 and Input 2 to Group 2. Actuate output is unchecked. Timer is 0 and Ignore on the off is unchecked.

I note in the SHN utility that there is no Sent Insteon Traffic either.

How can I be verify that a group command is being sent.

__________________
Jerome
Back to Top View doctorjerry's Profile Search for other posts by doctorjerry
 
grif091
Super User
Super User


Joined: March 26 2008
Location: United States
Online Status: Offline
Posts: 1357
Posted: October 26 2008 at 22:24 | IP Logged Quote grif091

The Insteon Traffic tab is not a generalize Insteon message trace. It is tracing only messages that the Utility originated and the responses generated to those messages.

Invoke the SHN Utility and connect to the PLC. In the XP system tray you will find a blue T shaped Icon. This represents the SDM3 PLC interface. Double click on the T shaped Icon to open the SDM3 window. That is a generalized trace. It will show the Insteon messages generated by an Input state change, if any.

The EZIO2X4 does not send Group commands unless a link has been established between itself as a Controller and the Responder, the PLC in this case. The Group number in the Controller link must match the Group number assigned to the Inputx being used. You followed the linking procedure described in the EZIO2X4 Quick Start Guide for "Controlling One or Multiple INSTEON Devices with Signals on the Inputs". What aspect of that procedure did not work.

You are running Powerhome. Start Insteon Explorer and look at the Insteon Raw Log window for the same traffic you would see in the SDM3 window.



Edited by grif091 - October 26 2008 at 22:30


__________________
Lee G
Back to Top View grif091's Profile Search for other posts by grif091
 
doctorjerry
Groupie
Groupie


Joined: November 10 2007
Location: United States
Online Status: Offline
Posts: 57
Posted: October 28 2008 at 23:13 | IP Logged Quote doctorjerry

Lee,

I followed the linking procedure described in the EZIO2X4 Quick Start Guide for "Controlling One or Multiple INSTEON Devices with Signals on the Inputs" and thought it worked when the lights flashed according to the directions. But the Inputs never changed on the Device List. And PH never showed a link between the EZIO and the PLC (as responder).
So I created the link using PH. Actually two links, to Group1 and Group2. The Inputs change now. But sluggishly and definitely unreliably. Sometimes accurately, often not.

But the global variables always accurately indicate the status of the inputs. What about reading the global variable state and having it control the X10 macros rather than just writing Bit 1 on or Bit 1 off.

Jerry


__________________
Jerome
Back to Top View doctorjerry's Profile Search for other posts by doctorjerry
 
grif091
Super User
Super User


Joined: March 26 2008
Location: United States
Online Status: Offline
Posts: 1357
Posted: October 28 2008 at 23:38 | IP Logged Quote grif091

Suggest clicking on PH Control/Powerhome Status and watch the Event Log as you cycle each Input On and Off. If the Event Log shows Insteon In when each Input is cycled On and Off PH is recognizing the Group On/Off coming in. It should not be necessary to read the state of the Inputs. It would have to be done when the Group On/Off is detected and would be redundant at that point. Each Insteon In tells you which Input and whether it went ON or OFF. The Event Log will show the Insteon In, the macro invocation and the issuing of the X10 messages. Each Event Log entry is time stamped which will show where the time is being taken up.

__________________
Lee G
Back to Top View grif091's Profile Search for other posts by grif091
 
grif091
Super User
Super User


Joined: March 26 2008
Location: United States
Online Status: Offline
Posts: 1357
Posted: October 29 2008 at 13:13 | IP Logged Quote grif091

The Group command sequence is the most reliable form of Insteon communication. There is command redundancy with the Group Broadcast/Group Cleanup Direct messages as well as message retry of the Group Cleanup Direct.

What were you thinking about using to trigger the macro that reads the input state if not the Group In ON/OFF message?

Edited by grif091 - October 29 2008 at 13:14


__________________
Lee G
Back to Top View grif091's Profile Search for other posts by grif091
 
doctorjerry
Groupie
Groupie


Joined: November 10 2007
Location: United States
Online Status: Offline
Posts: 57
Posted: October 29 2008 at 22:59 | IP Logged Quote doctorjerry

Lee,

This is a printout of eventlog after executing the macros wcon and wcoff a few times. I wasn't sure if you needed more than one instance to get an idea of what's going on and not going on.


wcon executes the insteon command (ph_insteon("EZIO",72,1) turns on output1 and opens Watercop valve.
wcoff executes the insteon command (ph_insteon("EZIO",72,2) turns on output2 and closes Watercop valve.   

time_stamp     type  &nbs p;  event     info & nbsp;   sequence
10/29/2008 22:35:50.359     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Command: Off         &nb sp;746
10/29/2008 22:35:49.687     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Unit Code: 2           ;745
10/29/2008 22:35:48.937     8    ;  Macro D2OFF executed.        &nb sp; 744
10/29/2008 22:35:44.328     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Command: On         &nbs p;743
10/29/2008 22:35:43.765     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Unit Code: 2           ;742
10/29/2008 22:35:43.218     8    ;  Macro D2ON executed.        &nb sp; 741
10/29/2008 22:35:43.093     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Command: Off         &nb sp;740
10/29/2008 22:35:42.5     4   & nbsp; Insteon DM Controller INSTEON_PLC transmission of House code: D, Unit Code: 2           ;739
10/29/2008 22:35:41.968     8    ;  Macro D2OFF executed.        &nb sp; 738
10/29/2008 22:35:41.828     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Command: Off         &nb sp;737
10/29/2008 22:35:41.281     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Unit Code: 2           ;736
10/29/2008 22:35:40.671     8    ;  Macro D2OFF executed.        &nb sp; 735
10/29/2008 22:35:40.593     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Command: On         &nbs p;734
10/29/2008 22:35:39.984     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Unit Code: 2           ;733
10/29/2008 22:35:38.843     8    ;  Macro D2ON executed.        &nb sp; 732
10/29/2008 22:35:38.765     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Command: On         &nbs p;731
10/29/2008 22:35:38.39     11    ;  Trigger check of INPUT2OFF performed.        &n bsp; 730
10/29/2008 22:35:38.312     11  &nbs p;  Trigger check of INPUT2ON performed.        &n bsp; 729
10/29/2008 22:35:38.031     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Unit Code: 2           ;728
10/29/2008 22:35:37.984     11  &nbs p;  Trigger check of INPUT2OFF performed.        &n bsp; 727
10/29/2008 22:35:37.625     11  &nbs p;  Trigger check of INPUT2OFF performed.        &n bsp; 726
10/29/2008 22:35:37.234     11  &nbs p;  Trigger check of INPUT2ON performed.        &n bsp; 725
10/29/2008 22:35:37.078     8    ;  Macro D2ON executed.        &nb sp; 724
10/29/2008 22:35:37.031     11  &nbs p;  Trigger check of INPUT2ON performed.        &n bsp; 723
10/29/2008 22:35:35.656     31  &nbs p;  Insteon DM Controller INSTEON_PLC transmission of Address:[01.74.F9] Flags:[15] Cmd1:[72] Cmd2:[1]. Decode: Direct. ID: EZIO1, I/O Write Out         &nb sp;722
10/29/2008 22:35:35.562     8    ;  Macro WCON executed.        &nb sp; 721

10/29/2008 22:35:09.531     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Command: Off         &nb sp;720
10/29/2008 22:35:08.953     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Unit Code: 2           ;719
10/29/2008 22:35:08.187     8    ;  Macro D2OFF executed.        &nb sp; 718
10/29/2008 22:35:07.968     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Command: Off         &nb sp;717
10/29/2008 22:35:07.359     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Unit Code: 1           ;716
10/29/2008 22:35:06.718     8    ;  Macro D1OFF executed.        &nb sp; 715
10/29/2008 22:35:06.421     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Command: Off         &nb sp;714
10/29/2008 22:35:05.906     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Unit Code: 1           ;713
10/29/2008 22:35:05.265     8    ;  Macro D1OFF executed.        &nb sp; 712
10/29/2008 22:35:05.125     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Command: Off         &nb sp;711
10/29/2008 22:35:04.343     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Unit Code: 1           ;710
10/29/2008 22:35:03.562     11  &nbs p;  Trigger check of INPUT2OFF performed.        &n bsp; 709
10/29/2008 22:35:03.093     11  &nbs p;  Trigger check of INPUT1OFF performed.        &n bsp; 708
10/29/2008 22:35:02.781     11  &nbs p;  Trigger check of INPUT1OFF performed.        &n bsp; 707
10/29/2008 22:35:02.609     8    ;  Macro D1OFF executed.        &nb sp; 706
10/29/2008 22:35:02.546     11  &nbs p;  Trigger check of INPUT1OFF performed.        &n bsp; 705
10/29/2008 22:35:01.046     31  &nbs p;  Insteon DM Controller INSTEON_PLC transmission of Address:[01.74.F9] Flags:[15] Cmd1:[72] Cmd2:[2]. Decode: Direct. ID: EZIO1, I/O Write Out         &nb sp;704
10/29/2008 22:35:00.921     8    ;  Macro WCOFF executed.        &nb sp; 703

10/29/2008 22:34:41.125     31  &nbs p;  Insteon DM Controller INSTEON_PLC transmission of Address:[01.74.F9] Flags:[15] Cmd1:[72] Cmd2:[1]. Decode: Direct. ID: EZIO1, I/O Write Out         &nb sp;702
10/29/2008 22:34:40.593     8    ;  Macro WCON executed.        &nb sp; 701
10/29/2008 22:34:24.187     31  &nbs p;  Insteon DM Controller INSTEON_PLC transmission of Address:[01.74.F9] Flags:[15] Cmd1:[72] Cmd2:[1]. Decode: Direct. ID: EZIO1, I/O Write Out         &nb sp;700
10/29/2008 22:34:23.328     8    ;  Macro WCON executed.        &nb sp; 699
10/29/2008 22:25:09.734     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Command: Off         &nb sp;698
10/29/2008 22:25:09.109     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Unit Code: 2           ;697
10/29/2008 22:25:08.281     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Command: Off         &nb sp;696
10/29/2008 22:25:07.64     4      Insteon DM Controller INSTEON_PLC transmission of House code: D, Unit Code: 2           ;695
10/29/2008 22:25:06.578     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Command: Off         &nb sp;694
10/29/2008 22:25:05.781     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Unit Code: 2           ;693
10/29/2008 22:25:04.015     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Command: Off         &nb sp;692
10/29/2008 22:25:02.437     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Unit Code: 2           ;691
10/29/2008 22:25:02.234     8    ;  Macro D2OFF executed.        &nb sp; 690
10/29/2008 22:25:02.218     8    ;  Macro D2OFF executed.        &nb sp; 689
10/29/2008 22:25:02.203     8    ;  Macro D2OFF executed.        &nb sp; 688
10/29/2008 22:25:00.671     11  &nbs p;  Trigger check of INPUT2OFF performed.        &n bsp; 687
10/29/2008 22:24:58.515     11  &nbs p;  Trigger check of INPUT2OFF performed.        &n bsp; 686
10/29/2008 22:24:58.437     11  &nbs p;  Trigger check of INPUT2OFF performed.        &n bsp; 685
10/29/2008 22:24:58.39     8      Macro D2OFF executed.        &nb sp; 684
10/29/2008 22:24:58.343     11  &nbs p;  Trigger check of INPUT2OFF performed.        &n bsp; 683
10/29/2008 22:24:56.656     31  &nbs p;  Insteon DM Controller INSTEON_PLC transmission of Address:[01.74.F9] Flags:[15] Cmd1:[72] Cmd2:[1]. Decode: Direct. ID: EZIO1, I/O Write Out         &nb sp;682
10/29/2008 22:24:55.796     8    ;  Macro WCON executed.        &nb sp; 681

10/29/2008 22:24:44.296     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Command: Off         &nb sp;680
10/29/2008 22:24:43.734     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Unit Code: 1           ;679
10/29/2008 22:24:43.14     8      Macro D1OFF executed.        &nb sp; 678
10/29/2008 22:24:43.062     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Command: Off         &nb sp;677
10/29/2008 22:24:42.484     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Unit Code: 1           ;676
10/29/2008 22:24:41.937     8    ;  Macro D1OFF executed.        &nb sp; 675
10/29/2008 22:24:41.828     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Command: Off         &nb sp;674
10/29/2008 22:24:41.281     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Unit Code: 1           ;673
10/29/2008 22:24:40.734     8    ;  Macro D1OFF executed.        &nb sp; 672
10/29/2008 22:24:33.031     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Command: Off         &nb sp;671
10/29/2008 22:24:32.468     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Unit Code: 2           ;670
10/29/2008 22:24:31.828     8    ;  Macro D2OFF executed.        &nb sp; 669
10/29/2008 22:24:31.734     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Command: Off         &nb sp;668
10/29/2008 22:24:30.671     11  &nbs p;  Trigger check of INPUT1OFF performed.        &n bsp; 667
10/29/2008 22:24:30.625     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Unit Code: 2           ;666
10/29/2008 22:24:29.765     11  &nbs p;  Trigger check of INPUT1OFF performed.        &n bsp; 665
10/29/2008 22:24:29.687     11  &nbs p;  Trigger check of INPUT1OFF performed.        &n bsp; 664
10/29/2008 22:24:29.093     11  &nbs p;  Trigger check of INPUT2OFF performed.        &n bsp; 663
10/29/2008 22:24:28.937     8    ;  Macro D2OFF executed.        &nb sp; 662
10/29/2008 22:24:28.89     11    ;  Trigger check of INPUT2OFF performed.        &n bsp; 661
10/29/2008 22:24:27.453     31  &nbs p;  Insteon DM Controller INSTEON_PLC transmission of Address:[01.74.F9] Flags:[15] Cmd1:[72] Cmd2:[2]. Decode: Direct. ID: EZIO1, I/O Write Out         &nb sp;660
10/29/2008 22:24:27.281     8    ;  Macro WCOFF executed.        &nb sp; 659

10/29/2008 22:20:00.406     31  &nbs p;  Insteon DM Controller INSTEON_PLC transmission of Address:[01.74.F9] Flags:[15] Cmd1:[72] Cmd2:[1]. Decode: Direct. ID: EZIO1, I/O Write Out         &nb sp;658
10/29/2008 22:19:59.796     8    ;  Macro WCON executed.        &nb sp; 657
10/29/2008 22:19:02.109     3    ;  Incoming X-10 received on Insteon DM controller INSTEON_PLC. Byte Values: 01 C2 Decode: P{On}         & nbsp;656
10/29/2008 22:19:01.609     3    ;  Incoming X-10 received on Insteon DM controller INSTEON_PLC. Byte Values: 00 C0 Decode: P13         &nb sp;655
10/29/2008 22:18:36.484     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Command: Off         &nb sp;654
10/29/2008 22:18:35.953     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Unit Code: 2           ;653
10/29/2008 22:18:35.328     8    ;  Macro D2OFF executed.        &nb sp; 652
10/29/2008 22:18:35.265     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Command: Off         &nb sp;651
10/29/2008 22:18:34.718     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Unit Code: 2           ;650
10/29/2008 22:18:32.015     11  &nbs p;  Trigger check of INPUT2OFF performed.        &n bsp; 649
10/29/2008 22:18:31.546     8    ;  Macro D2OFF executed.        &nb sp; 648
10/29/2008 22:18:31.5     11      Trigger check of INPUT2OFF performed.        &n bsp; 647
10/29/2008 22:18:29.203     31  &nbs p;  Insteon DM Controller INSTEON_PLC transmission of Address:[01.74.F9] Flags:[15] Cmd1:[72] Cmd2:[1]. Decode: Direct. ID: EZIO1, I/O Write Out         &nb sp;646
10/29/2008 22:18:29.109     8    ;  Macro WCON executed.        &nb sp; 645

10/29/2008 22:08:37.5     4   & nbsp; Insteon DM Controller INSTEON_PLC transmission of House code: D, Command: Off         &nb sp;643
10/29/2008 22:08:36.953     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Unit Code: 1           ;642
10/29/2008 22:08:36.375     8    ;  Macro D1OFF executed.        &nb sp; 641
10/29/2008 22:08:36.328     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Command: Off         &nb sp;640
10/29/2008 22:08:35.828     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Unit Code: 1           ;639
10/29/2008 22:08:35.265     8    ;  Macro D1OFF executed.        &nb sp; 638
10/29/2008 22:08:35.187     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Command: Off         &nb sp;637
10/29/2008 22:08:34.609     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Unit Code: 2           ;636
10/29/2008 22:08:34     8   &nb sp; Macro D2OFF executed.        &nb sp; 635
10/29/2008 22:08:27.171     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Command: Off         &nb sp;634
10/29/2008 22:08:26.546     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Unit Code: 2           ;633
10/29/2008 22:08:24.5     11      Trigger check of INPUT1OFF performed.        &n bsp; 632
10/29/2008 22:08:24.328     11  &nbs p;  Trigger check of INPUT1OFF performed.        &n bsp; 631
10/29/2008 22:08:22.828     11  &nbs p;  Trigger check of INPUT2OFF performed.        &n bsp; 630
10/29/2008 22:08:22.687     8    ;  Macro D2OFF executed.        &nb sp; 629
10/29/2008 22:08:22.671     11  &nbs p;  Trigger check of INPUT2OFF performed.        &n bsp; 628
10/29/2008 22:08:21.328     31  &nbs p;  Insteon DM Controller INSTEON_PLC transmission of Address:[01.74.F9] Flags:[15] Cmd1:[72] Cmd2:[2]. Decode: Direct. ID: EZIO1, I/O Write Out         &nb sp;627
10/29/2008 22:08:21.265     8    ;  Macro WCOFF executed.        &nb sp; 626

10/29/2008 21:56:36.312     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Command: Off         &nb sp;625
10/29/2008 21:56:35.765     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Unit Code: 2           ;624
10/29/2008 21:56:35.125     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Command: Off         &nb sp;623
10/29/2008 21:56:34.515     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Unit Code: 1           ;622
10/29/2008 21:56:33.906     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Command: Off         &nb sp;621
10/29/2008 21:56:33.234     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Unit Code: 2           ;620
10/29/2008 21:56:32.64     4      Insteon DM Controller INSTEON_PLC transmission of House code: D, Command: Off         &nb sp;619
10/29/2008 21:56:31.187     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Unit Code: 2           ;618
10/29/2008 21:56:29.609     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Command: Off         &nb sp;617
10/29/2008 21:56:28.125     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Unit Code: 2           ;616
10/29/2008 21:56:26.593     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Command: Off         &nb sp;615
10/29/2008 21:56:25.171     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Unit Code: 1           ;614
10/29/2008 21:56:23.328     8    ;  Macro D2OFF executed.        &nb sp; 613
10/29/2008 21:56:23.312     8    ;  Macro D1OFF executed.        &nb sp; 612
10/29/2008 21:56:23.296     8    ;  Macro D2OFF executed.        &nb sp; 611
10/29/2008 21:56:23.281     8    ;  Macro D2OFF executed.        &nb sp; 610
10/29/2008 21:56:23.25     8      Macro D2OFF executed.        &nb sp; 609
10/29/2008 21:56:23.234     8    ;  Macro D1OFF executed.        &nb sp; 608
10/29/2008 21:56:23.171     16  &nbs p;  Global variable EZIO1INPUT4 changed from Bit 8 ON to Bit 8 Off         &nb sp;607
10/29/2008 21:56:23.156     16  &nbs p;  Global variable EZIO1INPUT3 changed from Bit 4 ON to Bit 4 Off         &nb sp;606
10/29/2008 21:56:23.14     16    ;  Global variable EZIO1INPUT2 changed from Bit 2 ON to Bit 2 Off         &nb sp;605
10/29/2008 21:56:23.109     16  &nbs p;  Global variable EZIO1INPUT1 changed from Bit 1 Off to Bit 1 ON         &nbs p;604
10/29/2008 21:56:23.093     16  &nbs p;  Global variable EZIO1INPUTS changed from 14 to 1           ;603
10/29/2008 21:56:22.812     11  &nbs p;  Trigger check of INPUT2OFF performed.        &n bsp; 602
10/29/2008 21:56:22.546     11  &nbs p;  Trigger check of INPUT1OFF performed.        &n bsp; 601
10/29/2008 21:56:22.312     11  &nbs p;  Trigger check of INPUT2OFF performed.        &n bsp; 600
10/29/2008 21:56:21.984     11  &nbs p;  Trigger check of INPUT2OFF performed.        &n bsp; 599
10/29/2008 21:56:21.687     11  &nbs p;  Trigger check of INPUT2OFF performed.        &n bsp; 598
10/29/2008 21:56:21.5     31      Insteon DM Controller INSTEON_PLC transmission of Address:[01.74.F9] Flags:[5] Cmd1:[73] Cmd2:[0]. Decode: Direct. ID: EZIO1, I/O Read Inp         &nb sp;597
10/29/2008 21:56:21.281     11  &nbs p;  Trigger check of INPUT1OFF performed.        &n bsp; 596
10/29/2008 21:56:21.078     8    ;  Macro TEST executed.        &nb sp; 595
10/29/2008 21:56:19.937     31  &nbs p;  Insteon DM Controller INSTEON_PLC transmission of Address:[01.74.F9] Flags:[15] Cmd1:[72] Cmd2:[1]. Decode: Direct. ID: EZIO1, I/O Write Out         &nb sp;594
10/29/2008 21:56:18.937     8    ;  Macro WCON executed.        &nb sp; 593

Jerry

__________________
Jerome
Back to Top View doctorjerry's Profile Search for other posts by doctorjerry
 
grif091
Super User
Super User


Joined: March 26 2008
Location: United States
Online Status: Offline
Posts: 1357
Posted: October 30 2008 at 08:41 | IP Logged Quote grif091

The Event Log shows trigger checks being done that are unexpected…

10/29/2008 21:56:22.812     Trigger check of INPUT2OFF performed.
10/29/2008 21:56:22.546     Trigger check of INPUT1OFF performed.
10/29/2008 21:56:22.312     Trigger check of INPUT2OFF performed.
10/29/2008 21:56:21.984     Trigger check of INPUT2OFF performed.
10/29/2008 21:56:21.687     Trigger check of INPUT2OFF performed.

Within the span of approx 1 second it appears that 5 Trigger Checks were done, 4 for INPUT2OFF and 1 for INPUT1OFF. Also apparently Insteon messages are not being traced. Without the Insteon messages traced I don’t know why so many inbound messages would be coming unless what is driving EZIO2X4 Input 1 and Input 2 is erratic, generating multiple state change messages for what should be a single event. Also the TEST macro says Input 3 and Input 4 changed state. What is connected to EZIO2X4 Input 3 and Input 4 that results in those Inputs changing state? Lots of questions.

First let’s fix the Event Log options. Using PowerHome Explorer, Setup, Logs, in the right hand column, Insteon In: and Insteon Out: should be checked. Probably need a Reinit after changing these options.

Next, what is connected to EZIO2X4 Inputs 3 and 4. If nothing, they should be pulled to an OFF state with a 10K resister between each Input and 5V so false state changes do not occur.

What is actually driving Input 1 and Input 2. I think you said WaterCop lights. Can you elaborate on this? Would the condition being monitored by Input 1 and Input 2 fluctuate during a valve open or valve close operation? So many trigger checks at once suggest the signal connected to Input 1 and Input 2 is not a clean On/Off.

In the Triggers INPUT1OFF and INPUT2OFF, what are the Trigger Type, Trigger ID, Trigger ID Number and Trigger Value.

There is so much activity being generated by a single WCON execution I’m not surprised you are experiencing “sluggish” operation. Do not invoke the TEST macro on the next test. It just adds to the activity. The Insteon In/Insteon Out trace entries will show what is happening.

After fixing the Event Log options and installing pullup resisters on Input 3 and Input 4 (I’m making an assumption about nothing being connected to these Inputs) rerun a WCON invocation and post the trace. I suspect that what you are using to drive EZIO2X4 Input 1 and Input 2 is not a clean DC signal. Maybe they are AC lights or the DC signal powering those lights is not clean. If the Input 1 and Input 2 signals are DC, there is a debounce option in the EZIO2X4 Configuration Register that may help smooth out the triggering of Input 1 and Input 2. Depends on how bad the Input signals are swinging if this option will help. I would turn the debounce option on before running another test.

07:17:32 Outgoing X10    Insteon DM Controller….House code: D, Command: Off
07:17:32 Insteon In      Incoming Insteon received…. Decode: Group Cleanup Direct Group: 1,Off
07:17:31 Outgoing X10    Insteon DM Controller….House code: D, Unit Code: 1
07:17:31 User Message    Macro Input 1 Off ran
07:17:31 Macro      Macro M2X4INPUT1OFF executed
07:17:31 Trigger Check   Trigger check of T2X4INPUT1TOX10OFF performed
07:17:31 Insteon In      Incoming Insteon received…. Decode: Group Broadcast Group: 1,Off

From bottom up
A Group Broadcast for Group 1 Off is received when Input 1 turns off
The Trigger Check is done which invokes macro
Macro is invoked
I issue a User Message from macro indicating macro ran
Macro issues X10 message D1
A Group Cleanup Direct for Group 1 Off is received. This is the second of the 2 message Group sequence
Macro isses X10 message D Off

This is what you should see when an Input state change occurs with a clean DC signal



Edited by grif091 - October 30 2008 at 12:36


__________________
Lee G
Back to Top View grif091's Profile Search for other posts by grif091
 
doctorjerry
Groupie
Groupie


Joined: November 10 2007
Location: United States
Online Status: Offline
Posts: 57
Posted: November 06 2008 at 18:49 | IP Logged Quote doctorjerry

Lee,

Input 1 of EZIO is connected in parallel to a 5vdc indicator lamp on the Watercop the goes on when the valve is open
Input 2 of EZIO is connected in parallel to a 5vdc indicator lamp on the Watercop the goes on when the valve is closed

I've added the pullup resistors between inputs 3 & 4 and +5v on the EZIO
I added debounce inputs in SHN utility.

Here's the latest Insteon report of a WCON and WCOFF macro
Still not right.
I don't see any Group 1 message at all now.

You asked this question:
What were you thinking about using to trigger the macro that reads the input state if not the Group In ON/OFF message?
Why can't you use the same statement that reads the inputs?

30 Set Global GV2X4INPUT1 (if (ph_and(ph_getvar_n(1,1),1)>0, "Bit 1 ON", "Bit 1 OFF"))
This appears to be an if,then,else statement that reads the input state and writes a text message either on or off.

I was thinking that a similar statement could substitute a macro turning on D1 for "Bit 1 On" and a macro turning D1 off for "Bit 1 Off"
The equivalent of - Set Global GV2X4INPUT1 (if (ph_and(ph_getvar_n(1,1),1)>0, MacroD1on, MacroD1off))

I sure hope I'm not embarrassing myself to much with my ignorance of programming.

time_stamp     type  &nbs p;  event     info & nbsp;   sequence
11/6/2008 17:56:50.453     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Command: On         &nbs p;279
11/6/2008 17:56:49.984     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Unit Code: 2           ;278
11/6/2008 17:56:49.5     8   & nbsp; Macro D2ON executed.        &nb sp; 277
11/6/2008 17:56:49.437     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Command: On         &nbs p;276
11/6/2008 17:56:48.921     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Unit Code: 2           ;275
11/6/2008 17:56:48.406     8    ;  Macro D2ON executed.        &nb sp; 274
11/6/2008 17:56:48.359     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Command: On         &nbs p;273
11/6/2008 17:56:47.859     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Unit Code: 2           ;272
11/6/2008 17:56:47.328     8    ;  Macro D2ON executed.        &nb sp; 271
11/6/2008 17:56:47.265     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Command: On         &nbs p;270
11/6/2008 17:56:46.75     4      Insteon DM Controller INSTEON_PLC transmission of House code: D, Unit Code: 2           ;269
11/6/2008 17:56:45.921     11  &nbs p;  Trigger check of INPUT2ON performed.        &n bsp; 268
11/6/2008 17:56:45.89     30    ;  Incoming Insteon received on Insteon DM controller INSTEON_PLC. From Address:[01.74.F9] To Address:[00.00.02] Flags:[199] Cmd1:[17] Cmd2:[17]. Decode: Group Broadcast. From: EZIO1 Group: 2, On         &nbs p;267
11/6/2008 17:56:45.687     8    ;  Macro D2ON executed.        &nb sp; 266
11/6/2008 17:56:45.625     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Command: On         &nbs p;265
11/6/2008 17:56:45.546     11  &nbs p;  Trigger check of INPUT2ON performed.        &n bsp; 264
11/6/2008 17:56:45.515     30  &nbs p;  Incoming Insteon received on Insteon DM controller INSTEON_PLC. From Address:[01.74.F9] To Address:[00.00.02] Flags:[207] Cmd1:[17] Cmd2:[17]. Decode: Group Broadcast. From: EZIO1 Group: 2, On         &nbs p;263
11/6/2008 17:56:45.125     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Unit Code: 2           ;262
11/6/2008 17:56:45.062     11  &nbs p;  Trigger check of INPUT2ON performed.        &n bsp; 261
11/6/2008 17:56:45.046     30  &nbs p;  Incoming Insteon received on Insteon DM controller INSTEON_PLC. From Address:[01.74.F9] To Address:[00.00.02] Flags:[199] Cmd1:[17] Cmd2:[17]. Decode: Group Broadcast. From: EZIO1 Group: 2, On         &nbs p;260
11/6/2008 17:56:44.703     11  &nbs p;  Trigger check of INPUT2ON performed.        &n bsp; 259
11/6/2008 17:56:44.671     30  &nbs p;  Incoming Insteon received on Insteon DM controller INSTEON_PLC. From Address:[01.74.F9] To Address:[00.00.02] Flags:[199] Cmd1:[17] Cmd2:[17]. Decode: Group Broadcast. From: EZIO1 Group: 2, On         &nbs p;258
11/6/2008 17:56:44.656     8    ;  Macro D2ON executed.        &nb sp; 257
11/6/2008 17:56:44.625     11  &nbs p;  Trigger check of INPUT2ON performed.        &n bsp; 256
11/6/2008 17:56:44.593     30  &nbs p;  Incoming Insteon received on Insteon DM controller INSTEON_PLC. From Address:[01.74.F9] To Address:[00.00.02] Flags:[207] Cmd1:[17] Cmd2:[17]. Decode: Group Broadcast. From: EZIO1 Group: 2, On         &nbs p;255
11/6/2008 17:56:44.25     30    ;  Incoming Insteon received on Insteon DM controller INSTEON_PLC. From Address:[01.74.F9] To Address:[08.A6.86] Flags:[47] Cmd1:[72] Cmd2:[1]. Decode: Direct ACK. From: EZIO1 To: INSTEON_PLC, I/O Write Out         &nb sp;254
11/6/2008 17:56:43.593     31  &nbs p;  Insteon DM Controller INSTEON_PLC transmission of Address:[01.74.F9] Flags:[15] Cmd1:[72] Cmd2:[1]. Decode: Direct. ID: EZIO1, I/O Write Out         &nb sp;253
11/6/2008 17:56:43.359     8    ;  Macro WCON executed.        &nb sp; 252


11/6/2008 17:56:28.062     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Command: On         &nbs p;251
11/6/2008 17:56:26.968     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Unit Code: 2           ;250
11/6/2008 17:56:25.484     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Command: On         &nbs p;249
11/6/2008 17:56:24.187     4    ;  Insteon DM Controller INSTEON_PLC transmission of House code: D, Unit Code: 2           ;248
11/6/2008 17:56:23.937     8    ;  Macro D2ON executed.        &nb sp; 247
11/6/2008 17:56:20.375     30  &nbs p;  Incoming Insteon received on Insteon DM controller INSTEON_PLC. From Address:[01.74.F9] To Address:[08.A6.86] Flags:[69] Cmd1:[17] Cmd2:[1]. Decode: Group Cleanup. From: EZIO1 To: INSTEON_PLC Group: 1, On         &nbs p;246
11/6/2008 17:56:19.75     30    ;  Incoming Insteon received on Insteon DM controller INSTEON_PLC. From Address:[01.74.F9] To Address:[00.00.02] Flags:[199] Cmd1:[31] Cmd2:[64]. Decode: Group Broadcast. From: EZIO1 Group: 2, Get Op Flags         & nbsp;245
11/6/2008 17:56:19.609     30  &nbs p;  Incoming Insteon received on Insteon DM controller INSTEON_PLC. From Address:[0B.26.86] To Address:[0B.21.32] Flags:[3] Cmd1:[25] Cmd2:[0]. Decode: Direct. From: To: REMSCONCEFR2, Status Req         &nb sp;244
11/6/2008 17:56:19.484     11  &nbs p;  Trigger check of INPUT2ON performed.        &n bsp; 243
11/6/2008 17:56:19.453     30  &nbs p;  Incoming Insteon received on Insteon DM controller INSTEON_PLC. From Address:[01.74.F9] To Address:[00.00.02] Flags:[199] Cmd1:[17] Cmd2:[17]. Decode: Group Broadcast. From: EZIO1 Group: 2, On         &nbs p;242
11/6/2008 17:56:19.14     8      Macro D2ON executed.        &nb sp; 241
11/6/2008 17:56:19.109     11  &nbs p;  Trigger check of INPUT2ON performed.        &n bsp; 240
11/6/2008 17:56:19.078     30  &nbs p;  Incoming Insteon received on Insteon DM controller INSTEON_PLC. From Address:[01.74.F9] To Address:[00.00.02] Flags:[207] Cmd1:[17] Cmd2:[17]. Decode: Group Broadcast. From: EZIO1 Group: 2, On         &nbs p;239
11/6/2008 17:56:18.593     30  &nbs p;  Incoming Insteon received on Insteon DM controller INSTEON_PLC. From Address:[01.74.F9] To Address:[00.00.02] Flags:[195] Cmd1:[31] Cmd2:[64]. Decode: Group Broadcast. From: EZIO1 Group: 2, Get Op Flags         & nbsp;238
11/6/2008 17:56:18.453     30  &nbs p;  Incoming Insteon received on Insteon DM controller INSTEON_PLC. From Address:[01.74.F9] To Address:[00.00.02] Flags:[207] Cmd1:[31] Cmd2:[64]. Decode: Group Broadcast. From: EZIO1 Group: 2, Get Op Flags         & nbsp;237
11/6/2008 17:56:18.14     30    ;  Incoming Insteon received on Insteon DM controller INSTEON_PLC. From Address:[01.74.F9] To Address:[08.A6.86] Flags:[47] Cmd1:[72] Cmd2:[2]. Decode: Direct ACK. From: EZIO1 To: INSTEON_PLC, I/O Write Out         &nb sp;236
11/6/2008 17:56:17.484     31  &nbs p;  Insteon DM Controller INSTEON_PLC transmission of Address:[01.74.F9] Flags:[15] Cmd1:[72] Cmd2:[2]. Decode: Direct. ID: EZIO1, I/O Write Out         &nb sp;235
11/6/2008 17:56:17.421     8    ;  Macro WCOFF executed.        &nb sp; 234




__________________
Jerome
Back to Top View doctorjerry's Profile Search for other posts by doctorjerry
 
grif091
Super User
Super User


Joined: March 26 2008
Location: United States
Online Status: Offline
Posts: 1357
Posted: November 06 2008 at 20:06 | IP Logged Quote grif091

You definitely have a signal problem with what is driving the Inputs. There are five Group Broadcast messages for Group 2 within 1.5 seconds. You will have to find some way to clean that up or use some other way to control the Inputs.

11/6/2008 17:56:45.89     30    ; ; Incoming Insteon received on Insteon DM controller INSTEON_PLC. From Address:[01.74.F9] To Address:[00.00.02] Flags:[199] Cmd1:[17] Cmd2:[17]. Decode: Group Broadcast. From: EZIO1 Group: 2, On        &nbs p;267
11/6/2008 17:56:45.687     8    ; ; Macro D2ON executed.        &nb sp; 266
11/6/2008 17:56:45.625     4    ; ; Insteon DM Controller INSTEON_PLC transmission of House code: D, Command: On        &nbs p;265
11/6/2008 17:56:45.546     11 &nbs p; Trigger check of INPUT2ON performed.        &n bsp; 264
11/6/2008 17:56:45.515     30 &nbs p; Incoming Insteon received on Insteon DM controller INSTEON_PLC. From Address:[01.74.F9] To Address:[00.00.02] Flags:[207] Cmd1:[17] Cmd2:[17]. Decode: Group Broadcast. From: EZIO1 Group: 2, On        &nbs p;263
11/6/2008 17:56:45.125     4    ; ; Insteon DM Controller INSTEON_PLC transmission of House code: D, Unit Code: 2           ; ;262
11/6/2008 17:56:45.062     11 &nbs p; Trigger check of INPUT2ON performed.        &n bsp; 261
11/6/2008 17:56:45.046     30 &nbs p; Incoming Insteon received on Insteon DM controller INSTEON_PLC. From Address:[01.74.F9] To Address:[00.00.02] Flags:[199] Cmd1:[17] Cmd2:[17]. Decode: Group Broadcast. From: EZIO1 Group: 2, On        &nbs p;260
11/6/2008 17:56:44.703     11 &nbs p; Trigger check of INPUT2ON performed.        &n bsp; 259
11/6/2008 17:56:44.671     30 &nbs p; Incoming Insteon received on Insteon DM controller INSTEON_PLC. From Address:[01.74.F9] To Address:[00.00.02] Flags:[199] Cmd1:[17] Cmd2:[17]. Decode: Group Broadcast. From: EZIO1 Group: 2, On        &nbs p;258
11/6/2008 17:56:44.656     8    ; ; Macro D2ON executed.        &nb sp; 257
11/6/2008 17:56:44.625     11 &nbs p; Trigger check of INPUT2ON performed.        &n bsp; 256
11/6/2008 17:56:44.593     30 &nbs p; Incoming Insteon received on Insteon DM controller INSTEON_PLC. From Address:[01.74.F9] To Address:[00.00.02] Flags:[207] Cmd1:[17] Cmd2:[17]. Decode: Group Broadcast. From: EZIO1 Group: 2, On        &nbs p;255

The loss of Input 1 could be a connection problem, a problem with the Input 1 to Group 1 definition or the Controller of link record for Input 1. Use the SHN Utility to check the Group number Input 1 is using and display the link records in the EZIO2X4 to be sure the Controller of link record for Group 1 is still present.

The problem with reading the Input states is not what you would do with the information but when you would run the macro that reads the input states. You can always change setting the Global variables to issuing X10 commands for D1 and D2. But how do you know when to run that macro.

I guess you could put a Wait in the MCON and MCOFF macros, waiting n number of seconds required for the value to open or close and then issue the read Input states. That works for when the MCON and MCOFF macros cause the valve to move but does not cover the case where the value is moved using local control.

EDIT: I missed a message from Input 1.

11/6/2008 17:56:20.375     30 &nbs p; Incoming Insteon received on Insteon DM controller INSTEON_PLC. From Address:[01.74.F9] To Address:[08.A6.86] Flags:[69] Cmd1:[17] Cmd2:[1]. Decode: Group Cleanup. From: EZIO1 To: INSTEON_PLC Group: 1, On        &nbs p;246

Edited by grif091 - November 07 2008 at 05:17


__________________
Lee G
Back to Top View grif091's Profile Search for other posts by grif091
 
grif091
Super User
Super User


Joined: March 26 2008
Location: United States
Online Status: Offline
Posts: 1357
Posted: November 07 2008 at 07:54 | IP Logged Quote grif091

To the Macro that reads the Input states, add the 2 Formula lines at the end. These will run the macros associated with the Input state to set D1 and D2 ON and OFF. This is the same macro I posted before with two additional lines added at the end. Seq 30,40,50,60 are simply test verification and can be removed.

Seq Command ID or Value   Formula
10 Set Global GV2X4INPUTS ph_insteonwithret("TEST EZIO2X4",73,0)
20 Formula    immediate ph_setvar_a(1, 1, ph_getglobal_s("GV2X4INPUTS"))
30 Set Global GV2X4INPUT1 (if (ph_and(ph_getvar_n(1,1),1)>0, "Bit 1 ON", "Bit 1 OFF"))
40 Set Global GV2X4INPUT2 (if (ph_and(ph_getvar_n(1,1),2)>0, "Bit 2 ON", "Bit 2 OFF"))
50 Set Global GV2X4INPUT3 (if (ph_and(ph_getvar_n(1,1),4)>0, "Bit 4 ON", "Bit 4 OFF"))
60 Set Global GV2X4INPUT4 (if (ph_and(ph_getvar_n(1,1),8)>0, "Bit 8 ON", "Bit 8 OFF"))

70 Formula    immediate ph_macro(if (ph_and(ph_getvar_n(1,1),1)>0, "M2X4INPUT1ON", "M2X4INPUT1OFF"))
80 Formula    immediate ph_macro(if (ph_and(ph_getvar_n(1,1),2)>0, "M2X4INPUT2ON", "M2X4INPUT2OFF"))


__________________
Lee G
Back to Top View grif091's Profile Search for other posts by grif091
 
doctorjerry
Groupie
Groupie


Joined: November 10 2007
Location: United States
Online Status: Offline
Posts: 57
Posted: November 29 2008 at 16:06 | IP Logged Quote doctorjerry

Lee,

For completeness of the post here are my latest findings.

1. The SHN utility has been a little inconsistant. The group commands sometimes get written and read incorrectly. Eventually did get the off to on commands set to 11 and on to off commands set to 13. In addition the SHN utility doesn't seem to like Power-Home, so I have to close PH whenvever I open the SHN utility.

2. The EZIO is not at fault. I disconnected the Watercop indicators from the inputs of the EZIO. I substituted switches to simulate Input1 and Input2 on and off states. The clean signals worked flawlessly with the EZIO sending the group commands and the D1 & D2 macros working as expected. I built a black box with two small relays triggered by the Watercop to substitute for the switches. This worked with the EZIO as it should, but the Watercop didn't tolerate the relays well, giving off an ominous buzzing every time the state changed. Rather than risk damaging the Watercop or experiment further with different relays, I went back to the original wiring with the Watercop indicators connected directly to the EZIO inputs.

4. The addition of the last two lines of code you suggested and a delay of a few seconds works, with the indicators changing state correctly. This works even if the Watercop is switched manually.

Thanks

I'm planning a similar setup for the garage doors this spring, which should be easier now that I've been through this and with your fine example on the SHN website.
I see there is a new Insteon device coming from Smarthome
which might be easier to use.
Item# 2450 - I/O Linc - INSTEON Low Voltage / Contact Closure Interface ( 1 In / 1 Out ). What do you think?

Jerry


__________________
Jerome
Back to Top View doctorjerry's Profile Search for other posts by doctorjerry
 
grif091
Super User
Super User


Joined: March 26 2008
Location: United States
Online Status: Offline
Posts: 1357
Posted: November 29 2008 at 16:34 | IP Logged Quote grif091

With availability the end of December no one has any experience with the device. Even if it slips as the motion detector did several times one would expect it to be available by spring. Depends on what your plans are beyond a single door. If that is all there will be the 2450 should do the trick (without benefit of having one). Just depends on whether a 1x1 or 2x4 is the better long term fit. Because I chose to monitor both open and closed states of two doors (because they are not visible from the house) and control two door openers the 2x4 was the natural choice for me. Of course the 2450 was not an option back when I did the garage. I would need 4 of them to do what I do with the single 2X4.

EDIT: also keep in mind that with the Inputs back on the lights the Insteon network is being flooded with messages while the valve is moving. Could cause problems later if the valve is being moved coincident with other Insteon activity.     

Edited by grif091 - November 30 2008 at 05:52


__________________
Lee G
Back to Top View grif091's Profile Search for other posts by grif091
 
doctorjerry
Groupie
Groupie


Joined: November 10 2007
Location: United States
Online Status: Offline
Posts: 57
Posted: November 30 2008 at 09:49 | IP Logged Quote doctorjerry

I see your point. Monitoring both states (just as the Watercop does) is correct way. More failsafe.

__________________
Jerome
Back to Top View doctorjerry's Profile Search for other posts by doctorjerry
 
grif091
Super User
Super User


Joined: March 26 2008
Location: United States
Online Status: Offline
Posts: 1357
Posted: November 30 2008 at 10:52 | IP Logged Quote grif091

I agree completely that active monitoring of the Watercop is the correct thing to do. I think by not finding a way to do that cleanly will give you problems later on as you add more Insteon stuff. The fact that you will not be moving the water valve very often reduces that exposure. You can always come back to it later if Insteon traffic conflicts do arise. A different 5V relay, a TTL or CMOS based circuit that latches up for 1 or 2 seconds to mask the voltage swing on the valve lights, there are solutions if need be. Good luck with your garage project. Smarthome carries a wide gap magnetic contact that works well on garage doors. I used what I had in my spare parts drawer which works fine but contact spacing is important on a bay door that generally has some play in the open or closed position.   

__________________
Lee G
Back to Top View grif091's Profile Search for other posts by grif091
 
doctorjerry
Groupie
Groupie


Joined: November 10 2007
Location: United States
Online Status: Offline
Posts: 57
Posted: November 30 2008 at 14:02 | IP Logged Quote doctorjerry

I seem to have had the same thoughts. The little black box is on my workbench behind a few more immediate projects.
I just might call Watercop and see if they have anything to offer.
I'm sure we'll touch bases again.

Jerry

__________________
Jerome
Back to Top View doctorjerry's Profile Search for other posts by doctorjerry
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

<< Prev Page of 2
  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum