tikismoke / home-assistant-nespressoble

#deprecated see Readme to migrate to a better one. NESPRESSO ble Home Assistant custom componenets and also a 2MQTT script
GNU General Public License v3.0
38 stars 6 forks source link

Button Get me a Coffee #8

Closed Aygotori closed 3 years ago

Aygotori commented 3 years ago

Hello there!

Nice work on this integration! Thanks a lot ! But how can i put the button "Make a Coffee" in Lovelace? ^^ I only have the sensors...

tikismoke commented 3 years ago

Did you use the python script with mqtt or the ha integration?

Aygotori commented 3 years ago

I only get the ha integration to work with all the sensors... I saw the python script but dont know how to use it...

Thanks for your reply,

tikismoke commented 3 years ago

Ok in theory... The ha integration has the button as service if I remember what I've done.

Aygotori commented 3 years ago

You're right! I can call the service (it works!) but i cannot get a button to work =/ I have this config for a button:

type: button
name: Make a coffee
show_state: true
icon: 'hass:coffee'
tap_action:
  action: call-service
  service: nespresso.coffee
  data:
    mac: 'd1:86:08:5d:50:f3'

But this doesn't work. Am i missing something?

tikismoke commented 3 years ago

Do not know why it should work. Sorry as my homelab is far away from the nespresso I had to use the python script.

Clearly it seems just a card issue you have to fix. If the service work no problem.

Aygotori commented 3 years ago

Ok thanks i will look further in card configuration ;)