How does hassette compare to the "Python Scripts" integration? #190
-
|
Hi There! How does this project compare with the existing Python Scripts integration? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hey there, sorry for the delay in this reply, apparently I don't get notifications for new discussions, gotta look into that. Hassette doesn't really compare with the python scripts integration. That integration is very simple - stick a script somewhere, HA will call it with the arguments you pass. You can't do any python imports and as such have a very limited amount you can do with it. Hassette is more comparable to Appdaemon (which is actually recommend from that integration page for situations that require anything more complex than simple math or logic). It runs outside of HA, using the websocket and rest API to communicate with it, and gives you access to everything Python can do. For example, one of my apps uses the monarch money package to get my account balances and update some sensors with rolling averages. Does that make sense? They exist to solve very different problems. |
Beta Was this translation helpful? Give feedback.
Hey there, sorry for the delay in this reply, apparently I don't get notifications for new discussions, gotta look into that.
Hassette doesn't really compare with the python scripts integration. That integration is very simple - stick a script somewhere, HA will call it with the arguments you pass. You can't do any python imports and as such have a very limited amount you can do with it.
Hassette is more comparable to Appdaemon (which is actually recommend from that integration page for situations that require anything more complex than simple math or logic). It runs outside of HA, using the websocket and rest API to communicate with it, and gives you access to everything Python can do. F…