2.5 KiB
2.5 KiB
Smartnest
Enables integration with smartnest.cz service which provides MQTT integration with voice assistants, for example Google Home, Alexa, Siri, Home Assistant and more!
In order to setup Smartnest follow the documentation.
- You can create up to 5 different devices
- To add the project to Google Home you can find the information here
- To add the project to Alexa you can find the information here
MQTT API
The API is described in the Smartnest Github repo.
Usermod installation
- Use
#define USERMOD_SMARTNESTin wled.h or-D USERMOD_SMARTNESTin your platformio.ini (recommended).
It is not necessary since the main branch of WLED brings it with it
- Register the usermod by adding
#include "../usermods/smartnest/usermod_smartnest.h"at the top andusermods.add(new Smartnest());at the bottom ofusermods_list.cpp. or
Example usermods_list.cpp:
#include "wled.h"
/*
* Register your v2 usermods here!
* (for v1 usermods using just usermod.cpp, you can ignore this file)
*/
/*
* Add/uncomment your usermod filename here (and once more below)
* || || ||
* \/ \/ \/
*/
//#include "usermod_v2_example.h"
//#include "usermod_temperature.h"
#include "../usermods/usermod_smartnest.h"
void registerUsermods()
{
/*
* Add your usermod class name here
* || || ||
* \/ \/ \/
*/
//usermods.add(new MyExampleUsermod());
//usermods.add(new UsermodTemperature());
usermods.add(new Smartnest());
}
Configuration
Usermod has no configuration, but it relies on the MQTT configuration.
Under Config > Sync Interfaces > MQTT:
- Enable
MQTTcheck box. - Set the
Brokerfield to:smartnest.czor3.122.209.170(both work). - Set the
Portfield to:1883 - The
UsernameandPasswordfields are the login information from thesmartnest.czwebsite (It is located above in the 3 points). Client IDfield is obtained from the device configuration panel insmartnest.cz.Device Topicis obtained by entering the ClientID/report , remember to replace ClientId with your real information (Because they can ban your device).Group Topickeep the same Group Topic.
Wait 1 minute after turning it on, as it usually takes a while.
Change log
2024-05
- Solved code.
- Updated documentation.
- Second implementation.