jshridha / inkbird

Add inkbird BBQ thermometer into homeassistant through MQTT
61 stars 19 forks source link

Data and Status are output to the same topic #10

Closed proffalken closed 3 years ago

proffalken commented 3 years ago

Hey,

This is a great bit of code, however I'm running into an issue when using it with platforms other than HASS as those platforms can't deal with the status updates not being JSON.

There are two solutions here as I see it:

  1. Keep the topic as inkbird/status for all output, but change the format of the status message to {"current_status": "online"} or {"current_status": "offline"}
  2. Split the topics out to something like inkbird/status and inkbird/data so we can monitor the appropriate data
proffalken commented 3 years ago

Ignore me, for some reason I wasn't seeing the debug data properly, it does output to different channels!

jshridha commented 3 years ago

Wonderful! Glad you're finding it useful :)