It looks like I could add those, based on some recent updates to their API documentation.
Please PM a screenshot of your virtual device page in Hubitat for the SwitchBot System virtual device and I'll look at adding it.
It looks like I could add those, based on some recent updates to their API documentation.
Please PM a screenshot of your virtual device page in Hubitat for the SwitchBot System virtual device and I'll look at adding it.
dm! thank you!
@tomw
Is there support for the new SwitchBot Indoor/Outdoor Thermo-Hygrometer?
I have one and can test it.
Which model are you talking about specifically?
I support the Meter and Meter Plus. And I'm about to add the humidity and temp sensors supported from the Hub 2.
Interesting, thanks for the link.
I don't see it called it separately in their API docs. If you Initialize the parent device and then refresh the browser page, does this device show up in the State Variables list?
PM me whatever you see there and I can try to make it work.
I simply added the device type "WoIOSensor" to use the Meter/MeterPlus api, seems to work ok.
(in the Switchbot System driver)

That was the info I was looking for, thanks!
Do you use my SwitchBot Events app? If so, please enable logging and try to capture a push event from this sensor so that I can support it there as well.
Temp/Humidity come through just fine, the WoIOSensor has some more advanced info
(Absolute Humidity, Dew Point, Vapor-pressure Deficit) but those aren't really necessary for me at the moment
app:14132023-05-31 10:00:55.832 AMdebugincoming event: [eventType:changeReport, eventVersion:1, context:[deviceType:WoIOSensor, deviceMac:CC8A7575B972, temperature:-19.8, humidity:81, battery:100, scale:CELSIUS, timeOfSample:1685541654823]]
app:14132023-05-31 10:00:54.591 AMdebugincoming event: [eventType:changeReport, eventVersion:1, context:[deviceType:WoHub2, deviceMac:DBFAAB07954E, temperature:22.1, humidity:47, lightLevel:5, scale:CELSIUS, timeOfSample:1685541653551]]
app:14132023-05-31 10:00:12.927 AMdebugincoming event: [eventType:changeReport, eventVersion:1, context:[deviceType:WoHub2, deviceMac:DBFAAB07954E, temperature:22.1, humidity:47, lightLevel:5, scale:CELSIUS, timeOfSample:1685541611995]]
app:14132023-05-31 10:00:00.538 AMdebugincoming event: [eventType:changeReport, eventVersion:1, context:[deviceType:WoIOSensor, deviceMac:D49F2C20F16C, temperature:22.5, humidity:64, battery:100, scale:CELSIUS, timeOfSample:1685541599564]]```
That's very interesting. Will you send a log output of a Refresh on the Meter child? I'd like to check whether it makes sense to support those on the existing Meter driver or if I should create a separate one with the additional attributes.
doesn't appear to be sending anything more than temp/humidity...
[dev:874](http://hubitat5/logs#)2023-05-31 10:51:18.210 AM[debug](http://hubitat5/logs#)resp.data = [statusCode:100, body:[deviceId:CC8A7575B972, deviceType:WoIOSensor, humidity:84, temperature:-17.3, version:V0.4, battery:100], message:success]
[dev:874](http://hubitat5/logs#)2023-05-31 10:51:17.634 AM[debug](http://hubitat5/logs#)httpGetExec([uri:https://api.switch-bot.com/v1.1/devices/CC8A7575B972/status, headers:[Authorization:57d254642b5df83eec42d02b9e25485a6ecabb958d4fd7dac642fb29fc304043a1f1d55617c72ed43fe08f9a21bdabe1, Content-Type:application/json; charset=utf8, t:1685544677632, sign:1HKSQAB+IKKTPWRVMKZDY0KQRSHT1SJOZP3U67CPANE=, nonce:]])
[dev:874](http://hubitat5/logs#)2023-05-31 10:49:26.986 AM[debug](http://hubitat5/logs#)resp.data = [statusCode:100, body:[deviceId:CC8A7575B972, deviceType:WoIOSensor, humidity:84, temperature:-17.4, version:V0.4, battery:100], message:success]
[dev:874](http://hubitat5/logs#)2023-05-31 10:49:26.527 AM[debug](http://hubitat5/logs#)httpGetExec([uri:https://api.switch-bot.com/v1.1/devices/CC8A7575B972/status, headers:[Authorization:57d254642b5df83eec42d02b9e25485a6ecabb958d4fd7dac642fb29fc304043a1f1d55617c72ed43fe08f9a21bdabe1, Content-Type:application/json; charset=utf8, t:1685544566525, sign:5TFX82XTUIMDWDVQCUEHU4TFVMWNGEB+YL4GSYIWGUC=, nonce:]])
I just posted v0.9.21, which adds support for the sensors on the Hub 2 as well as the Indoor/Outdoor Thermo-Hygrometer.
Sorry, got bogged with personal stuff.
Can confirm the latest fixes provided show the 'Outdoor Meter'.
Been working on Postman API calls to Switchbot.
Using Python and JavaScript to make queries. (JavaScript for use in Postman.)
Handles the timeout that occurs after a short period to avoid copy/paste on time, sign, and nonce variables.
The API is only sending the following data:
Devices:
{
"deviceId": "XXXXXXXXXXXX",
"deviceName": "Outdoor Meter",
"deviceType": "WoIOSensor",
"enableCloudService": true,
"hubDeviceId": "XXXXXXXXXXXX"
},
Device Status:
{
"statusCode": 100,
"body": {
"deviceId": "XXXXXXXXXXXX",
"deviceType": "WoIOSensor",
"humidity": 31,
"temperature": 15.5,
"version": "V0.4",
"battery": 100
},
"message": "success"
}
FWIW, I don't believe the battery object is valid or correct. It seems to always report a value of 100, though in the app it will actually show the correct battery value.
I didn't understand this point. Are you trying to figure out some functionality that I don't support? Or just experimenting to make your own thing?
Just experimenting...
not looking to make anything per se.
Tinkering if you will.
I'm totally lost, I tried adding as a virtual device for my switchbot switch devices I also have the Swtichbot mini hub. I have no idea why its not working. I thought going from IFTTT to hubitat would be better integrating my google home, switchbot devices, Kasa plugs and off brand smart bulbs etc. Can anyone have a video tutorial how to make virtual divice or add various manufacturers devices into hubitat? To wrok? Thanks
Are you using my integration?
If so, check out my readme on GitHub and follow the manual installation instructions. You can skip the first step about installing the code if you already installed it using HPM.
Does anyone have Blind Tilt working? I have the device handler installed and not having any luck. All my other devices were created.
Please PM the output of State Variables on the SwitchBot System device page.