MvdDonk / brewfather

Brewfather integration for Home Assistant
11 stars 3 forks source link

Temperature ramp not supported #12

Open MvdDonk opened 5 months ago

MvdDonk commented 5 months ago

Temperature ramp does not seem to work. Looks like the "current temperature" becomes undefined when temperature ramp has started.

Brewfather recipe: image

Home Assistant timeline: image

Home Assistant current: image

https://api.brewfather.app/v2/batches/318gNrkT1a66BSLH8TIwTSIYLuIhik?include=recipe.fermentation,notes,measuredOg

{
  "_id": "318gNrkT1a66BSLH8TIwTSIYLuIhik",
  "name": "Batch",
  "batchNo": 44,
  "status": "Fermenting",
  "brewer": null,
  "brewDate": 1705791600000,
  "recipe": {
    "name": "Dark Mild Ale ",
    "fermentation": {
      "name": "Ale",
      "_id": "default",
      "steps": [
        {
          "actualTime": 1705791600000,
          "stepTemp": 18,
          "displayPressure": null,
          "ramp": null,
          "displayStepTemp": 18,
          "pressure": null,
          "type": "Primary",
          "stepTime": 7
        },
        {
          "actualTime": 1706655600000,
          "stepTemp": 21,
          "displayPressure": null,
          "actualRampTime": 1706396400000,
          "ramp": 3,
          "pressure": null,
          "displayStepTemp": 21,
          "type": "Primary",
          "stepTime": 4
        }
      ]
    }
  },
  "notes": [
    {
      "note": "",
      "type": "statusChanged",
      "timestamp": 1705839961742,
      "status": "Fermenting"
    }
  ]
}
geoff035 commented 1 month ago

Hey @MvdDonk,

Firstly, just want to say thanks so much for making this integration available on HACS, its super useful and I'm loving it. I hit the wall with this issue of the temp ramp not working myself. As I often have multiple batches fermenting at a time, I have made an input select for each of my fermenters so I can select the right batch that is currently fermenting in each fermenter. This allows me to pull just the batch information relevant to the specific fermenter into a separate sensor so I can manipulate the times and temperatures and automate my heaters and coolers. One thing I am currently working on is trying to ramp the temperature at either the date set in brewfather or at 75% attenuation (whichever is first) and to do this I need the estimated FG number. At the moment I am just using an input text to manually add the FG but it would be awesome if you could update the integration to include the estimated FG from the brewfather API.

Cheers, Geoff