PiotrMachowski / lovelace-html-card

This card displays provided data as an HTML content of a card.
MIT License
52 stars 7 forks source link

How to show html from wget/curl? #4

Closed UksusoFF closed 4 years ago

UksusoFF commented 5 years ago

Hi! Any way to do subject in this plugin?

I'm try:

  - platform: command_line
    name: Name
    command: "curl 'http://example.com/xml_bridge.php'"
    scan_interval: 86400

But got here: homeassistant.exceptions.InvalidStateError: Invalid state encountered for entity id: sensor.tosamara. State max length is 255 characters.

PiotrMachowski commented 4 years ago

In Home Assistant entity state can have max 255 characters, so you cant't use a sensor to curl a website. You can use a iframe card instead.

UksusoFF commented 4 years ago

@PiotrMachowski can't use iframe because POST method used :(

PiotrMachowski commented 4 years ago

You can try to save output to a file in www folder and then display it in an iframe (just an idea)

UksusoFF commented 4 years ago

@PiotrMachowski thanks!