Skip to content
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

Key Error #18

Open
xavierlp opened this issue Apr 16, 2020 · 0 comments
Open

Key Error #18

xavierlp opened this issue Apr 16, 2020 · 0 comments

Comments

@xavierlp
Copy link

Hello
I could see some errors in Domoticz logs.
In the line 445

for key in self.__plugs:				
			error = error or self.__plugs[key].update_state(state[str(key)])	
			Devices[key+1].Update(0,str(state[str(self.__ampere)]/1000))	# TypeName="Current (Single)
			Devices[key+2].Update(0,str(state[str(self.__watt)]/10) + ";0")	# kWh / Calculated
			Devices[key+3].Update(0,str(state[str(self.__voltage)]/10)) 	# TypeName="Voltage"
		#	Devices[key+4].Update(0,str(state[str(self.__watt)]/10)) 		# TypeName="Usage"

If I comment this line , no error.

It seems that the "usage" is added and we can collect 4 indicators.

But I've got an error message if I add more than 3 dps in the UI.

I can't find a solution for this.

Thanks for any feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant