This tile is good for receiving integers that increment at a set value within a set range.
This is a unique String ID assigned to this tile and is used (by you) to identify what tile sent what data by your script.
Note that this is case sensitive, and cannot contain any white space.
Here you can set how the stepper responds by setting a maximum, a minimum, and a step value for the stepper. Step value is the amount the value of the tile increments or decrements by, when + or - is tapped.
You can set the current value of the numeric stepper by sending an integer value.
Integer → An integer in the range set in the tile settings. → Set the value of the tile.
Set the value of the numeric stepper to 1.
self.force.sendMessage("Jordan's iPhone", "Stepper", 1)
The following is what data is sent from this tile to the server/your script. It is in the format:
Action → Data Type → Value
Stepper Value Changed → Integer → An Integer between set range.
Note that a tile's tag is always sent to the server for identification purposes.
Set the gearing number to the value received.
def forceServerDidReceiveData(self, deviceName, senderTag, data): if senderTag == "Stepper": self.setGearingTo(data)