Skip to content

Conversation

@famascl3m
Copy link

✅ What is added

  • New power meter module for Shelly EM Pro
  • Uses /rpc/Shelly.GetStatus
  • Reads em1:X.act_power
  • Keeps compatibility by mapping to real_power

🧪 Tested on

  • Shelly EM Pro
  • ESPHome 2025.5.0
  • Solar Router SSR + 1 dimmer

📁 Files added

  • solar_router/power_meter_shelly_em_pro.yaml

ℹ️ Notes

  • This module replaces /emeter/X which is not available on EM Pro
  • No changes required in power_meter_common.yaml

The scheduler was updated to persist all time and threshold settings across reboots using restore_value.
It now evaluates its state on boot and immediately applies actions if the current time is already within the scheduled window.
A safety check was added so temperature limits override the scheduler instantly, stopping the router when exceeded.
Overall, the scheduler is now reboot-safe, state-consistent, and safety-aware.
correct mode: box missing in hour and minutes definition
@XavierBerger
Copy link
Owner

Thanks for your PR. Before merging, can you also:

Add the documentation in English and, if you speak French, aussi en Français.
Update example of usage of your power meter and add a test in .github/esphome_compilation.yml. This simple CI ensure that at least compilation works.

I notice that you provide 2 files in your PR. Can you create a dedicated PR for scheduler_forced_run_safe.yaml with its documentation and tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants