Hey all,
I’m losing my mind here. The thing I thought will be the simplest is turning out to be the opposite.
Please, can someone tell me how to configure a sensor, so ALEXA can read its value? Not temperature or humidity sensor, simple, plain, counter.
My usage scenario:
- I wrote a browser extension that downloads periodically website where my kid’s homeworks are assigned
- I wrote a script to process the whole html and extract the data I need and export it as JSON
- I use that JSON as source for my HA sensors
example:
command_line:
- sensor:
name: How much homework is there
unique_id: a0c69-5d15-4b9a-a51f-21ed539ff41
command: "jq '. | length' /config/www/school/homework.json"
unit_of_measurement: ''
scan_interval: 3600
What I want from Alexa is to access this sensor and read the data. So when I ask: “How much homework is there?” She responds: “There is X homeworks” or just simple number “X”
However I when I use empty unit_of_measurement alexa app won’t even find the sensor, when I use “homeworks” as unit_of_measurement it’s the same. When I use “unit_of_measurement: ℃” alexa app finds the sensor, but hey, shall I teach my wife to ask Alexa “What’s the temperature of how much homework is there?”
What are my options here?