Hi all,
I am new here, but been using home assistant for the last couple of months after migrating from OpenHAB. So far I think it is great, but am struggling with my most recent configuration, I wonder if anyone can shed some light on the correct way to progress. Just point me in the right direction, because i believe i might be barking up the wrong tree.
I have a service that pushes data to a webhook (brewfather). From this I have been successful in triggering an automation and passing the payload to that automation (just a notification)
- alias: Capture Ispindel from Brewfather
trigger:
- platform: webhook
webhook_id: brewfather
action:
service: notify.mobile_app_pixel_2
data:
message: '{{trigger.json}}'
This passes the raw payload JSON, just so i know i can get at it and the webhook is working.
The JSON contains the following data items:
id:
type:
time:
temp:
sg:
angle:
battery:
rssi:
What ideally want to be able to do is set up a bunch of sensors (or a entity) that I can use to replay this data onto the dashboards (and ultimately log in grafana).
I can’t find how to setup custom sensors or entities in home assistant so i can pass the JSON payload to set their values.
I have trawled through the docs and forums and it looks like templates are the way to go, but it seems that can only be used to map one sensor to another.
What am I missing here?
Cheers in advance.
Mat