Repository navigation
v1.6.0 - Unified Management: Add Any Sensor Anywhere 🎯
🎯 Major UX Improvement: Unified Sensor Management
You asked for "tout en un" (all-in-one) - here it is!
Now you can add any type of sensor from any sensor's reconfiguration menu. No more bouncing back to "Add Integration"!
✨ What's New
Unified Reconfigure Menu
When you click Reconfigure on ANY sensor (price, CKPool, Network, Mempool), you now see:
🔧 Modify this sensor (current type)
💰 Add cryptocurrency price sensor
⛏️ Add mining sensor (Network/Mempool/CKPool)
Real-World Scenarios
Scenario 1: You have a price tracker, want to add CKPool mining
- Open your Bitcoin Price sensor
- Click Reconfigure
- Choose "⛏️ Add mining sensor"
- Select "CKPool Solo Mining"
- Enter your BTC address
- ✅ Done! Both sensors active
Scenario 2: You have CKPool, want to track ETH price
- Open your CKPool Mining sensor
- Click Reconfigure
- Choose "💰 Add cryptocurrency price sensor"
- Search for Ethereum
- Configure
- ✅ Done! Mining + price tracking
Scenario 3: Just modify current sensor
- Click Reconfigure on any sensor
- Choose "🔧 Modify this sensor"
- Update settings (cryptos, address, frequency, etc.)
- ✅ Your sensor updated, others untouched
🎨 User Experience
Before (Complicated)
To add a new sensor type:
→ Settings
→ Devices & Services
→ Add Integration
→ Search "Cryptoinfo"
→ Choose type
→ Configure
After (Simple)
To add a new sensor type:
→ Open ANY existing sensor
→ Reconfigure
→ "Add [sensor type]"
→ Configure
→ Done!
🔧 Technical Details
New Flow Structure:
async_step_reconfigure()→ Unified menu (modify/add_price/add_mining)async_step_reconfigure_price()→ Price sensor specificasync_step_reconfigure_mining()→ Mining sensor specificasync_step_select_mining_type()→ Choose mining type to addasync_step_mining_config()→ Configure mining sensor (new or reconfigure)
Data Preservation:
CONF_SENSOR_TYPEexplicitly preserved in all flows- Price sensors always tagged with
SENSOR_TYPE_PRICE - Mining sensors retain their specific types
- No cross-contamination between sensor types
Backward Compatibility:
- Existing sensors work unchanged
- Old reconfigure flows still functional
- Sensor types auto-detected and routed correctly
📝 What's Changed
Modified Files:
config_flow.py:- Unified reconfigure menu
- async_step_select_mining_type() added
- CONF_SENSOR_TYPE preservation in all flows
- Routing logic for sensor types
manifest.json: Version 1.5.1 → 1.6.0
Lines Changed: +82, -9
🚀 How to Use
Adding a Price Sensor
- Open any sensor → Reconfigure
- "💰 Add cryptocurrency price sensor"
- Search or browse top 10
- Select cryptocurrencies
- Configure (ID, currency, multipliers)
- Done!
Adding a Mining Sensor
- Open any sensor → Reconfigure
- "⛏️ Add mining sensor"
- Choose type:
- ⛓️ Bitcoin Network Stats
- 📦 Bitcoin Mempool Stats
- ⛏️ CKPool Solo Mining
- Configure (ID, BTC address if CKPool, frequency)
- Done!
Modifying Current Sensor
- Open sensor → Reconfigure
- "🔧 Modify this sensor"
- Update settings specific to this type
- Done!
💡 Pro Tips
Build Your Complete Setup:
- Start with 1 sensor (any type)
- Use Reconfigure to add all others:
- Price trackers for your portfolio
- CKPool for your mining stats
- Network/Mempool for Bitcoin monitoring
- All from ONE reconfigure menu!
No Limits:
- Add unlimited price sensors (different portfolios)
- Add unlimited mining sensors (multiple pools/addresses)
- Mix and match as needed
- Each sensor independent
🎉 You Wanted "Tout en Un" - You Got It!
Everything is now manageable from a single entry point. No more navigating menus to add different sensor types!
🤖 Generated with Claude Code