Repository navigation
Smart Home watchapp #243
Description
Activity
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).
Reacted by Peter Feerick, Thomas Hudson and ChristianSounds like a perfect job (bridge device) for the pinecone! ;)
For the glorious Pebble, there are companion apps like PebbleTasker or
AutoApp for Pebble.
You create the situation-aware menus on your phone and the watch shows them. Then you can use the almighty Tasker to react.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.
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!
PINETIME_MAC="11:22:33:44:55:66" MQTT_TOPIC="$PINETIME_MAC/AlertNotificationService/NewAlert/Set" printf '\x00\x01%s\x00%s' "$1" "$2" | \ od -tu1 -An | xargs | tr ' ' ',' | \ mosquitto_pub -t "$MQTT_TOPIC" -sTo 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).
Reacted by Iona Hrapșa and evlliIt 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,
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
@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?
@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?
Yes. That is the idea. Also setting the time. And acting as a endpoint for notifications
That's really nice ! I hope someone will consider working on it, then!
- locked and limited conversation to collaborators
on Feb 20, 2023
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.