would love to see widgets for untappd, there is much documentation and libraries are available so if any kind hearted developer would love to take this on it would be most kind
Iām interested! What sort of functionality would you expect in HASS?
I think it pretty easy to create a sensor for the information you need, its probably returned in json so just need to parse it.
Basically sensors for unique beers and total beer stats and a away to check the wish list wanted beers on account.
If sensor.beer_count == 100 then message user congrats on 100 beers
already way past 100
A beer API, how bloody amazing!!
the quest has begun for automating beers
Iām also checking this out, can you maybe share the code? I have my own client_id and client_secret but doing this by seperate api calls. Not sure if this can be done easier?
Also there is a hourly limit on the API can i make sure HA is limiting the api calls?
not yet working on it will post once i got the code more cleaned up
How did you create the Beer card with the Untappd Image, Unique / Total / Photoās ? Do you have the config somewhere? Iām interested in how this was setup
Iāve been trying to get an automation setup to send me a āCheersā notification listing the last beer I had and the rating. Iāve got it to mostly work, but it keeps reporting the beer I had previously, not the current beer. Any guidance to fix it would be appreciated.
automation:
- alias: Cheers
initial_state: 'on'
trigger:
platform: state
entity_id: sensor.untappd_last_checkin_username
condition:
condition: state
entity_id: sensor.untappd_last_checkin_username
state: Today
action:
- service: notify.sms_notify
data_template:
message: "Cheers! {{ trigger.from_state.attributes.beer }} was just rated a {{ trigger.from_state.attributes.score }} "
Will take alook at the api some day when i got some time over feel free to open an issue on the custom component tracker so i dont forget
I just figured it out. I had my data template wrong. Hereās the corrected code for everyoneās reference.
automation:
- alias: Cheers
initial_state: 'on'
trigger:
platform: state
entity_id: sensor.untappd_last_checkin_username
condition:
condition: state
entity_id: sensor.untappd_last_checkin_username
state: Today
action:
- delay: '00:01:30'
- service: notify.sms_notify
data_template:
message: "Cheers! {{ states.sensor.untappd_last_checkin_username.attributes.beer }} was just rated a {{ states.sensor.untappd_last_checkin_username.attributes.score }} "
I tried adding the card from āshare the loveā and first off it didnāt work until I noticed a change. In the example there it says checkin
in the sensors but now itās spelled check_in
so now itās working.
Only thing I donāt understand (lovelace n00b) is how to get the icons in the bottom row?
This is how it looks right now:
The templating for example the checkins is "{{ states.sensor.untappd_last_check_in_naesstrom.attributes.checkins }}"
and running that in the template tool in hass I get ā16ā so I have no clue where the ācheckinsā text is coming from or how to remove it?
That is from the unit_of_measurement
in the template sensor.