Comments (2)
Agreed; @qdot this complicates Home Assistant integration.
A Home Assistant integration would greatly prefer using the name as an internal ID rather than an index, so the user can reference the device by (the much more stable) name when adding it to Home Assistant scripts.
This is already mostly achievable; except that device_removed_handler
s are given an index rather than a device or name. Because the device is removed before the event is sent; it makes sense to not send the device.
Can we adjust it to report the name when deleting? or both index and name? Or to avoid breaking changes; a second device_removed_handler
that emits the name?
from buttplug-py.
Current workaround is to just check ButtplugClient.devices
on every device_removed_handler
event.
from buttplug-py.
Related Issues (12)
- Finish and release buttplug-py v1
- Connection closed event needed.
- send_vibrate_cmd(float) only works with single-motor devices
- Buttplugio
- [help] How to start a Buttplug Websocket server HOT 1
- Add rest of client conveinence functions for device messages
- Add CI building and publishing
- client.device_removed_handler throws AttributeError("'dict' object has no attribute 'remove'") HOT 2
- Client always called "Client Test" HOT 1
- Example for wrapping asyncio loop in thread HOT 1
- Stringify Device Objects
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from buttplug-py.