I seem to be having some issues with my Smappee EV Base and Homey. All the values in Homey are reported as 0, even though my car is currently charging. Changing the charging mode via Homey does seem to work, but no metrics.
Sidenote; now with the new energy tab available, it would be great if the total energy consumption of the EV charger would be tracked using the meter_power capability. Doing that will make the EV charger appear in the list of consumers.
Note: the meter_power capability must always be positive and ever-increasing (cumulative). Homey Energy calculates energy usage over a given period by analyzing the difference in this value over time. If meter_power capability values are periodically reset to zero or decrease unexpectedly, it may lead to data loss.
The Smappee API / MQTT messages do not return these values.
Values in kWh are difficult with Smappee, as most values are in W(h).
They donāt support āever-increasingā data out of the box.
Via the API, there is no realtime data, only aggregated values which are not realtime.
Via MQTT message there is realtime data, but is missing data (or Iām not able to do the right calculations).
If anyone is willing to help me out with this or has any idea to support this, let me know via an PM.
@evdpol I have this working in my custom Homey app. I can share you my code.
Iām calling their https://app1pub.smappee.net/dev/v3/chargingparks/${serviceLocationId}/sessions endpoint, to get this data. When the app is started, I get a full history going back a couple of years and after that, I periodically get data for the current month for updates.
Can you share information on how you retrieve current power usage via MQTT? This does not seem well documented.
Or let me know how I can assist you in debugging the 0 power metrics.
You can get the 5 minute totals from the https://app1pub.smappee.net/dev/v3/servicelocation/${serviceLocationId}/consumption?aggregation=1&from=1585294200000&to=1585294800000 for example.
If we donāt need the realtime data for energy usages, it is doable I guess.
It looks like the dashboard is first calling the sessions API to see if there are any active charging sessions.
That endpoint returns MQTT connection information as well as information about how the power is calculated by summing 3 values from the channelData. I assume thatās combining the power from the 3 different phases.
My previous response got flagged for spam because it contained too many code examples I guess.
My current assumption is that for the EV Base, because it has 2 connectors on a single āservice locationā, you need to sum the power usage for each phase from the channelData in the MQTT messages.
For my current connector (id=2), those values were on index 3,5,7.
What you posted regarding to the activePower, isnāt available in the public API like so. It is available though, through servicelocationInfo.
I think I need to drop the solarPower and alwaysOn from the EV-Line, and only show current consumption, based on the channelData as you mentioned.
Still playing with how to provide the correct meter_power to Homey, based on the data that is available, and how to setup the energy settings for each driver. Like, Smappee Genius supplies a cumulative value, but a EV-Line doesnāt, right?
Still figuring stuff out on how to do it right, based on the data of the people who were so kind to share their account with me.
I see that the charging stations are getting the consumptionPower, solarPower and alwaysOn again. Is that also true in your case?
When selecting a charging station in the Smappee Dashboard, all live values arenāt available.
I am thinking about changing the EV-Wall device to only control the device, and you should add a Genius / Solar / Connect for the live energy data, or use the ChannelData in the MQTT message as you mentioned.
I will add the kWh (meter_power) to the EV-Wall, based on historical data of the charging sessions. I think that is the way to goā¦
Same goes for the Smappee Gas-Water (no energy) and Plugs⦠Yeahā¦
Hey, thanks for the app, i used to retrieved my energy data into Homey from Home Assistance
I have an Energy and a Gas & Water monitor. The Energy works without problems, but my gas meter only shows temperature and the temperature updates only if I restart the app, any advice?
Yes, but my meter is still showing 0 M3 after 3 days, so it should have updated the number. I can see that the data in Smappee is continuously updated. Itās not very important and mostly something I noticed after Homey Energy seems to be able to display gas as well.
After entering the API Credentials from Smappee I get redirected to Smappee where I can login and authorize to access the devices on the selected service locations, as well as all associated data. After clicking the accept button I see this error
callback.homey.com
Something went wrong on the 3rd partyās server.
Please contact the manufacturer for support.
[Code: User not found]