Smappee question

Hi there,

I have been trying to include my original Smappee into HA but have failed miserably so far.

For some time it was reporting failed and had a red cloud icon in the top right of the Integration tile and it has taken me until now to figure out that it is looking for cloud integration which I have never setup!

So I deleted the Integration, re-added it and chose the local option instead of cloud and it then prompts me for the IP Address of the Smappee device.

No problem I thought as I can logon to the web interface locally using a web browser but I cannot get it to logon using the Integration.

I am guessing it might have something to do with the password set for the Smappee web interface but I don’t see any way of adding that into HA.

I’ve probably missed something fundamental as I’m new to HA and still struggling while slowly feeling my way round but is it even possible to use the Integration to logon to Smappee locally by its IP Address?

Thanks & kind regards,
-=Glyn=-

Hi,
I’m in the same position as you. - new to HA, and trying to get Smappee working locally - did you manage to get it working?

Thanks.
Colin.

Hey Colin,

No…never did get it working properly.

I would really like to get this (along with Wireless Tag Manager local logon and Neato validation issues) resolved and I have read many posts but ended up being more confused than I was to begin with!

If you do manage to get yours working would really appreciate it if you would be kind enough to update this thread with the solution?

Good luck!

Thanks & kind regards,
-=Glyn=-

So — I have managed to get something working. Password needs to be admin (when I updated it, Apple added a space at the end so watch out for that). Bit disappointing though, I can only get - what appears to be a combined solar + consumption field as a numeric output. I do get the switches as other outputs, but that seems to be it.

Using 5 minute Smappee data

Hi,

So I persevered and managed to find a solution, which hopefully documenting here.

High level:
a) Set up MQTT [I used Mosquitto in a Docker container]
b) Log into Smappee (local) and enable MQTT logging
c) Add MQTT integration to HA
d) Check (MQTT explorer / HA MQTT integration) that your getting data feeding through
e) Add stuff to configuration.yaml to extract data
f) Add Riemann integral to turn power into energy
g) Check numbers match those in dashboard.smappee.net

Note that you can use realtime instead of every 5 minutes, but I felt this would just overload the system.

Equation: (RMS Voltage x RMS Current x Import Active Power)/(RMS apparent power x 10000)

a) Set up MQTT: Various YouTube tutorials and you can run either as docker or other.
b) Login to local smappee – you need to go to something like 192.168.1.110/smappee.html [address will vary depending on your router] it’s worth having this as a DHCP reservation so it doesn’t change when you reboot your router. Then go to ‘Advanced’ and tick the ‘Advanced’ box

Where you can type in the IP of the MQTT broker that you just set up. I initially left it without password just to check it and then can add afterwards/
c) Hopefully OK with setting up integrations – it was just the MQTT one and go into configure
d) Check data is flowing through using MQTT explorer (nice easy download), or you can check for your UUID in the Location Configuration card from dashboard.smappee.net. Should look something like:
57713298-d672-11e7-ac58-022d123456f7

Therefore you need to look at :
servicelocation/57713298-d672-11e7-ac58-123456f7/realtime

This is data published every second, but will show data flowing through if everything is working. Every 5 minutes, it also publishes:
servicelocation/57713298-d672-11e7-ac58-022d123456f7/aggregated

This is the one we’re going to use:
e) Add the following to configuration.yaml – you may need to change depending on which clamps / solar /… you have:

`- name: “AverageRMSCurrentCt0”
state_topic: “servicelocation/57713298-d672-11e7-ac58-022d123456f7/aggregated”
unit_of_measurement: “A”
value_template: “{{ (value_json.intervalDatas[0].channelIntervalDatas[0].averageRMSCurrent|float/1000)}}”

- name: "solar-POWER-smappee"
  state_topic: "servicelocation/57713298-d672-11e7-ac58-022d123456f7/aggregated"
  unit_of_measurement: "W"
  device_class: power
  value_template: "{{ (value_json.intervalDatas[0].averageRMSVoltage *  value_json.intervalDatas[0].channelIntervalDatas[1].averageRMSCurrent * value_json.intervalDatas[0].channelIntervalDatas[1].averageImportRMSActivePower /(10000*value_json.intervalDatas[0].channelIntervalDatas[1].averageRMSApparentPower )  )|round(3) }}"

`

You can add more to pick out voltage etc, but the above gives the basics – note the device_class of power, this is important if you want to calculate energy.

f) You then need to create a helper function (settings>devices & services >helper) using the Riemann integral function (Name: Solar-ENERGY-smappee
Input sensor: Solar-POWER-smappee
Integration method:Left Riemann sum
precision : 2
Metric prefix: k(kilo)
Time unit: h(hours)

Submit.

g) Wait for some numbers to start flowing through and check against dashboard.smappee.net 5 minute figures , you can download these as csv/Excel– note that the timing may be out by 5 minutes, can’t remember whether it publishes beginning of 5 minute interval or the end.
h) In MQTT explorer you can look for other data published + you can now add the energy into the Energy Configuration in HA.

Let me know how you get on.

Ah well done with your investigation & resolution but its all above my pay grade so I’ll have to give it a miss for now I’m afraid.

I’ll just keep it on the back burner along with my Wireless Tag Manager/Neato issues and my looking for a way to use Node Red to check the lock status of my car as my alarm integrator manages to do with OpenHAB.

I’m just grateful everything else just seems to work although I’ve noticed some Synology/UPS errors of late to add into the mix.

Thanks & kind regards,
-=Glyn=-

1 Like

If you do want to give it a go, happy to try and help
Colin

Hi there,
i’m trying to ad smappee to HA, but i struggle at b).
I logged in at smappee monitor, i can see the MQTT local broker (e.g. tcp://192.168.0.48:1883) input field, but what do i enter here? Where can i find my MQTT local broker ip adress?