[APP][Pro&Cloud] Shelly

Dont think it can be done as the total energy usage of the 3EM is implemented as a sub capability. There is an action card allowing you to set the device as cumulative energy usage but it will probably pick the default capability for energy meter, which is implemented to show the energy measure for that specific channel. The Homey SDK wont allow me to assign a specific capability to use for this.

I have never been able to test this code as I dont have the hardware to do. It could very well contain a bug. Has the value changed since you connected it to Homey? It might not update until it’s actually changed. If it has changed but is not reflected in Homey, send a diagnostic report from the app settings. Perhaps that contains details helping me troubleshoot.

Sorry, I am a total newbie, just installed my Homey a week ago. I am still not that familiar with the capabilities, sub capabilities, action cards etc. So sorry for my not so sophisticated questions…Anyway, I assume the Energy as well as the Total Energy both are cumulative measures. At least they are growing constantly and are never zeroed.

Maybe this is totally wrong channel or topic to this too, and maybe this should be solved by the Homey developers? I am just thinking there should definitely be a way to assign any energy measurement device as the “Grid Source”. While this is presumably not possible now, do you know if there are some other ways to circumvent this? Perhaps summing / grouping those three devices into a single virtual device or something?

What exactly does the Homey need to treat a device as a smart meter of the house e.g. grid source? I am a bit confused that Shelly Pro 3EM - being one of the leading brands - would not support this.

If you cannot help on this one, could you kindly point me into the right direction? I presume there are a few other people too who would like to use the Pro 3EM as the smart meter. After all, that’s one of the main purposes of the device in the first place. In the Shelly’s own app this is solved by just defining the device type as “Grid source”.

I’m not using Homey myself so I don’t have any experience with this. I can only explain how it’s implemented in the Shelly app.

The only documentation on how this works from the app perspective can be found here. The Shelly app has implemented this and marks all three channels of the Pro 3EM as a cumulative device. How this affects the various energy capabilities of the Pro 3EM and what happens within the Homey Energy tab based on this setting is unknown to me. Perhaps a developer that uses Homey himself or Athom can shed more light on this.

Here is how the 3 channels of the Pro 3EM are implemented.

  • Channel 1
    • measure_power: measures the power for this channel
    • meter_power: measures the total energy for this channel
    • meter_power.returned: measures the total energy returned for this channel
    • meter_power.total: measures the total energy for all 3 channels
    • meter_power_total_returned: measures the total energy returned for all 3 channels
  • Channel 2
    • measure_power: measures the power for this channel
    • meter_power: measures the total energy for this channel
    • meter_power.returned: measures the total energy returned for this channel
  • Channel 3
    • measure_power: measures the power for this channel
    • meter_power: measures the total energy for this channel
    • meter_power.returned: measures the total energy returned for this channel

Thanks. By the way, the kWh & Wh issue I mentioned earlier was actually reported also for Shelly 3EM previously. From what I read in those discussions, it was solved for that device. Now the newer hardware, Shelly Pro 3EM behaves similarly - although changing the reported value between watt-hours and kilowatt-hours. (Or at least the Homey interprets them so that they are fluctuating). See previous discussion here: [APP][Pro&Cloud] Shelly - #1102 by Igy
→ Anyway, you mentioned that this would be fixed soon for the Pro 3 EM as well.

I also read that the older HW Shelly 3EM (not the Pro 3EM) would be automatically added as a smart meter: [APP][Pro&Cloud] Shelly - #1191 by timofp

This whole thing is a bit confusing to me. I think I will revert to Shelly’s own app for now when it comes to energy related automations. Anyway, thank you for your quick responses. Much appreciated.

I believe I have now followed steps 1-3 of 6. Homey Pro: Inconsistent Bluetooth device status updates. That should all be correct as seen in the pictures, right?

where is my mistake?

You should enable Bluetooth but disable Bluetooth Gateway.

I purchased a Shelly plus h&t and connected it to the Shelly app.
Now Homey finds the meter and displays it, but when I click on “ga door”, I continue to see a white screen with at the top: new devices found.
Nothing else happens?
Do I miss something?



Obviously, you didn’t follow the pairing instructions from the first screen. Read the first post for more details.

I did follow the steps, and checked the trouble shooting section. Both devices had a reset but result is the same?

Not good enough, your device would have been paired. You need to make sure it’s on the latest firmware and keep it awake during the pairing process. Make sure you press the button inside before pairing so it’s on setup mode.

oh my god thank you so much. Now it works!

But the script only runs on one pro device for me, do you have any ideas about that too?

Not really. Do we devices have the same firmware? And what is the actual error when trying to run the script.

I would like to thank you very much. The update of the shellys has helped.

I would now like to use the tilting of the sensor as a trigger. I find this also, but it does not work. how does this work in this case with the varibalen?

Anyone,
i’m using homey pro 2023. Everything working well. Yesterday I installed the Shelly app. Yesterday evening I tried to install the Shelly PM mini. It did not work because it was not on the same vlan as Homey. All this at yesterday evening at 20:00 (I don’t gidding, it just happened).
But since that time Influx db don’t work, Youless stopped as well as Envoy. At last I removed the Shelly app and waited overnight. No result.
This morning I reset the Shelly PM mini and connected it to the Homey Vlan. Installed the Shelley app again and was able to add the device.
But the mentioned apps (and/or devices) still don’t work. Restarting the apps, rebooting Homey and als o disconnecting it from power (waiting 10 sec at least) did not do the trick.
I’m not sure if I should post it here but it started with using Shelly for the first time.
I hope someone can set me in a direction to solve these issues.

@Ronald_van_Keulen Did you follow all the steps mentioned in the first post.?
It starts with 1. Add your Shelly device to the official Shelly smartphone app;

Create diagnostics reports for the apps that don’t work and ask their developers to take a look. The Shelly app developer can’t help with debugging this.

1 Like

Yes I did. Installed it all first on android, updated the firmware. But as I said, it was not on the same VLAN as Homey, missed that part

Thanks, will do that

For me, there are two problems here. There is a delay between the triggering of the contact and the recognition of the tilt. This can be between 1-8 seconds.

The card “Tilt changed” does not trigger a change. or do I have a mistake here?

I would like to observe with the contact sensor whether the mailbox is opened. With the tilt sensor I would like to observe whether the mailbox has been emptied. Emptying the mailbox can happen in less than 8 seconds, so the upper flow is not an option.