/**
* Candeo C-ZB-SESO Zigbee Soil Sensor
* Reports Temperature Events
* Reports Humidity Events
* Reports Battery Events
*/
metadata {
definition(name: 'Candeo C-ZB-SESO Zigbee Soil Sensor', namespace: 'Candeo', author: 'Candeo', importUrl: 'https://raw.githubusercontent.com/candeosmart/hubitat-zigbee/refs/heads/main/Candeo%20C-ZB-SESO%20Zigbee%20Soil%20Sensor.groovy', singleThreaded: true) {
capability 'TemperatureMeasurement'
capability 'RelativeHumidityMeasurement'
capability 'Battery'
capability 'Sensor'
capability 'Configuration'
fingerprint profileId: '0104', endpointId: '01', inClusters: '0004,0005,EF00,0000,ED00', outClusters: '0019,000A', manufacturer: '_TZE284_aao3yzhs', model: 'TS0601', deviceJoinName: 'Candeo C-ZB-SESO Zigbee Soil Sensor'
fingerprint profileId: '0104', endpointId: '01', inClusters: '0004,0005,EF00,0000,ED00', outClusters: '0019,000A', manufacturer: 'Candeo', model: 'C-ZB-SESO', deviceJoinName: 'Candeo C-ZB-SESO Zigbee Soil Sensor'
}
preferences {
input name: 'deviceDriverOptions', type: 'hidden', title: 'Device Driver Options', description: 'The following options change the behaviour of the device driver, they take effect after hitting "Save Preferences below."'
input name: 'loggingOption', type: 'enum', title: 'Logging Option', description: 'Sets the logging level cumulatively, for example "Driver Trace Logging" will include all logging levels below it.
', options: PREFLOGGING, defaultValue: '5'
input name: 'platformOptions', type: 'hidden', title: 'Platform Options', description: 'The following options are relevant to the Hubitat platform and UI itself.'
}
}
import groovy.transform.Field
private @Field final String CANDEO = 'Candeo C-ZB-SESO Device Driver'
private @Field final Boolean DEBUG = false
private @Field final Integer LOGSOFF = 1800
private @Field final String TUYACLUSTER = 'EF00'
private @Field final List