{"action":"created","issue":{"url":"https://api.github.com/repos/home-assistant/homebridge-homeassistant/issues/160","repository_url":"https://api.github.com/repos/home-assistant/homebridge-homeassistant","labels_url":"https://api.github.com/repos/home-assistant/homebridge-homeassistant/issues/160/labels{/name}","comments_url":"https://api.github.com/repos/home-assistant/homebridge-homeassistant/issues/160/comments","events_url":"https://api.github.com/repos/home-assistant/homebridge-homeassistant/issues/160/events","html_url":"https://github.com/home-assistant/homebridge-homeassistant/issues/160","id":230181587,"number":160,"title":"Temperature and Humidity Sensors from Platform MQTT do no appear","user":{"login":"pplucky","id":16407309,"avatar_url":"https://avatars0.githubusercontent.com/u/16407309?v=3","gravatar_id":"","url":"https://api.github.com/users/pplucky","html_url":"https://github.com/pplucky","followers_url":"https://api.github.com/users/pplucky/followers","following_url":"https://api.github.com/users/pplucky/following{/other_user}","gists_url":"https://api.github.com/users/pplucky/gists{/gist_id}","starred_url":"https://api.github.com/users/pplucky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pplucky/subscriptions","organizations_url":"https://api.github.com/users/pplucky/orgs","repos_url":"https://api.github.com/users/pplucky/repos","events_url":"https://api.github.com/users/pplucky/events{/privacy}","received_events_url":"https://api.github.com/users/pplucky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-05-20T21:59:21Z","updated_at":"2017-05-21T22:36:51Z","closed_at":null,"body":"Hello.\r\n\r\nIn Home Assistant configuration file, I have defined sensors like this:\r\n```\r\nsensor:\r\n  - platform: mqtt\r\n    state_topic: \"sensor_sala\"\r\n    name: Sala\r\n    unit_of_measurement: '°C'\r\n    retain: true\r\n  - platform: mqtt\r\n    state_topic: \"sensor_quarto_diogo\"\r\n    name: Temp. Diogo\r\n    unit_of_measurement: '°C'\r\n    retain: true\r\n  - platform: mqtt\r\n    state_topic: \"sensor_quarto_diogo\"\r\n    name: Hum. Diogo\r\n    unit_of_measurement: '%'\r\n    homebridge_sensor_type: \"humidity\"\r\n    retain: true\r\n```\r\nStill then, although temperature sensors have unit of measurement 'ºC' and humidity sensors have both unit of measurement '%' and homebridge_sensor_type 'humidity' - as per the documentation, these don't seem to appear in homebridge.\r\n\r\nCan this be somehow related to mqtt platform?\r\n\r\nThanks in advance for your help."},"comment":{"url":"https://api.github.com/repos/home-assistant/homebridge-homeassistant/issues/comments/302968110","html_url":"https://github.com/home-assistant/homebridge-homeassistant/issues/160#issuecomment-302968110","issue_url":"https://api.github.com/repos/home-assistant/homebridge-homeassistant/issues/160","id":302968110,"user":{"login":"pplucky","id":16407309,"avatar_url":"https://avatars0.githubusercontent.com/u/16407309?v=3","gravatar_id":"","url":"https://api.github.com/users/pplucky","html_url":"https://github.com/pplucky","followers_url":"https://api.github.com/users/pplucky/followers","following_url":"https://api.github.com/users/pplucky/following{/other_user}","gists_url":"https://api.github.com/users/pplucky/gists{/gist_id}","starred_url":"https://api.github.com/users/pplucky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pplucky/subscriptions","organizations_url":"https://api.github.com/users/pplucky/orgs","repos_url":"https://api.github.com/users/pplucky/repos","events_url":"https://api.github.com/users/pplucky/events{/privacy}","received_events_url":"https://api.github.com/users/pplucky/received_events","type":"User","site_admin":false},"created_at":"2017-05-21T22:36:51Z","updated_at":"2017-05-21T22:36:51Z","body":"After updating Home Assistant to v0.45.0, the temperature sensors magically appeared in Homekit.\r\n\r\nStill then, the humidity sensor was stubborn and did not.\r\n\r\nIt only started to appear when I changed the config to:\r\n```\r\n - platform: mqtt\r\n    state_topic: \"sensorh_quarto_diogo\"\r\n    name: Humidity Diogo\r\n    unit_of_measurement: '%'\r\n    homebridge_sensor_type: \"humidity\"\r\n    retain: true\r\n```\r\n\r\nBasically including word humidity in the sensor name (also appearing in entity ID), along with unit of measurement, did the trick. Maybe determining humidity sensor based on homebridge_sensor_type is not working properly?"}}
{"actor":{"display_login":"pplucky"}}