Replies: 13 comments 4 replies
-
Smart home application was one of my original project! But building a whole application firmware deverted me from this goal :) As PineTime can only communicate on BLE, you'll indeed need a companion app or a bridge device to bridge your pinetime to your smart home application (OpenHAB or Home-assistant in my case). |
Beta Was this translation helpful? Give feedback.
-
Sounds like a perfect job (bridge device) for the pinecone! ;) |
Beta Was this translation helpful? Give feedback.
-
For the glorious Pebble, there are companion apps like PebbleTasker or I dread the moment when my Pebble dies and there are no more replacements. So a comparable functionality would be a great way to get people to jump onto the PineTime bandwagon. |
Beta Was this translation helpful? Give feedback.
-
I would also be very much in favour of possibilities to add smart home capabilities to the PineTime! This might be a bit of a tangent, but I wanted to share experiences briefly. In a comment in a related issue @unrelentingtech was linking to a project on Github that implements a BLE/GATT to WiFi/MQTT bridge on an ESP32. I found the project a while ago, tried it out, and connected the PineTime to it. Summary: I was able to send notifications to my watch via MQTT with for example the shell script below. It worked quite well and liked it a lot!
To me this was an eye-opener for so many new possibilities and I would really love to see development into this direction! Maybe I can get into InfiniTime development later this year. Also, as a more general observation, I noted that a BLE-MQTT-bridge (or anything similar) can remove the need of using a smartphone or companion app, which is a great advantage in certain situations. This of course depends on personal use case. However, it could be seen as trading dependency on the phone for location-based functionality (if the ESP32/etc. is permanently installed). This would be an advantage for some people (including me, who would love to get rid of wearing the smartphone all the time in favour of the PineTime). |
Beta Was this translation helpful? Give feedback.
-
It would be nice to see this as something that can run as an addon via home assistant Something like an extension of the Passive BLE monitor integration, |
Beta Was this translation helpful? Give feedback.
-
I have submitted an issue with a new sensor request, in order to have the infinitime watch added as a supported sensor with the passive ble monitor integration. Maybe if there is enough chatter on the issue, it may be considered. New Infinitime Sensor |
Beta Was this translation helpful? Give feedback.
-
@cpyarger I'm a user of Home Assistant, but I don't know about that passive BLE monitor Integration. If I understand correctly, this would allow to detect the PineTime and even poll for step or HR data and use those data in HA? |
Beta Was this translation helpful? Give feedback.
-
Yes. That is the idea. Also setting the time. And acting as a endpoint for notifications |
Beta Was this translation helpful? Give feedback.
-
That's really nice ! I hope someone will consider working on it, then! |
Beta Was this translation helpful? Give feedback.
-
I made a prototype app that is able to communicate with Home Assistant : |
Beta Was this translation helpful? Give feedback.
-
Hello everyone, On the Fossil Q, gadgetbridge registers an Intent when I press one of the smartwatch's buttons that I have to grab with Tasker to then do something with it. In Domoticz, Jeedom or other open source self-hostable home automation systems, you can usually perform an action with just a URL. So my Tasker script would call the URL with the correct API key and it would sort of work. I hoped to find a better solution in the Pine Time app or a wake-up scheme.
There's one capability that may justify doing something else but from the discussion above it looks like it's a heavy firmware modification : many automation systems can directly use BLE beacons to listen to events. So instead of doing something convoluted like Sorry for the long message, I'm new here and not sure about how to go about it. |
Beta Was this translation helpful? Give feedback.
-
Indeed. If I need to trigger things at home, i most often use the web interface or the phone. So I hadn't really thought about using the watch when away. But yeah I guess :) Why not ! |
Beta Was this translation helpful? Give feedback.
-
An (opinionated) update on where things are at in Homeassistant + Bluetooth land...
I currently use my Pinetime running infinitime as a BLE "beacon", tracking it with an integration I wrote called Bermuda, which gives me room-based occupancy sensing. I patched Infinitime to reduce the non-fast advertising interval to around 0.5sec for better latency/detection. It works quite well, but I suspect it's using a lower power level but I haven't dug into it. I see a (relatively) easy path to being able to use Infinitime with Homeassistant, if anyone has the appetite to take it on: Create an infinitime app that presents the user with (n) screens containing 4 buttons. Pressing one of the buttons sends a BTHome broadcast packet (perhaps a blast of several, with the same packet_id) with Secondarily, an integration in HomeAssistant could be created as an "Infinitime" custom component. It could provide any level of the infinitme bluetooth protocol.
This would provide a huge amount of flexibility for users, as they could update and customise what the watch can do without having to compile and flash new firmware, instead just building automation scripts to act on the buttons differently based on whatever state they like, plus if an integration were written, update the icons or labels, as well as do other tasks like notifications, firmware updates, weather updates, media controls for anything in the home, etc etc. I think Infinitime is probably the best-placed to do this efficiently. Personally, I am going to have a crack at it via Wasp-OS though, as it's a much more comfortable environment for me, but it would be an amazing setup to see in Infinitime! Another option is of course having HA talk to the HA Android app, with sends intents to Gadgetbridge, which sends messages to/from Infinitime, but it's a lot of bouncing around and a complex stack to guide users through setting up, and also a rather rigid framework that gets in the way of customisation, and for me I need Infinitime to be broadcasting so I don't have my phone connected to it most of the time. Upside to going via GB is that it would work outside the home as well, but a BTHome app would still be useful for local control. |
Beta Was this translation helpful? Give feedback.
-
This is probably something to work on down the line, but an App to control smart lighting via openhab would be nice to have. This would obviously need support in the companion apps which doesn't currently exist if I'm not mistaken.
Beta Was this translation helpful? Give feedback.
All reactions