8 ms·
> I have a strong aversion to Python Me too, I like nothing about the language. Luckily, almost everything you do in HA besides contributing is not done in Pyt
by Semaphor 3y ago
> I have a strong aversion to Python
Me too, I like nothing about the language. Luckily, almost everything you do in HA besides contributing is not done in Python (by default).
But I love C#, so just in case there are others, I wanted to mention that you can write all kinds of automations in C# as well with NetDaemon [0]. Including full intellisense.
[0]: https://netdaemon.xyz/ https://netdaemon.xyz/
- tmyllymaki 3y agoThanks for showing me this. As another C# dev I know what I'll be adding into my HA stack.. :)
- Semaphor 3y agoIt’s also a great community on discord, very helpful even for beginner questions.
- samldev 3y agoShameless plug, I wrote a Golang library for writing Home Assistant automations called gome-assistant [0]. The API looks sorta similar to this C# one, I only briefly glanced at netdaemon though. [0]: https://github.com/saml-dev/gome-assistant https://github.com/saml-dev/gome-assistant
- Semaphor 3y agoNot a GO-user, but something you might think about stealing from NetDaemon: It has typed entities, so instead of ".EntityIds("binary_sensor.front_door")" you can do something like ".Entities.Sensors.front_door". It obviously requires a script to run after you add/remove any in HA, but IMO it really improves the DX.