"Pollster" - A SmartThings Polling Daemon

smartapp_misc

(Geko) #1

Please note that excessive polling of some devices (particularly Zigbee and Z-Wave) may cause network congestion and lead to degraded system performance. Therefore, polling rate faster than 5 minutes is not recommended. The author of this software bears no responsibility for your system performance. Use it at your own risk.


I don’t claim originality of the idea, but I needed one badly for some of my projects and didn’t find anything among the shared apps. So there it is…

Many SmartThings devices rely on polling to periodically update their status. These devices have ‘polling’ capability and provide poll() function that the SmartThings polling engine calls approximately once every 10 minutes. Unfortunately, SmartThings polling engine proved to be unreliable and sometimes it stops working for hours and even days.

Here comes Pollster to the rescue! Pollster is a polling daemon that calls poll() function periodically for selected devices. Polling interval is user-configurable and can be as short as one minute.

More information and installation instructions can be found on the GitHub page.


Getting Kinda nervous about the future of this platform
Cree & GE ZigBee Bulb Issues
[Release] Updated Open Source Ecobee Device Type and SmartApps
New Hue Hub and Siri
CT100 not reporting temperature changes
SimpliSafe Alarm Integration (cloud to cloud)
How do I add Nest Thermostat into ST?
Nest Thermostat
Trying to get the AEON Smart Energy Switch to publish data
Event log flooded with "devicetype:04...." messages after firmware upgrade
Harmony Home Control
Wemo light switch reporting issues
Lowe's Iris Sensors (New CentraLite models)
Keep me cozy II not correctly setting my thermostat
BBQ Guru CyberQ Temp Controller
Smartthings does not know the state of my devices
New to SmartThings. Existing INSTEON, ISY, NEST, SONOS, ... user
ST Hub2 Keeps Losing Belkin WeMo Outlets
Another MYQ garage door thread
Cree to offer Zigbee LED smart bulb
Poll vs. schedule: issue with HubAction
Getting Ubi Sensor Data the Hard Way... Or how I stopped worrying and learned to love the XMLslurper
King on the hill: Who makes the most accurate temp sensor
[RELEASE] Yamaha Network Receiver Basic Integration
UV Monitor, app to alert about sun danger
Laundry Monitor
Updated : GE Link Bulbs - FINALLY getting ON status after manually turning on!
Thermostat Recommendations? Need 4x!
Nest Thermostat Device Type w/Multi-Tile
Nest away mode
GE / Jasco In-Wall Switch Model 45856
HVAC IR Extender (Remotec ZXT 120) (2014)
Honeywell Smart Wi-Fi Thermostat Compatibility
Polling not running?
Nest Products
Nest + Temperature Based Thermostat SmartApp = Fail (now a WIN!)
Scheduler and Polling quits after some minutes, hours, or days
Yale Smartphone Alarm System integration
Does SmartThings control a Samsung Smart TV?
WTH happened to my great SmartThings system?
Logitech Harmony - Consistent Integration Issues
Help with refreshing garage controller automatically
Emulate 2-way switch using Smart lights
[RELEASE] Xiaomi Sensors and Button (beta)
How to keep app refreshing device status constantly
[BETA] Hue Motion Sensor (beta) (no hue bridge)
Xiaomi Zigbee Outlet (Steps to Pair any Xiaomi Zigbee device!)
[RELEASE] Leviton Decora Z-Wave Plus Dimmers (DZ6HD & DZ1KD)
[DEPRECATED] Tado Cooling Integration
[RELEASE] Enhanced Z-Wave Plus Thermostat (CT30/CT50/CT80/CT100/CT101/CT110/ZTS110/ZTS500/GoControl/Honeywell/Universal) Device Handler with Battery, Humidity, Lock Controls, Clock Set, Alarm, Swing/Temp, Deadband Configuration and Updated User Interface
[RELEASE] Enphase Envoy (local access)
Fibaro Motion Sensor - New device-handler with all settings and auto sync feature
$9 Zigbee Xiaomi Door/Window Sensors (works for some people)
How do I add Nest Thermostat into ST?
Issue with Nest on ST
3M-50 Wireless Thermostat
[Release] Weather Station Tile 2.0
eGauge Energy Monitor (Solar)
Intermatic PE653 Pool Control System
Efergy Engage Elite Energy Monitor
Nest Protect Device Type
Tile auto refresh?
Introducing "Yet Another Power Monitor"
Honeywell Smart Wi-Fi Thermostat Compatibility
(Marc) #2

This is great! @essidle @steveganz…check this app out as it will update the MyQ status within a minute, even if you open it outside of SmartThings app. I now added my MyQ doors into my Doors & Locks section since it updates properly. I also used this app to update my Nest thermostats.


(Jose S) #3

Great having this. Thank you. Just like the previous poster, this is excellent for us MyQ people.


(A2thejay23) #4

just curious…is there much difference between this app and the one created in this post by @sherrell ?

http://community.smartthings.com/t/polling-not-working-for-custom-device-type/2787/16?u=a2thejay23

(Geko) #5

It looks very similar indeed. The only major difference I could find is that the author uses runIn() to schedule the polling task and have to calculate polling interval every time it runs, whereas my version sets up a cron job when that app is installed, which is slightly more efficient in my opinion.


(Steve Herrell) #6

Agreed - schedule() is probably more efficient. I was still getting to grips with the API when I wrote that app.

Still am getting to grips with it…


(Greg) #7

I installed this app to fix the tcp lights not reporting as on in the ST app after a power outage (or after using the physical switch)

The polling is showing up in my activity feed but it’s not actually updating the light status? Am I doing something wrong?


(Geko) #8

Sorry, I don’t have TCP lights to try it out. It may be helpful to look at event logs in IDE.


(Greg) #9

this is all it shows in the log the last time it ran

7a3d776f-98ad-45b0-9816-bd3d251d445c
1:40:22 PM:
debug
Executing poll()

a6c37e77-1b7a-4156-8f42-26e704c6e622
1:40:22 PM:
debug
Executing poll()

a6c37e77-1b7a-4156-8f42-26e704c6e622
1:40:12 PM:
debug
Executing poll()

7a3d776f-98ad-45b0-9816-bd3d251d445c
1:40:11 PM:
debug
Executing poll()

on the activity log it does show the app sent the poll command


(Greg) #10

just wanted to report back that I found out the issue was my TCP integration broke up some how. I assume from power outages. My ST app was reporting the lights were going on and off according to schedules (but they really weren’t going on or off at all, but in app they were acting as they should - didn’t realize this until I went outside and looked one time).

so pollster was running but not returning a state. I made a MAC reservation for the TCP gateway and re ran TCP connect and now everything is working fine - including pollster.

Very happy with this app!


(Mike) #11

This is where I lose you. When I tap on the “+” I don’t see "MyApps by swiping the menu ribbon. The last menu item I see is “More” after “Actions”. How do I proceed?


(Alex) #12

You probably need to go back into the IDE and publish the app.


(Mike) #13

I got it to work on IDE. But there’s no visible way to set it through the app I can see.


(Geko) #14

I believe you need to log out of the mobile app and then log back in to see your self-published smart apps.


(Mike) #15

Ah ha. That did it. Thanks!


(Mike) #16

But when I did that, now my Nest Thermostat module isn’t updating. Ugh


(Geko) #17

Pollster Version 1.1 is released.

What’s new?

  • You can now arrange devices into four polling groups with independently configurable polling intervals.
  • Setting polling interval to zero will stop polling for that group. You don’t have to remove devices from the group.

About Pollster

Many SmartThings devices rely on polling to update their status periodically. These devices have ‘polling’ capability and provide poll() function that the SmartThings polling engine calls approximately every 10 minutes. Unfortunately, the SmartThings polling engine proved to be unreliable and sometimes it stops working for hours and even days.

Here comes Pollster to the rescue! Pollster is a polling daemon that calls poll() function periodically for selected devices. Devices can be arranged into four groups with independently configurable polling intervals. The polling interval can be as short as one minute.

Pollster is a shared community SmartApp and is available in the “Convenience” section of the shared apps catalog.

The source code is at https://github.com/statusbits/smartthings/


New version of Ecobee thermostat APIs
(Tim Slagle) #18

Super cool! Keep up the good work man!


(Tim Slagle) #19

Seems to not be working as reliably for me :frowning:

Edit: Looks like i had to add something to all groups. then it started working


(Greg) #20

mine is working with only one group.

would really like to see multi’s be polled. occasionally my garage door shows the wrong value.