CoRE - Get peer assistance here with setting up Pistons

@ady624, I did enable expert mode, but my Smart Weather tile is not selectable using the refreshable or pollable devices in CoRE. I’m using the SmartWeather Station Tile from the web IDE.

@underlircs , this is the code I just edited up to refresh the Weather Station. It does this triggered on motion detection events and is therefore much more reliable than relying on ST scheduling. You can install the app to yourself in the IDE, then open it up to select a motion sensor to trigger from. Motion or temperature change events from the selected motion sensor will refresh the Weather Station. It works for me as of tonight. Mike’s AutoDimmer app, combined with LUX input from a nearby Weather Underground allows me to control all of my lights based on outside light levels. I also measured power use of Zigbee bulbs when dimmed, and the power savings matches to dimming percentage in a fairly linear manner. This has helped us knock 38% from our home power consumption in combination with all the ST automations.

To summarize, Mike’s AutoDimmer app controls all my dimming based on LUX values from the Smart Weather Tile. This tile is configured to use a local Weather Underground station (about 2 kms away) for reference, and tracks very nicely to outdoor light levels. The app below just updates the Smart Weather Tile. Not sure why, but I can’t reference the Smart Weather tile in CoRE.

/**
* Manual Weather Refresh
*
* Copyright 2015 Daniel Vorster
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.01
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License
* for the specific language governing permissions and limitations under the License.
*
*/
definition(
name: "Weather Updater",
namespace: "dpvorster",
author: "Daniel Vorster",
description: "Refreshes weather tile",
category: "Convenience",
iconUrl: "https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience.png",
iconX2Url: "https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience@2x.png",
iconX3Url: "https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience@2x.png"
)

section {
input "devices", "capability.temperatureMeasurement", title: "When these devices sends events", multiple: true, required: true
input "weather", "capability.relativeHumidityMeasurement", title: "Update this weather device:", multiple: true, required: true
}

def installed() {
log.debug "Installed with settings: ${settings}"
initialize()
}

def updated() {
log.debug "Updated with settings: ${settings}"
unsubscribe()
initialize()
}

def initialize() {
subscribe(devices, "temperature", appHandler)
subscribe(devices, "motion", appHandler)
weather.refresh()
}

def appHandler(evt) {
weather.refresh()
}