-
Notifications
You must be signed in to change notification settings - Fork 107
Tasmota inverter and battery #2519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| log.debug("Tasmota InverterState:\nurl=" + url + | ||
| "\nresponse=" + str(response) + | ||
| "\nInverterState=" + str(inverter_state)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| log.debug("Tasmota InverterState:\nurl=" + url + | |
| "\nresponse=" + str(response) + | |
| "\nInverterState=" + str(inverter_state)) |
| self.fault_state = FaultState(ComponentInfo.from_component_config(self.component_config)) | ||
|
|
||
| def update(self): | ||
| log.debug("Tasmota inverter update: " + self.__ip_address) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| log.debug("Tasmota inverter update: " + self.__ip_address) |
| log.debug("Tasmota CounterState:\nurl=" + url + | ||
| "\nresponse=" + str(response) + | ||
| "\nCounterState=" + str(counter_state)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| log.debug("Tasmota CounterState:\nurl=" + url + | |
| "\nresponse=" + str(response) + | |
| "\nCounterState=" + str(counter_state)) |
| def update(self): | ||
| log.debug("tasmota.counter.update: " + self.__ip_address) | ||
| counter_state = self.__tasmota.get_CounterState() | ||
| log.debug("Tasmota counter update: " + self.__ip_address) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| log.debug("Tasmota counter update: " + self.__ip_address) |
| log.debug("Tasmota BatState:\nurl=" + url + | ||
| "\nresponse=" + str(response) + | ||
| "\nBatState=" + str(bat_state)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| log.debug("Tasmota BatState:\nurl=" + url + | |
| "\nresponse=" + str(response) + | |
| "\nBatState=" + str(bat_state)) |
| self.fault_state = FaultState(ComponentInfo.from_component_config(self.component_config)) | ||
|
|
||
| def update(self): | ||
| log.debug("Tasmota bat update: " + self.__ip_address) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| log.debug("Tasmota bat update: " + self.__ip_address) |
| def initialize(self) -> None: | ||
| self.__device_id: int = self.kwargs['device_id'] | ||
| self.__ip_address: str = self.kwargs['ip_address'] | ||
| self.sim_counter = SimCounter(self.__device_id, self.component_config.id, prefix="speicher") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simcount und device_id wird nicht benötigt oder?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eine der Tasmota Zählervarianten gibt nur einen Gesamtzählerstand aus. Bisher war das als Import Zählerwert implementiert. Der Simcount wird für den Export Zählerstand benötigt.
Ob ['StatusSNS']['ENERGY']['Total'] den Importwert oder eine Kombination aus Im- und Export wiedergibt ist nicht bekannt.
Möglicherweise wäre auch hier der SimCount besser...
No description provided.