PiotrMachowski/lovelace-html-card

How to show html from wget/curl?

Closed this issue · 4 comments

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.

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.

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

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