Skip to content

v1.6.0 - Unified Management: Add Any Sensor Anywhere 🎯

Choose a tag to compare

@foXaCe foXaCe released this 04 Oct 05:15
· 118 commits to main since this release

🎯 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

  1. Open your Bitcoin Price sensor
  2. Click Reconfigure
  3. Choose "⛏️ Add mining sensor"
  4. Select "CKPool Solo Mining"
  5. Enter your BTC address
  6. ✅ Done! Both sensors active

Scenario 2: You have CKPool, want to track ETH price

  1. Open your CKPool Mining sensor
  2. Click Reconfigure
  3. Choose "💰 Add cryptocurrency price sensor"
  4. Search for Ethereum
  5. Configure
  6. ✅ Done! Mining + price tracking

Scenario 3: Just modify current sensor

  1. Click Reconfigure on any sensor
  2. Choose "🔧 Modify this sensor"
  3. Update settings (cryptos, address, frequency, etc.)
  4. ✅ 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 specific
  • async_step_reconfigure_mining() → Mining sensor specific
  • async_step_select_mining_type() → Choose mining type to add
  • async_step_mining_config() → Configure mining sensor (new or reconfigure)

Data Preservation:

  • CONF_SENSOR_TYPE explicitly 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

  1. Open any sensor → Reconfigure
  2. "💰 Add cryptocurrency price sensor"
  3. Search or browse top 10
  4. Select cryptocurrencies
  5. Configure (ID, currency, multipliers)
  6. Done!

Adding a Mining Sensor

  1. Open any sensor → Reconfigure
  2. "⛏️ Add mining sensor"
  3. Choose type:
    • ⛓️ Bitcoin Network Stats
    • 📦 Bitcoin Mempool Stats
    • ⛏️ CKPool Solo Mining
  4. Configure (ID, BTC address if CKPool, frequency)
  5. Done!

Modifying Current Sensor

  1. Open sensor → Reconfigure
  2. "🔧 Modify this sensor"
  3. Update settings specific to this type
  4. Done!

💡 Pro Tips

Build Your Complete Setup:

  1. Start with 1 sensor (any type)
  2. Use Reconfigure to add all others:
    • Price trackers for your portfolio
    • CKPool for your mining stats
    • Network/Mempool for Bitcoin monitoring
  3. 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