It would be awsome to have some Pushbuttons in HASS to emulate the purchase over an Amazon Dashbutton.
Its already possible with an Wifi enabled Arduino.
maybe someone can write such a function for HASS
It would be awsome to have some Pushbuttons in HASS to emulate the purchase over an Amazon Dashbutton.
Its already possible with an Wifi enabled Arduino.
maybe someone can write such a function for HASS
I dont want to use the real Dashbutton.
This emulates a Dashbutton over HASS
I’m sorry I misread. What you are asking for is not to control an HA function with Dash, but to set up a script to emulate the push of a Dash button and send that to Amazon, right? To actually order something?
Don’t know how you’d do that. Or personally why, when the buttons are essentially free since the cost is rebated with the first order. But I’m sure you have a reason.
I suppose you could have HA run an external script if you can find a library on Github that sends the proper response to AWS.
Sure, but i dontz want to have a few buttons sticking around. Only a script wich can be activiated over the HA dashboard or via events from HA There is already an library for arduino, wich can do that (see top link). I dont think its hard work to rewrite it to python
OK, I see your point now - instead of buttons around the house, everything in one place like the rest of your interfaces.
Yeah exactly.
a weird idea: a capacitive sensor on the outside of a washing powder packaging. If its get empty HA will order a new one xD
Well, getting something to trigger from HA is going to be the easy part.
Everything I’ve seen on Github seems to be related to intercepting Dash buttons in Py rather than emulating them though.
Weird and beautiful! Could be cool!
my english is not the best, for sure, but I can not recognize here that a real dashbutton is necessary.
Let me take a look. Not a hardcore dev, but English is my native language; maybe I can help somehow.
I took a look at the Dash Replenishment Service API over at Amazon and it looks like it’s just a simple http POST request after you deal with authentication and what not. Maybe looking at this will help you?
https://developer.amazon.com/public/solutions/devices/dash-replenishment-service/
It wont help me, because my python skills are really bad:) So hopefully someone else will give it a try
Maybe you could use one of the other methods I mentioned earlier when I didn’t understand your request to capture the output from a dash button or two and then ‘dissect’ the messages sent. This might help you see what is being posted as well as what may be unique in the button for a product.
That’s about the best I can offer, sorry!
Thanks.
i will try to implement this on a MQTT enabled ESP8266. So i think i can do this via HA-MQTT-ESP8266-Amazon
Sensor on packaging → HA-MQTT → ESP8266 → POST to Amazon
Not to ruin a fun idea, but Amazon does have a subscribe and save feature, where you can actually save 5-15% if you purchase the product on a semi-regular schedule. Your logic here seems to be correct however.
I know, but then I do not need a Dashbutton:) In addition, the time span after I need new powder always varies. but this was only a example .
Just scream to Alexa to order more when you need it.
Alexa, Order me some washing powder!
Echo Dot and Done.
Found the Southerner!
LOL