UKBinCollectionData icon indicating copy to clipboard operation
UKBinCollectionData copied to clipboard

Alexa compatibility

Open dp247 opened this issue 2 years ago • 7 comments

I haven't used Amazon's Alexa platform in years, but could probably maybe build a skill that feeds off this.

dp247 avatar Aug 19 '22 23:08 dp247

@dp247 - I have started looking into this

robbrad avatar Jan 11 '23 20:01 robbrad

Still on my radar - just sorting some of the repo hygiene

robbrad avatar Feb 26 '23 11:02 robbrad

@dp247 / @OliverCullimore

Started looking at this and I think we are going to need some compute like an AWS Lambda (this acts as an endpoint to serve the content). Now I know some of the councils take a long time to run so I think we need a new Github action to run all councils daily and store the data in an S3 bucket. The Lambda would then use the Alexa invocation to get the "next bin data" from the s3 bucket

robbrad avatar Dec 06 '23 18:12 robbrad

Not to get ahead of myself, but could the S3 bucket also help some of the other ideas (like #446 and #458)?

dp247 avatar Dec 06 '23 18:12 dp247

It's a difficult one to implement in an efficient manner - as each household is going to need a its own data, which from the experience of the councils can take anywhere from 2 to 60 seconds per pull - this will drive up infrastructure costs.

robbrad avatar Dec 10 '23 09:12 robbrad

Been thinking about this one and im just not sure its going to work as a live intergration.

What if you used our custom component to add Bin Data and then used Alexa with a Text-To-Speach approach from Home Assistant ?

eg:

lounge_temp:
  alias: Lounge temp
  sequence:
  - service: notify.lounge_dot
    data_template:
      message: "The temperature is {{states('sensor.broadlink_sensor_temperature')|replace('.', ' point ') }} degrees"

robbrad avatar Dec 13 '23 17:12 robbrad

I currently do this with to broadcast to google home speakers. using the google assistant SDK and a couple of custom helper entities, an automation triggers the evening before the next bin day, and announces the bins being collected tomorrow.

I don't think there's any need to host any data. Maybe a simple blueprint where people can configure the entities to trigger on?

That being said, I don't know if a similar broadcast system exists for Alexa in home assistant.

raldred avatar Mar 26 '24 15:03 raldred