Announcement

Collapse
No announcement yet.

Polling devices

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • tenholde
    replied
    Thanks again

    Leave a comment:


  • spud
    replied
    Originally posted by tenholde View Post
    Not only does my device poll now work for the PCS KPLD7, but I see that when your plugin sees the STOP FADE that it automatically polls the device and updates the HS Device with the proper level.

    Do you do that for all devices? If so, this saves me a lot of coding if I can depend upon the level being updated and don't have to poll a list of devices, as it is taking about a second per poll when I do it, and without more difficult coding, my Alexa scripts would time out.

    Thanks a lot for the quick response.
    Yes it works like that for all devices. It wasn't working for keypads because I didn't know how to parse the poll response, but now it works for at least the PCS KPLD7, not sure about the other keypads though.

    Leave a comment:


  • tenholde
    replied
    Not only does my device poll now work for the PCS KPLD7, but I see that when your plugin sees the STOP FADE that it automatically polls the device and updates the HS Device with the proper level.

    Do you do that for all devices? If so, this saves me a lot of coding if I can depend upon the level being updated and don't have to poll a list of devices, as it is taking about a second per poll when I do it, and without more difficult coding, my Alexa scripts would time out.

    Thanks a lot for the quick response.

    Leave a comment:


  • spud
    replied
    Please test version beta 3.0.0.52. Thanks

    Leave a comment:


  • tenholde
    replied
    spud,

    Thanks. Attached are three files with log with load OFF, load 50%, and load 100%

    tenholde
    Attached Files

    Leave a comment:


  • spud
    replied
    I need to know how to handle state report messages from keypads.
    Please install version beta 3.0.0.51, and record one debug log for each of these scenarios
    (a) polling keypad while load is Off
    (b) polling keypad while load is 100%
    (c) polling keypad while load is around 50%

    Leave a comment:


  • tenholde
    replied
    Originally posted by tenholde View Post

    Also, (1) use the "UPB Action > Poll Device State" from an event still doesn't work
    spud: I was wrong about the Event Action. It works for most devices, I was trying it for the KPLD7, which is the exception.

    tenholde

    Leave a comment:


  • tenholde
    replied
    spud,

    The poll does not appear to work for a PCS KPLD7 7-button Load Controller. This device does control a load, but when I request a poll via script call, no UPB poll request is transmitted. The .upe entry for these devices show:

    Code:
    Manufacturer=PCS  (1)
    Product ID=KPL[B]D[/B]7   (75)
    Kind=Keypad   (1)
    [B]# channels=1[/B]
    # transmit=7
    # recieve = 16
    I'm guessing that this is being treated as a no-load controller, so no poll request is sent. Could you look at this to see if the KPLD7 can be polled, and if it is a straight-forward change to make to the plugin?

    Thanks,

    tenholde

    Leave a comment:


  • tenholde
    replied
    The following worked for me to poll a UPB Device: hs.PluginFunction("UPBSpud", "", "PollDevice", {1581})

    Spud, thanks for your help. Great plugin.

    Leave a comment:


  • tenholde
    replied
    Originally posted by spud View Post

    Try to select a specific device and then select back "All", that should fix the problem. I will fix this problem properly in the next version.
    Also, (1) use the "UPB Action > Poll Device State" from an event still doesn't work

    Leave a comment:


  • tenholde
    replied
    Originally posted by spud View Post

    Please stop posting the same question in every thread.
    As stated above to poll a UPB device you can either:

    (1) use the "UPB Action > Poll Device State" from an event

    or

    (2) select the device you want to poll from the device management page then click the "Poll devices for status" button

    As the UPB plugin implement the following function in its interface for (2), it is also available from script

    Code:
    public IPlugInAPI.PollResultInfo PollDevice(int dvref)
    Thank you for your response. The script call is what I was looking for, and I could not find any documentation nor forum entry describing it. I'll give it a try.

    Not everyone that might have an answer is following every discussion. What is the problem with posting a request in several different discussions relevant to the question?

    Leave a comment:


  • spud
    replied
    Originally posted by tenholde View Post
    Is there a way to poll a device for its actual status? From a script? There are times when UPBspud is not accurately reflecting the status of an actual device. For instance, if you manually dim a light from a wall switch that does not have the capability of reporting its device's load after a manual change (PCS KPLD7), then UPBspud plugin has no way of knowing how dim the light is, so it reflects the HS device as OFF, even though it is on (dim).
    Please stop posting the same question in every thread.
    As stated above to poll a UPB device you can either:

    (1) use the "UPB Action > Poll Device State" from an event

    or

    (2) select the device you want to poll from the device management page then click the "Poll devices for status" button

    As the UPB plugin implement the following function in its interface for (2), it is also available from script

    Code:
    public IPlugInAPI.PollResultInfo PollDevice(int dvref)

    Leave a comment:


  • tenholde
    replied
    Is there a way to poll a device for its actual status? From a script? There are times when UPBspud is not accurately reflecting the status of an actual device. For instance, if you manually dim a light from a wall switch that does not have the capability of reporting its device's load after a manual change (PCS KPLD7), then UPBspud plugin has no way of knowing how dim the light is, so it reflects the HS device as OFF, even though it is on (dim).

    Leave a comment:


  • spud
    replied
    Originally posted by Overst View Post
    Attempting to add a poll all to an event gives the following error:Event Time Triggered Events 7:25 AM plugin action failed:Input string was not in a correct format.
    Try to select a specific device and then select back "All", that should fix the problem. I will fix this problem properly in the next version.

    Leave a comment:


  • Overst
    replied
    polling error

    Attempting to add a poll all to an event gives the following error:Event Time Triggered Events 7:25 AM plugin action failed:Input string was not in a correct format.

    Leave a comment:

Working...
X