We have moved at community.getvera.com

Author Topic: newActivityID  (Read 366 times)

Offline Buxton

  • Full Member
  • ***
  • Posts: 209
  • Karma: +12/-0
newActivityID
« on: December 04, 2018, 06:12:37 pm »
Hi Rene,

Using your plugin with openLuup and all works well.  My scenes of course use variables as triggers and action commands, so I wanted to know if the "newActivityID" variable stays constant across luup reloads.  For example, the following command/variable combination switches my AV receiver to a firestick input: "Harmony1&action=StartActivity&newActivityID=30683682"

It's the hard value of the newActivityID that has me asking this--- to forestall any trouble caused by reloads (which happen as I add/delete devices etc.) as I don't see any way to hard map a newActivityID to a given device.

Thx in advance.

Offline rafale77

  • Community Beta
  • Hero Member
  • ******
  • Posts: 1749
  • Karma: +101/-27
  • HA ≠ IoT as a blue sky is cloudless.
Re: newActivityID
« Reply #1 on: December 04, 2018, 10:36:41 pm »
The Activity ID is consistent upon reloads. I have a lot of scenes using the current Activity ID and new Activity ID variables either as conditional or as variable to change.
openLuup (79 devices, 141 scenes, 19 apps) master to VeraPlus (142 zwave nodes, 8 Zigbee nodes, 221 devices,  20 scenes , 2 apps) +  Hubitat (15 Zigbee nodes) + Home-Assistant (API Integrations). Bridged to Siri and Alexa. Homewave. VeraPlus ExtRooted and mios server independent.

Offline reneboer

  • Moderator
  • Hero Member
  • *****
  • Posts: 1574
  • Karma: +110/-31
Re: newActivityID
« Reply #2 on: December 05, 2018, 06:15:44 am »
Hi Buxton,

The values for the activity IDs map with the Harmony configuration. Only if you remove an activity from the Hub configuration the activity ID will be removed. Likewise new values will appear on newly created activities. I.e. their values are not specific to the plugin and are never changed by the plugin.

Cheers Rene

2xVeraLite, VeraEdge, openLuup, ALTUI, 20 switches, 10 dimmers, 20 sensors, 10 scene controllers, 1 Harmony Hub, many plug-ins. Not enough time.

Offline Buxton

  • Full Member
  • ***
  • Posts: 209
  • Karma: +12/-0
Re: newActivityID
« Reply #3 on: December 06, 2018, 07:35:59 pm »
OK great, good to know.