Closed alanmilinovic closed 1 year ago
This integration does not provide sensors
Sorry, I think I made issue in wrong repo. I am also using your PythonScriptsPro.
In PythonScriptsPro you set the name manually with the name
yaml parameter.
In PythonScriptsPro you set the name manually with the
name
yaml parameter.
Hm, this is what I an doing now in python script.
self.state = f"\n{ resp.decode() }"
So I m using ssh command with python script pro.
Maybe I can set self.attributes instead? Not sure what is the syntax.
Oh. It is about value of sensor. I thought is is about name of the sensor. You can do something like this:
self.state = f"\n{ resp.decode()[:250] }"
Also you may try to set:
self._attr_extra_state_attributes = { "response": resp.decode() }
Wow, that worked. Many thanks!
I am getting "Invalid state encountered for entity ID: sensor.xxx. State max length is 255 characters."
Any idea how to solve it?