Custom python script for publishing sensor values

Hi there trym.j.berg,
There may be a solution but there is a slight problem.

Sadly we’re not mind readers (any more anyway, not after the last time we tried). Please share the YAML and any errors so we can see what you’ve done.