only for new API request? what about existing ones?
will mqtt support be added to the ‘Smappee Energy’ devices or only for pro devices?
I dont know if they will disable old API accounts, but would not be suprised if they did. Maybe the official component should switch to mqtt in the future.
This is what smappee said:
I'm afraid the API has now become a monthly paying feature, if you wish I can check with our sales how much it costs.If however you are looking to retrieve the data from your device locally you can also use MQTT which is free.
Basically you can set the Smappee to publish it’s data to a local MQTT broker.
he MQTT broker needs to be setup in the expert portal
please find 2 documents
- “MQTT broker configuration on Smappee Plus Pro”: this shows where you can set the URL of your MQTT broker. (Even though the manual says Plus/Pro, it also works for a solar, the only difference is that you need to setup a MQTT broker whilst the Plus/Pro have their own broker.
- “Smappee local MQTT topics - 20180209”: the different MQTT topics that are available (some of them deliver data to an MQTT broker, others you can use to send commands to your smappee unit (eg. to control your comfort plugs))
This is the official website from MQTT http://mqtt.org/
And this is according to our developers a very good website for tips and tricks about using MQTT : MQTT Essentials - All Core Concepts Explained
MQTT is available for Energy and Pro devices, the difference being that Pro devices can run the MQTT Broker themselves.
I’ll post the instructions in a new reply to the whole thread shortly.
To make a Smappee device publish/subscribe to a broker you need to set the broker URL (IP address on which the broker is available) on the Expert Portal (Configuration webpage of the Smappee) of the device under “Advanced settings” (Attached you find another document that explains more on this “MQTT broker configuration on Smappee Plus Pro.pdf”)
If you have a Smappee Plus/Pro, these devices have their own MQTT broker which means you can use tcp://localhost:1883 to make them publish that data on their own broker. For a Smappee Energy/Solar you need to let publish the data to an external broker that has been setup on a computer or Raspberry pi for example.
Details of the ‘local’ MQTT topics can be found here, this only applies to PRO, however they should be published to broker for Energy / Solar systems
Expert page is changed and now you can insert user and pass for the broker.
Can someone please support me setting it up?
I subscribed to topic smappee in my broker but ther’se no message.
Can you post a screenshot of your smappee setup ?
That’s want I want to learn. Right now I see no message in my broker regarding smappee
Ok, here’s what I get using:
mosquitto_sub -v -h localhost -t '#'
servicelocation/######/realtime {"totalPower":610,"totalReactivePower":375, "totalExportEnergy":0,"totalImportEnergy":226261222,"monitorStatus":0,"utcTimeStamp":1546029767676,"channelPowers":[{"ctInput":1,"power":-3,"exportEnergy":811276,"importEnergy":14687949,"phaseId":0,"current":4},{"ctInput":2,"power":610,"exportEnergy":0,"importEnergy":226261222,"phaseId":0,"current":29}],"voltages":[{"voltage":248,"phaseId":0}]}
I’ve replaced my unique identifier with the #####
Just need to convert the bits into the suitable sensors and off we go
I setted it up and subscribed to # but can’t see any info
What MQTT broker are you using, can you confirm that its running as epxected.
mosquitto in a docker container.
And I can see all my tasmota devices
I was able to use the Smappee MQTT setup as described by @GadgetUK.
The only value that makes sense to me is the “Total.power”
Looking at the “Realtime” MQTT message this is my content:
{
"totalPower" : 1233,
"totalReactivePower" : 547,
"totalExportEnergy" : 0,
"totalImportEnergy" : 1323255,
"monitorStatus" : 0,
"utcTimeStamp" : 1546182879483,
"channelPowers" : [ {
"ctInput" : 0,
"power" : 440,
"exportEnergy" : 0,
"importEnergy" : 206101,
"phaseId" : 1,
"current" : 23
}, {
"ctInput" : 1,
"power" : 378,
"exportEnergy" : 0,
"importEnergy" : 182054,
"phaseId" : 2,
"current" : 17
}, {
"ctInput" : 2,
"power" : 416,
"exportEnergy" : 0,
"importEnergy" : 935113,
"phaseId" : 0,
"current" : 18
}, {
"ctInput" : 3,
"power" : 0,
"exportEnergy" : 899,
"importEnergy" : 0,
"phaseId" : 1,
"current" : 1
}, {
"ctInput" : 4,
"power" : 0,
"exportEnergy" : 0,
"importEnergy" : 0,
"phaseId" : 2,
"current" : 0
}, {
"ctInput" : 5,
"power" : 1,
"exportEnergy" : 0,
"importEnergy" : 775,
"phaseId" : 0,
"current" : 3
} ],
"voltages" : [ {
"voltage" : 237,
"phaseId" : 0
} ]
}
I want to be able to view the total used power per day and total acumulated solar power per day.
But im not finding these values … also not in the /aggregated message.
Anyway, this how my configuration.yaml looks
sensor voltage:
- platform: mqtt
name: "Voltage"
state_topic: "servicelocation/#############/realtime"
unit_of_measurement: "V"
value_template: "{{value_json.totalPower}}"
The Lovelace Gauge result
are you sure that total power are in voltage?
Correct … that needs to be Watt.
For anyone else who’s interested in Smappee’s new stance on the API, below is what they sent me regarding the cloud API price and what their plans for adding data such as gas, water, battery, humidity, or appliances to MQTT functionality (nothing). So basically all you get for free is an API for current watts of electricity consumed in the whole house. No gas, no water, nothing advanced, without ponying up 60 EURs. For this there are much cheaper and more standards compliant solutions.
This is a real pity. No other company that I use in home automation including Google, Amazon, Honeywell, Airvisual, Darksky, etc. is holding customer data hostage for such a high price as this. 60 EUR just to try out the API (even if it doesn’t work for you)! I can no longer recommend Smappee to anyone looking to do energy monitoring. The app and appliance detection aren’t good enough to stand on their own and their business model appears to be to hold your data hostage and charge exorbitant prices to access it.
Below are the emails from Smappee.
Q:
Can I ask you when you plan to implement the following via MQTT: gas usage, water usage, sensor battery level, sensor humidity level, sensor temperature, appliances
A:
Dear,
No plans are made to implement the following information to the MQTT.
This will not be implemented any time soon.Our apologies for this inconvenience.
I will now change the status of this ticket to “solved”.
With best regards,
Kevin Vankemmel
Smappee team.
Q:
What is the price to access the API for a Smappee Energy with Gas and Water?
A:
Price for an API license for the energy monitor would be € 2,50/month, for a minimum period of 24 months.
If you would accept this, our support team will contact you to activate your client ID and secret.
Best regards,
Elana Libbrecht
Internal Sales
Not the answer I would expect from a company that was so innovative 4 years ago!
I’m wondering if there is some way to view the data that is available in the app in a iframe?
Thanks @scstraus
Looks like you can view the realtime data (like in the app), witch is great!
Only I have no clue how to get it in the iframe (or otherway) of Home Assistant
Anyone?