The base format will look something like this,
Code: Select all
[hassio]
Measure=Plugin
Plugin=#SETTINGSPATH#\Plugins\HomeAssitantPlugin.dll
auth=<api-key-from-hassio>
server=<ip> #server ip
Code: Select all
You can get an auth token by clicking on your profile on your server.
[hassio]
Measure=Plugin
Plugin=#SETTINGSPATH#\Plugins\HomeAssitantPlugin.dll
server=homeassistant.local
auth=<auth token>
entityId=switch.example
isInt=true
[example]
Meter=String
MeasureName=hassio
X=400
Y=70
FontSize=30
StringAlign=Center
Text=Entity: %1
If you'd like to call a service, the general format is
Code: Select all
[!CommandMeasure hassio "<domain>!<service>!<service data>"]
Let me know what you all think, I'm more than happy to get some advice or recommendations on how to make it better.
Note: I have not figured out how to compile x32 binaries so if anyone knows how to with Visual Studio and C# please let me know so I can properly distribute this plugin.
Edit: i figured it out I think, the x32 version should be up on the releases section of the github
Github: https://github.com/cperryoh/HomeAssitant-Rainmeter