Announcement

Collapse
No announcement yet.

Status Images problem

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Status Images problem

    Hi,

    I've read quite a bit about this subject already but cannot accept the 'solutions' I have seen/read so far.

    Here's my problem. In HSTouch a status or value for a device may be linked to an image. I would like to use the status as the value is no option for me. Think of dimmer level values ranging from 0 to 100 and you can image it's a problem to link the 100 values. The status has a problem of it's own. Instead of just checking the status (like you would expect), HSTouch first parses the status string to see if an icon is in the string (why???). If there is one, it uses the icon in the string instead of the image linked to the status in HSTouch.

    On the HomeSeer status webpage I have devices with custom status strings. Consider a switch device for which I would like to use a different on/off icon than for a light dimmer. Also in some cases I would like to show different info in the status string.

    So now I have a dilemma. I can make the status page look the way I want with fancy status strings for my devices but then HSTouch uses my icons from the status strings instead of the matching graphic assigned in HSTouch. Or I can choose to leave the device status string empty in the status web page (looks bad and my extra info is missing) so my HSTouch looks great.

    Value-Status/Graphic pairs are no option either as devices like a dimmer may have 100 different values. Imagine adding 100 value-status/graphic pairs to each device...

    I have built my own ZigBee devices (switches, power meters, light dimmers etc.) with a lot of cool options and have written my own HomeSeer DLL so I can program anything I want but I don't see how I can resolve my dilemma.

    Anybody have a solution?

    Thanks!

    #2
    Are you using the latest version of HSTouch (Designer+Plugin)? I thought that all of the HTML (inc. icons) was now removed from any status tracking to the device string, so no icon should appear - unless you select the device image option.

    The ability to specify a range in HSTouch status tracking has been requested and indeed is on the to-do list IIRC, however that feature is not likely to be added for some time.

    Comment


      #3
      Thanks for your quick reply mrhappy!

      HSTouch server version is: 1.0.0.42
      HSTouch server Unlimited version is: 1.0.0.1
      HSTouch Designer is 1.0.57

      As far as I know these are the latest versions.
      What do you mean with 'unless you select the device image option'?

      If I put an icon in the status string of the device, I see the icon in the designer. If I remove the status string (make it empty) I get the image I matched to the status.

      I made a mistake with my posts, my browser kept locking up and now it seems I posted my thread 4 times. Can't seem to find where I can delete them.

      Comment


        #4
        Last edited by mrhappy; May 23, 2012, 02:55 PM.

        Comment


          #5
          Not sure why but I am not able to choose 'Use Status Text' and 'Use Value'. They are both disabled. I am using the 'Use Status Image'.

          Any idea why my other two options are disabled?

          Comment


            #6
            Originally posted by roland_scheffer View Post
            Not sure why but I am not able to choose 'Use Status Text' and 'Use Value'. They are both disabled. I am using the 'Use Status Image'.

            Any idea why my other two options are disabled?
            If your element type is an Image, then you cannot select the status text or value.
            HS4Pro on a Raspberry Pi4
            54 Z-Wave Nodes / 21 Zigbee Devices / 108 Events / 767 Devices
            Plugins: Z-Wave / Zigbee Plus / EasyTrigger / AK Weather / OMNI

            HSTouch Clients: 1 Android

            Comment


              #7
              My fault sorry I am getting confused, that is for status tracking to text - you are of course talking about icons. When you set status images you are right you only have the option to track to the icon.

              I'm not sure what to say as if you look below I am doing (what I think you are trying to, please tell me if I am not getting what you are trying to do) it without a problem. The pressure summary device is status tracked into HS and displays a seperate image per value of the device, as you can see the device has its own custom icon but this does not show up in HSTouch at all.
              Last edited by mrhappy; May 23, 2012, 02:55 PM.

              Comment


                #8
                Really appreciate your help guys. I still have a lot to learn I guess.

                The MatchMode in your screenshot is set to 'MatchValue'. In my case it's 'MatchStatus'. This is what is causing trouble as it then starts looking in the status string of the device to see if there is an icon there. If there is an icon it displays it in HSTouch instead of using the 'Image' that was matched with the state in the 'Status Image Editor' dialog (your screenshot). above.

                So why don't I just use the 'MatchValue'? Well my device can have 100 different values (dimmer levels) and that's quite a hassel to match them all to an image in this dialog.

                Comment


                  #9
                  Most probably a bug in HSTouch, I have not done anything like that before (whilst I have custom devices based on IO they all use standard HS graphics) so can't offer any advice sorry...i'll see if I can recreate it somehow

                  Comment


                    #10
                    You could call a script to reproduce it.

                    for the optional parameters (for DeviceID you can choose one of your on/off devices with the lamp):
                    ("SetString", "DeviceID")

                    The script:
                    Sub SetString(Parms)
                    hs.SetDeviceString Parms, "<img src='/Images/homeseer/water.gif' width=24 height=24 align=absmiddle> Dim, 30%, 100.0W"
                    End Sub

                    Then in HSTouch use the MatchStatus to match any images you like and you will see that you only get the water image.

                    Don't worry, if you don't feel like spending more time on this I can totally understand. Thanks!
                    Last edited by roland_scheffer; September 29, 2011, 05:32 PM.

                    Comment

                    Working...
                    X