Change module type to generic (18) in custom builds

19 views
Skip to first unread message

Khurram

unread,
Jul 22, 2024, 3:26:46 PM (2 days ago) Jul 22
to TasmotaUsers
Is it possible to specify the module type in custom builds? I would like it to be generic (18) instead of sonoff basic.

Thanks

Justin Adie

unread,
Jul 22, 2024, 4:53:21 PM (2 days ago) Jul 22
to Khurram, TasmotaUsers
Yes.  

On Mon, 22 Jul 2024, 20:26 Khurram, <kfha...@gmail.com> wrote:
Is it possible to specify the module type in custom builds? I would like it to be generic (18) instead of sonoff basic.

Thanks

--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/00c979b4-0b57-4987-930c-7b5480ed10cfn%40googlegroups.com.

Khurram

unread,
Jul 23, 2024, 8:29:20 AM (17 hours ago) Jul 23
to TasmotaUsers
Can you please share how to do this? Through a command in user_config_override.h? If so, please let me know the command.

Thanks

Justin Adie

unread,
Jul 23, 2024, 8:41:29 AM (17 hours ago) Jul 23
to Khurram, SonoffUsers
You can override the module in my_user_config.h or user_config_override.h.  Tasmota devs prefer the second option

#ifdef MODULE
#undef MODULE
#endif
#define MODULE 18

You can also set the template
#ifdef USER_TEMPLATE
#undef USER_TEMPLATE
#endif
#define USER_TEMPLATE "{\"NAME\":\"Generic\",\"GPIO\":[1,1,1,1,1,1,1,1,1,1,1,1,1,1],\"FLAG\":0,\"BASE\":18}" // [Template] Set JSON template




Khurram

unread,
Jul 23, 2024, 11:35:52 AM (14 hours ago) Jul 23
to TasmotaUsers
Oh that is just perfect :). One more thing. Do the template statements also go in user_config_override.h?

Justin Adie

unread,
Jul 23, 2024, 11:37:15 AM (14 hours ago) Jul 23
to Khurram, SonoffUsers
Yes they do in this case (USER_TEMPLATE)

Reply all
Reply to author
Forward
0 new messages