How to AUTO_LOAD template_number in external component #5607
Unanswered
Reproduktor
asked this question in
Q&A
Replies: 2 comments 4 replies
-
Questions like these are much better to ask on the discord server. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Min, max and persistence.
mf
…________________________________
From: Samuel Sieb ***@***.***>
Sent: Friday, October 27, 2023 12:22:40 AM
To: esphome/esphome ***@***.***>
Cc: Reproduktor ***@***.***>; Author ***@***.***>
Subject: Re: [esphome/esphome] How to AUTO_LOAD template_number in external component (Discussion #5607)
There are many parts of the template number that won't work for your case. You need to extend the base Number class and implement what you need. What parts of the template number do you want that aren't in the base?
—
Reply to this email directly, view it on GitHub<#5607 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AD4TX2ZJTAG26HFGSSDD2UDYBLPDBAVCNFSM6AAAAAA6R4SX3SVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TGOJXG4YTE>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all, I'm trying to use
component/template/template_number
in my external component, but I can't figure out how to put this into AUTO_LOAD, so that my include in the code works. Without AUTO_LOAD, I'm getting:#include "esphome/components/template/number/template_number.h"
-->
fatal error: esphome/components/template/number/template_number.h: No such file or directory
I've tried several combinations, and I do not really understand how this is supposed to work.
For example, this:
AUTO_LOAD = ['sensor', 'binary_sensor', 'switch', 'template_number']
results in:
Component not found: template_number
Any guidance please?
Beta Was this translation helpful? Give feedback.
All reactions