-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integration fails to keep a connection with the grill. #61
Comments
Yeah, this is a common problem. There's some strange interactions between the esphome ble stack and the controllers on the grills that I haven't quite nailed down. You can try tweaking the esphome settings as suggested here: home-assistant/core#79930 (comment) In my experience, the retries eventually work, but they do leave a lot of log spam. I don't think I've tried tweaking the esphome settings myself, but I may do that before the next time I fire up my smoker. |
I'm having a similar problem, with the exception that I'm not using an ESP32. Admittedly there's some distance between where my smoker is located and where my NAS (which is running the HA VM & has the BT receiver plugged into it). However, it detected my grill no problem during the configuration phase. |
So I actually made a config change to ESP home and completely reinstalled the pitboss integration and same thing. The devices menu after a few minutes upon reboot sees the pitboss grill and adds it successfully but when viewing the entities they are all unavailable. Logger: homeassistant Error doing job: Task exception was never retrieved (None) The above exception was the direct cause of the following exception: Traceback (most recent call last): The above exception was the direct cause of the following exception: Traceback (most recent call last): The above exception was the direct cause of the following exception: Traceback (most recent call last): Output from ESP: |
Any updates on this, I'm having the same issues. Got everything connected but all sensors are unavailable. |
Since I've flashed my ble proxies with the arduino framework, the grill connects and works fine. This integration crashes and reboots esp32 boards ble proxies flashed with the esp-idf framework. |
I wish there were something more I could do here. The grill/smoker bluetooth protocol requires an active connection from HA, which is way different from how most HA bluetooth integrations work. Typically bluetooth integrations in HA assume you can read data passively through BLE advertisements, but there aren't any advertisements exported by the grills. It's not a great protocol implemented by the PitBoss developers, IMHO: it works by spitting out a strangely encoded message on the debug logging GATT service provided by Mongoose OS. On the plus-side, that GATT service supports bluetooth subscriptions, so you can subscribe to real-time updates. But the down-side is that you can't just passively watch advertisement data and have to stay connected to the grill. |
Thanks for the insight. I keep checking on this to see if there is a solution and just looks like poor ble coding from pitboss. The actual app also uses WiFi. Is there a limitation in creating an implementation that uses WiFi instead. |
The WiFi protocol uses AWS IoT Device Shadow which sends MQTT notifications to Amazon servers. IIRC the topics only allow one subscriber at a time, so if you open the PitBoss app at the same time it will disconnect any other connections. It may be possible to override the MQTT server it's sending notifications to and have it instead send to a local one (i.e. one run by a HA AddOn) but then your PitBoss app will for sure stop working, and I'm not sure what else might break by doing that. |
@dknowles2 i wouldnt mind this honestly, I have other apps where I can't login using the native app (Roomba, petkit feeder, etc). If I can get it running in HA and stop using pitboss app, I think that would be fine since my goal is to have all my stuff in a singular place. Just my 2 cents though |
System Health details
System Information
Home Assistant Community Store
Home Assistant Cloud
Home Assistant Supervisor
Dashboards
Recorder
Checklist
Describe the issue
Hello I have a PB1100PSC2, this integration can see my grill and add it to HA, but all of the sensors are unavailable. I am running HA through a VM on Windows via VMware. I have tried using the onboard BLE devices with the passthrough and I have even setup a BLE proxy. While HA can at first see the grill, it cannot seems to keep the connection. Meanwhile my phone that is sitting in the same location can connect to the grill via BLE without issues.
Reproduction steps
Debug logs
Diagnostics dump
No response
The text was updated successfully, but these errors were encountered: