Closed ryanrs-chang closed 5 years ago
Tks for this, I went and made a minor change to the code and it should now look at the service config.json option and use the value as part of the call to sensor.read
So if service is
"service": "dht22"
It should pass 22 as the sensor type
And if service was
"service": "dht11"
It should now pass an 11
This is with version v0.1.26
@NorthernMan54 after last commit my DHT22 stop working =( in logs i get: [2019-5-13 21:27:45] [dht22] Error: Error: sensor type is invalid
Config:
{
"accessory": "Dht",
"name": "dht22",
"name_temperature": "Temperature",
"name_humidity": "Humidity",
"service": "dht22",
"refresh": "30"
},
Please install the latest version, v0.1.27. Small typo on my part. For your dht11, please change service to "dht11"
Thanks, last version help me :) (I just update, don’t change config)
Glad to hear your good to go
Hi,
I must modify the read method of
getDHTTemperature
instead of