Hi, I’m struggling to get any data from home assistant to appear on a display I’ve got on an ESP8266 unit. I’ve gotten the display working properly and can display static text, but any attempt to pull HA data fails. Here’s a couple examples:
binary_sensor:
- platform: homeassistant
name: "Input Boolean From Home Assistant"
id: mike_home
entity_id: input_boolean.mike_home
sensor:
- platform: homeassistant
id: attic_temp
entity_id: sensor.attic_sensor_air_temperature
internal: true
Trying to reference these fails with errors. Here’s how I’m trying to reference them:
it.printf(0, 70, id(font_time), "Mike home:");
it.printf(90, 70, id(font_time), id(mike_home))
it.printf(0, 23, id(font_time), "Attic temp:");
if (id(attic_temp).has_state()) {
it.printf(127, 23, id(font_time), TextAlign::TOP_RIGHT , "%.1f°", id(attic_temp).state);
which generates errors like:
/config/esphome/esphome-web-14209c.yaml:86:46: error: no matching function for call to 'esphome::display::Display::printf(int, int, esphome::font::Font*&, esphome::homeassistant::HomeassistantBinarySensor*&)'
Is it possible this board type doesn’t support the HA platform?
esp8266:
#board: nodemcuv2
board: esp12e