Bug: SwitchBot Meter not parsing Temperature
See original GitHub issueDescribe The Bug
SwitchBot Meter not parsing Temperature but is able to parse Humidity
To Reproduce
Add Meter config and enable
Expected behavior
Be able to parse both Temperature and Humidity values. Be able to display values.
Relevant log output
Switchbot BridgeSwitchBot[DEBUG] SwitchBot Meter BatteryLevel: 100, StatusLowBattery: 0
2/11/2022, 9:05:37 amSwitchbot BridgeSwitchBot[DEBUG] Meter: SwitchBot Meter Humidity: 65%
2/11/2022, 9:05:37 amSwitchbot BridgeSwitchBot[DEBUG] Meter: SwitchBot Meter Temperature: [object Object]°c
2/11/2022, 9:05:37 amSwitchbot BridgeSwitchBot[DEBUG] Meter: SwitchBot Meter updateCharacteristic CurrentRelativeHumidity: 65
2/11/2022, 9:05:37 amSwitchbot BridgeSwitchBot[DEBUG] Meter: SwitchBot Meter updateCharacteristic CurrentTemperature: [object Object]
2/11/2022, 9:05:37 amSwitchbot BridgeSwitchBot[DEBUG] Meter: SwitchBot Meter updateCharacteristic BatteryLevel: 100
2/11/2022, 9:05:37 amSwitchbot BridgeSwitchBot[DEBUG] Meter: SwitchBot Meter updateCharacteristic StatusLowBattery: 0
2/11/2022, 9:05:37 amSwitchbot BridgeERROR[Switchbot Bridge 7F57@Switch Meter 2F@@Current Temperature] characteristic value expected valid finite number and received "[object Object]" (object)
Config for homebridge-switchbot
{
"platform": "SwitchBot",
"name": "SwitchBot",
"credentials": {
"notice": "Keep your token a secret!",
"openToken": "<blah>",
"token": "<blah>",
"secret": "<blah>"
},
"options": {
"devices": [
{
"configDeviceName": "SwitchBot Meter",
"configDeviceType": "Meter",
"connectionType": "BLE",
"scanDuration": 300,
"bot": {
"deviceType": "fan",
"allowPush": true
},
"deviceId": "<blah>",
"lock": {
"hide_contactsensor": false
},
"external": false,
"meter": {
"hide_temperature": false
}
}
],
"logging": "standard"
}
}
Screenshots
No response
Device & Model
SwitchBot Meter (Firmware v2.6)
Node.js Version
16.17.0
NPM Version
8.15.0
Homebridge Version
1.5
Homebridge Switchbot Plugin Version
2.2.2
Homebridge Config UI X Plugin Version
No response
Operating System
Raspbian GNU/Linux 11 (bullseye)
Issue Analytics
- State:
- Created a year ago
- Comments:21
Top Results From Across the Web
SwitchBot Meter gives a wrong temperature/themo data or ...
SwitchBot Meter gives a wrong temperature/themo data or false read. ... 1. Please make sure that you have the latest version of the...
Read more >Problem with Android App when graphing the temperature ...
The data displayed by Meter in the app chart requires the app to actively request data from the device and is not updated...
Read more >Bug: SwitchBots Not Triggering in Home App #173 - GitHub
Install SwitchBot Plugin, Configure Token, Try to execute SwitchBots in Home app - failes. Expected behavior. Should trigger SwitchBots in Home ...
Read more >SwitchBot Meter Temperature & Humidity (Thermometer ...
The SwitchBot integration for Home Assistant does not support SwitchBot Meter Temperature & Humidity Sensors.
Read more >SwitchBot Meter - Review - YouTube
More info: https://www. switch-bot.com/products/ switchbot -meterTwitter: https://www.twitter.com/imsammyttvFacebook: ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi everyone I have the same problem. It seems that the temperature field is an object that contains both Celsius and Fahrenheit values as you can see from this log extract:
Yay thanks!