Custom Device Icon and Icon status change
Posted: Mon Apr 12, 2021 10:16 am
Hello Everyone,
I was wondering if there is a way to add a custom icon or image to an existing device or a custom device. For example, if I create a device, that is supposed to read a push button status from an I/O pin and also has to turn ON or OFF a LED based on the button status, I want to have a LED icon on my esp rainmaker app (not the predefined lightbulb icon) for my device to show the LED status.
Secondly, is it also possible to change the icon color based on the LED status (e.g. For OFF state no color for ON state Green)
In some previous ESP32 projects I created a small webserver inside the ESP32, in that case, I edited the HTML file and linked a small image from the project's content directory or used an icon from the web and just added the link of that icon on the HTML file.
I am not sure whether I need to add a custom png file to one of the folders in the main project directory to perform that operation because it looks like the rainmaker app actually selects the icon of the device from the android app side not from the uploaded code (please correct me if I'm wrong).
Best Regards.
I was wondering if there is a way to add a custom icon or image to an existing device or a custom device. For example, if I create a device, that is supposed to read a push button status from an I/O pin and also has to turn ON or OFF a LED based on the button status, I want to have a LED icon on my esp rainmaker app (not the predefined lightbulb icon) for my device to show the LED status.
Secondly, is it also possible to change the icon color based on the LED status (e.g. For OFF state no color for ON state Green)
In some previous ESP32 projects I created a small webserver inside the ESP32, in that case, I edited the HTML file and linked a small image from the project's content directory or used an icon from the web and just added the link of that icon on the HTML file.
I am not sure whether I need to add a custom png file to one of the folders in the main project directory to perform that operation because it looks like the rainmaker app actually selects the icon of the device from the android app side not from the uploaded code (please correct me if I'm wrong).
Best Regards.