Maybe @adam or @rsiegel can tell more about the new icon in the Humidity! I have seen that when I try to change the number of floating points decimals and then hit SAVE, the icon is automatically changed? Is this a bug or?
New icons are coming. If you donât modify the widget youâll keep the water drop but unfortunately if you need to update something there is no way to keep that icon.
Hello,
I am posting update of the code that have to be used for connection with Cayenne. The previous version has problems with âGoing Offlineâ after some time of work. This code is tested in 10 Hours continuous work.
import cayenne.client as cayenne
import time
import Adafruit_DHT
from pi_sht1x import SHT1x
import RPi.GPIO as GPIO
time.sleep(60) #Sleep to allow wireless to connect before starting MQTT
MQTT_USERNAME = "YOUR_USERNAME"
MQTT_PASSWORD = "YOUR_PASSWORD"
MQTT_CLIENT_ID = "YOUR_CLIENTID"
client = cayenne.CayenneMQTTClient()
client.begin(MQTT_USERNAME, MQTT_PASSWORD, MQTT_CLIENT_ID)
timestamp = 0
while True:
client.loop()
if (time.time() > timestamp + 5):
with SHT1x(23, 24, gpio_mode=GPIO.BCM) as sensor:
temp11 = sensor.read_temperature()
humidity11 = sensor.read_humidity(temp11)
if temp11 is not None:
client.virtualWrite(1, temp11, cayenne.TYPE_TEMPERATURE, cayenne.UNIT_CELSIUS)
if humidity11 is not None:
client.virtualWrite(2, humidity11, cayenne.TYPE_RELATIVE_HUMIDITY, cayenne.UNIT_PERCENT)
timestamp = time.time()
I need to ask that have you also worked on mesh network communications between sensor and Cayenne Platform ?
I am using wireless temp sensor which consist of SHT25 and have code from here and I was able to monitor the readings using raspberry pi and was trying to implement process by connecting the zigbee communication with Cayenne platform which help to send the readings of sensor to Cayenne server and display the readings on dashboard through smart phones
But as beginner I am searching for best suggestion which help to make it possible.
Any kind of suggestion from you for this process will be much helpful.