Hi,
Im trying to retrieve a mp3 link from a RSS feed for media player to play when requested. I thought scraper platform would do the trick nicely like this and form a sensor:
Instead of forwarding the scraped data to the sensor state, Hass fails to create the sensor stating that sensor state cant be longer than 255 characters. The link is about 270 char long. Any thoughts how to resolve this and maby some little example?
I also thought rest platform could parse the tag but I dont think the resource page is in the correct format for rest to do its json conversion.
Yes found some via google and the rest workaround seemed a perfect candidate but couldnt figure out how to modify this to fit my needs:
- platform: rest
name: EC2 Tunnel and Public API
resource: http://localhost:9002
value_template: '1' # dummy value, not used; avoids the "State max length is 255 characters" error
json_attributes:
- ec2TunnelState
- publicApiState
scan_interval: 120
Ok resolved the issue now based on the old posts. Used Rest platform and attribute instead of value. Attribute does not have the same length limitation: