Closed Asinke closed 5 years ago
you have to wait some minutes for log entries like this
[D][xiaomi_ble:118]: Got Xiaomi Mi Jia (58:2D:34:31:8A:60):
[D][xiaomi_ble:121]: Temperature: 27.6°C
[D][xiaomi_ble:124]: Humidity: 64.1%
[D][sensor:092]: 'studio_temperature': Sending state 27.60000 °C with 1 decimals of accuracy
[D][sensor:092]: 'studio_temperature': Sending state 27.60000 °C with 1 decimals of accuracy
[D][sensor:092]: 'studio_humidity': Sending state 64.10000 % with 1 decimals of accuracy
[D][esp32_ble_tracker:147]: Starting scan...
[D][xiaomi_ble:118]: Got Xiaomi Mi Jia (4C:65:A8:D8:AD:7D):
[D][xiaomi_ble:121]: Temperature: 25.4°C
[D][xiaomi_ble:124]: Humidity: 78.2%
[D][sensor:092]: 'bathroom_temperature': Sending state 25.40000 °C with 1 decimals of accuracy
[D][sensor:092]: 'bathroom_humidity': Sending state 78.20000 % with 1 decimals of accuracy
[D][sensor:092]: 'bathroom_humidity': Sending state 78.20000 % with 1 decimals of accuracy
[D][esp32_ble_tracker:470]: Found device 58:A2:07:C2:88:2C RSSI=-62y
I never ever see the ‘ sensor:092 ‘ lines as per below example, I guess > 30 minutes should do? Will this event also trigger the sending of the data through MQTT?
On 29 Jul 2019, at 12:28, b2un0 notifications@github.com<mailto:notifications@github.com> wrote:
you have to wait some minutes for log entries like this
[D][xiaomi_ble:118]: Got Xiaomi Mi Jia (58:2D:34:31:8A:60):� [D][xiaomi_ble:121]: Temperature: 27.6°C� [D][xiaomi_ble:124]: Humidity: 64.1%� [D][sensor:092]: 'studio_temperature': Sending state 27.60000 °C with 1 decimals of accuracy� [D][sensor:092]: 'studio_temperature': Sending state 27.60000 °C with 1 decimals of accuracy� [D][sensor:092]: 'studio_humidity': Sending state 64.10000 % with 1 decimals of accuracy�
[D][esp32_ble_tracker:147]: Starting scan...� [D][xiaomi_ble:118]: Got Xiaomi Mi Jia (4C:65:A8:D8:AD:7D):� [D][xiaomi_ble:121]: Temperature: 25.4°C� [D][xiaomi_ble:124]: Humidity: 78.2%� [D][sensor:092]: 'bathroom_temperature': Sending state 25.40000 °C with 1 decimals of accuracy� [D][sensor:092]: 'bathroom_humidity': Sending state 78.20000 % with 1 decimals of accuracy� [D][sensor:092]: 'bathroom_humidity': Sending state 78.20000 % with 1 decimals of accuracy� [D][esp32_ble_tracker:470]: Found device 58:A2:07:C2:88:2C RSSI=-62�y�
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/esphome/issues/issues/554?email_source=notifications&email_token=AHUJYVBAJT24TTAFAMUVKHDQB3A3PA5CNFSM4IHM3EJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3AJIPA#issuecomment-515937340, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AHUJYVBEXWMNEAA6DFYO7H3QB3A3PANCNFSM4IHM3EJA.
exactly! if the ble tracker nothing found, nothing sends to MQTT..
check the mac address from your sensor, remove the quotes in the yaml and put the sensor beside the esp for testing purpose.
Problem solved! The issue was in white space in the friendly name for the sensor
Incorrect: platform: xiaomi_mijia mac_address: 4C:65:A8:DD:16:7E temperature: name: living temperature
Correct: platform: xiaomi_mijia mac_address: 4C:65:A8:DD:16:7E temperature: name: living_temperature
Now the sensor is correctly identified and the sensor state is sent to mqtt
Thanks for the quick and excellent support!
On 29 Jul 2019, at 14:07, b2un0 notifications@github.com<mailto:notifications@github.com> wrote:
exactly! if the ble tracker nothing found, nothing sends to MQTT..
check the mac address from your sensor, remove the quotes in the yaml and put the sensor beside the esp for testing purpose.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/esphome/issues/issues/554?email_source=notifications&email_token=AHUJYVEBTQWDXJUKWUTK6G3QB3MOPA5CNFSM4IHM3EJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3APZVA#issuecomment-515964116, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AHUJYVENMZGXI36GU3MOGADQB3MOPANCNFSM4IHM3EJA.
White space is certainly allowed on devices names
Yes, whitespace is allowed in sensor names. But I think you just listened on the wrong topic. Anyway, I will close this issue since OP has solved his issue, if there are others please open new issues (though I doubt this is really an issue, as I said wrong topic maybe).
Operating environment/Installation (Hass.io/Docker/pip/etc.):
pip
ESP (ESP32/ESP8266, Board/Sonoff):
ESP32-Wrover 4Gb
Affected component:
https://esphome.io/components/mqtt.html
Description of problem:
Temperature and humidity values not published to MQTT Broker
Problem-relevant YAML-configuration entries:
Logs (if applicable):
Additional information and things you've tried: