You inspired me to try this out on my new Micra. Great idea! Thank you!
@zweckj - possible issue with upcoming HA core release - New HA core Beta causing issues ¡ Issue #26 ¡ zweckj/lamarzocco ¡ GitHub
whoops, had a typo in there. Beta 2 should fix that.
Thanks so much for creating this integration!
I canât configure it correctly yet. Iâm using my email as username and the password I use on the LM app. I either have âfailed to connectâ or âInvalid authenticationâ. What do you think am I doing wrong? Should I try to sniff the correct client id and secret instead of using the one reported on GitHub? Thanks so much for your help!
That shouldnât be necessary anymore, the ones which are now baked into the integration normally work and you donât need to input any yourself (if you still have the options to enter them on the initial flow youâre on an old version).
Make sure internet access works and there is nothing filtering the traffic like PiHoles.
Thanks so much, looks like I have an old version then. Can you point me to the latest version to try?
Make sure you use my version (GitHub - zweckj/lamarzocco: Interact with your La Marzocco espresso machine) not rccolemanâs (which is still the default in HACS).
Found it and it works beautifully. You guys made a nerd happy today.
Not to step on @Sc00bs110 toes, but here is my implementation of his code if it helps. It took me a while to figure out the indenting, so putting it up in case it helps any other novices. âsensor.mr012186_shot_timerâ is the home assistant sensor created by the La Marzocco integration. And I changed the color to red to match my black Micra a little better.
esphome:
name: shottimer
friendly_name: shottimer
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "******"
ota:
password: "******"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: !secret ap_ssid
password: !secret ap_password
globals:
id: shot_timer_value
type: std::string
restore_value: no
initial_value: '"-"'
# Include custom fonts
font:
- file: 'fonts/GothamRnd-Bold.ttf'
id: font2
size: 100
text_sensor:
- platform: homeassistant
id: shot_timer_sensor
entity_id: sensor.mr012186_shot_timer
on_value:
then:
- lambda: |-
id(shot_timer_value) = x;
id(shottimer_display).update();
# Define colors
color:
- id: color_text
red: 100%
green: 0%
blue: 0%
white: 0%
# Pins for Board
spi:
clk_pin: GPIO18
mosi_pin: GPIO19
# render on the screen.
display:
- platform: st7789v
id: shottimer_display
backlight_pin: GPIO4
cs_pin: GPIO5
dc_pin: GPIO16
reset_pin: GPIO23
model: TTGO TDisplay 135x240
rotation: 180°
lambda: |-
it.printf(0, 50, id(font2), color_text, "%s", id(shot_timer_value).c_str());
captive_portal:
Thanks @dxr & @Sc00bs110 for your helps.
I dont where to put the entry on configuration.yaml
I am using esphome to program the t-display and using terminal to edit configuration.yaml
Thanks
Hi @Mashibb
You can add it anywhere in the configuration.yaml file as long as you donât have any other text_sensorâs defined, if you do just add it on after the ones you have defined.
If you use the HA File editor, it will display a green tick showing your yaml file is still ok for reboot otherwise check your configuration.yaml file is still working under /developer tools/check configuration before rebooting so as not to have any rebooting problems
I did try to add it. It give out errors for check. I will post the result when i get home.
Thank you for your help.
I was never able to get the text_sensor to compile in the configuration.yaml file. I would get a âIntegration error: text_sensor - Integration âtext_sensorâ not found.â The yaml I have above just uses the integration created one, not a separate text sensor to avoid the issue, but if you figure it out, please post!
is it possible to get current boiler and steam temp ?
thanks!
Yes, itâs exposed via the current_temperature attribute under the water_heater.<machine_name>_coffee_boiler and water_heater.<machine_name>_steam_boiler entities. You can create template sensors to use them e.g.:
- platform: template
sensors:
coffee_machine_brew_boiler_temperature:
friendly_name: Coffee machine brew boiler temperature
value_template: "{{ state_attr('water_heater.coffee_machine_coffee_boiler', 'current_temperature') }}"
icon_template: mdi:thermometer
unit_of_measurement: "°C"
coffee_machine_steam_boiler_temperature:
friendly_name: Coffee machine steam boiler temperature
value_template: "{{ state_attr('water_heater.coffee_machine_steam_boiler', 'current_temperature') }}"
icon_template: mdi:thermometer
unit_of_measurement: "°C"