From: Kevin R. K. <ke...@kr...> - 2013-02-16 21:32:42
|
Oops sorry, I should have been more clear. $f_kit_main_Lt_ma is the name of one of my devices. You need to replace it with one of your device names and then duplicated that line for each of your devices. On Feb 16, 2013 1:11 PM, "jamby" <hoo...@us...> wrote: > Kevin Robert Keegan wrote > > Jim, > > > > Yeah, I am not sure what I meant either. It was more thinking out loud > > than actual help. Let's see what I can do. > > > > I am assuming you are trying to control your lights from: > > Misterhouse->Lights and Appliances ->*Some Group* > > Yes I am using the old web interface http://ip:8080/ia5 > Misterhouse->Lights and Appliances ->Browse Lights > > > Is that right? I only see On/Off for all of my devices there. I do > > remember the old MH had more options, I can't remember were they in a > drop > > down menu? > > Mine shows a icon for the present state ON/OFF/DIM/% then two arrows (one > up one down) for brighten/dim, > then a drop down with various choices, then selectable text with the item > name that works to turn it ON/OFF. > > > Ok, so after some tinkering, yes I can help you make that work again, but > > it isn't pleasant. To do so, you need to create a user code file. Say > > cmd_states.pl. The content needs to be: > > > > # Category = Insteon > > > > #@ Add states to web interface > > > > $f_kt_main_lt_ma->set_states(('off', '20', '40', '60', '80', 'on')); > > Tried to follow your directions. > > Added statement to mh.mine.ini : > #html_alias_my_mh = /mister/web/jrh1 > html_select_length=3 > telnet_exit_banner=Adios > > Created the file : > cmd_states.pl : > # Category = Insteon > # > #@ Add states to web interface > $f_kt_main_lt_ma->set_states(('off', '20', '40', '60', '80', 'on')); > # > # end cmd_states.pl > > > You need to have one line like that for each device you want to affect. > > At > > a more advanced level, you could create a loop through Switchlincs and > > Keypadlincs. But this basic thing will work. > > I added one line for each of the two defined switchLink devices in my > setup. > Maybe someday more will be added but thats sometime off. > > > Now make sure this new user file is enabled. Reset MH. > > > > You should now see a list of options were previosly there was only > on/off. > > > > In order to get a drop down list I had to add the following to > > mh.private.ini > > > > html_select_length=3 > > > > Hope that helps, > > > > Kevin > > When I restart MH it fails with this message in the startup.log > Error in user code file ./../data/mh_temp.user_code > > 02/16/13 01:04:17 PM: Global symbol "$f_kt_main_lt_ma" requires explicit > package name at (eval 422) line 2874. > Global symbol "$f_kt_main_lt_ma" requires explicit package name at (eval > 422) line 2875. > Line 2869: $Category = 'Insteon'; > Line 2870: # > Line 2871: > Line 2872: #@ Add states to web interface > Line 2873: > Line 2874: $f_kt_main_lt_ma->set_states(('off', '20', '40', '60', '80', > 'on')); > Line 2875: $f_kt_main_lt_ma->set_states(('off', '20', '40', '60', '80', > 'on')); > Line 2876: $Benchmark_Members{'cmd_states'} += &get_tickcount - > $benchmark_tickcount if $benchmark_tickcount and > $Benchmark_Members{on_off_flag}; > Line 2877: > Line 2878: } # End of > cmd_states#------------------------------------------------- > Line 2879: > > > > Kevin thanks for your help. This issue with the web control is minor. If > this is dragging you away from more important things, don't worry about > it. > The other issue is, as I explained before I am not for sure I am using the > latest/correct code release. > Jim > > > > > > > > -- > View this message in context: > http://misterhouse.10964.n7.nabble.com/insteon-working-but-no-dim-tp17161p17190.html > Sent from the Misterhouse - User mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, > is your hub for all things parallel software development, from weekly > thought > leadership blogs to news, videos, case studies, tutorials, tech docs, > whitepapers, evaluation guides, and opinion stories. Check out the most > recent posts - join the conversation now. > http://goparallel.sourceforge.net/ > ________________________________________________________ > To unsubscribe from this list, go to: > http://sourceforge.net/mail/?group_id=1365 > > |