How to show html from wget/curl?
Closed this issue · 4 comments
UksusoFF commented
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
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
@PiotrMachowski can't use iframe because POST method used :(
PiotrMachowski commented
You can try to save output to a file in www folder and then display it in an iframe (just an idea)
UksusoFF commented
@PiotrMachowski thanks!