#Can I have two devices called "fan" and

1 messages ยท Page 1 of 1 (latest)

undone pelican
#

I tried setting both to have aliases of "fan" but the response is "Sorry, there are multiple devices called fan." Which, sure, makes sense.

#

"turn off the office fan" results in "Sorry, I am not aware of any fan in the Office area."

#

Any tips? ๐Ÿ™‚

upper fractal
#

have you tried aliases of 'office fan' 'bedroom fan' ?

undone pelican
#

I did, but VA still tracked "Office" as an area, so "office fan" didn't get triggered and there is no "fan" in the office area.

#

I guess I could do like "my office fan" and "my bedroom fan". I was hoping there was a way to have same-named devices in different areas, though. Doesn't seem very hard to write, so I'd be real disappointed if we can't. ๐Ÿ˜• But then again, the "Delete Alias" button doesn't even work so maybe I have my sights set too high? haha

upper fractal
#

are the fans actual fan.entity_id or are they switches that turn on fans ?

undone pelican
#

They're switches.

upper fractal
#

that may be where the issue is as it will be expecting a device in that domain. What may work is to set an automation with a sentence trigger. so 'turn on bedroom fan' trigger >>action>> turn on the fan ๐Ÿ˜‰ I know it's not perfect... but if it works ๐Ÿ™‚

undone pelican
#

Is there some switch-related wording I can use?

upper fractal
#

i'm not 100% up on this side of things - so there may be other ways around it. ๐Ÿค”

undone pelican
#

I dunno why it's always you that helps me, but I'm glad you do. ๐Ÿ™‚

upper fractal
#

lol .. thanks ๐Ÿ™‚

#

im just trying now with the fans i've got here which are also on switches

undone pelican
#

Giving them aliases "my office fan" and "my bedroom fan" also work. It's kinda lame though.

upper fractal
#

yeah as soon as I use 'sitting room fan' it's not aware of any fans

undone pelican
#

But it feels like it should, right?

#

I guess I could go digging around in the source code...

upper fractal
#

yes... i would expect it to check to see if there is a 'fan.entity' in the area and if there isn't then check to see if there is a device called 'fan'

undone pelican
#

I kinda wanted to make a VA version that would allow for interrupting the normal workflow via the events somehow.

upper fractal
#

or an alias with the name fan

undone pelican
#

Yeah, I expected the same.

upper fractal
#

i'm sure i've come across something similar before.. just trying to remember ... perhaps it was with lights... as none of my lights are light.entity but all classed as switches

gray dove
#

I got pr merged that's fixing exactly this. It's in dev already, should be in next major ha update.

undone pelican
#

Oh really? So it was supposed to do that and it just had a bug? That explains things perfectly.

gray dove
#

It was unimplemented functionality. Now, if your assist device has area assigned, it will pick device in that area, if name/alias isn't unique.

#

I wanted to do it badly for couple months, so I dug that in ๐Ÿ™‚

undone pelican
#

aah! Well, a man after my own heart.

#

I guess that frees me up to make the interruptable VA version, hehe

upper fractal
#

just found another solution ๐Ÿ˜‰ In the device entity page you can click on the settings cog and change the switch to a fan... this works ๐ŸŽ‰

undone pelican
#

Well look at you...

upper fractal
undone pelican
#

Okay, I changed my office fan from switch to fan.

#

"turn on the fan" resulted in "Sorry, I couldn't understand that". "turn on the office fan" worked though.

#

Ah

#

"turn on the fan" from a VA located in the office works ๐Ÿ™‚

upper fractal
#

i guess i should change all my switches to lights too ๐Ÿคฆโ€โ™‚๏ธ

undone pelican
#

Well, until this patch goes in. Then it sounds like we can use aliases.

upper fractal
#

tbh I don't really use voice for my own purposes ๐Ÿคฃ so i can live without... but should make things more organised haha

undone pelican
#

It comes in handy every now and then

upper fractal
#

i think timers are about the only thing i use regularly

undone pelican
#

I haven't used timers at all yet.

#

Just started my first one. Do you just say "Set a timer for [x]" or are there more advanced things you do with them?

upper fractal
#

nope thats it ... you can pause them and cancel them too .. and set multiple ones. but i've not got that advanced

undone pelican
#

Well i set a timer for a minute and a minute later... nothing happened.

#

I must be doing it wrong ๐Ÿ˜…

upper fractal
#

on the s3box?

undone pelican
#

Yeah. "Set a timer for one minute" resulted in "Timer started" and then nothing.

upper fractal
#

have you got on_timer_finished: in the va block and then something triggering to happen

undone pelican
#

Oh, no. I haven't looked into timers at all. So it fires of a single event when the timers up? Hm. What have you got yours wired up to do?

upper fractal
#

ive got it to call a script that flicks a switch template on and plays a single beep.mp3 whilst the switch is on , displays a page saying timer finished blah blah .. tap screen and switch goes off ..beep stops lol

undone pelican
#

Hah. Okay, well that's pretty single purpose ๐Ÿ˜‚

#

I would want to figure out how to make it really general purpose. "Set a timer to [x]" and then it does x.

#

Hm... I guess if I did the word parsing myself and looked for keywords and parameters... yeah, I think you could do that.

#

"Set a timer for one minute to turn off the office light." and it would. I could probably wire that up.

upper fractal
#

oh you can do that anyway

#

you can set turn off office light in 1 minute

#

*say

undone pelican
#

Oh, so it's not a one-trick pony. Good.

upper fractal
#

nope and it is all done from the ESP locally

#

well the timer part is

undone pelican
#

How do you tell it to, say, turn off the office lights in one minute?

upper fractal
#

should - just say it

undone pelican
#

"set a timer for one minute to turn off the office lights" => "Sorry, I'm not aware of any device called a timer"

upper fractal
#

just "turn on office light in 1 minute"

#

or *off

#

and it should say "command recieved"

undone pelican
#

Oh, that worked

upper fractal
#

it's all good stuff ... when it works lol

undone pelican
#

hehe

#

Thanks again for all the help.

upper fractal
#

your're welcome as always ๐Ÿ‘

undone pelican
#

I got a couple of atom echos. I was gonna start fiddling with them. You put a VA on one of those yet?

upper fractal
#

i've got one i use for testing , they're ok as a mic and nice and small. speaker sucks though

undone pelican
#

Is the mic better than the Box S3?

#

I'm half a meter away and it only understands me half the time

upper fractal
#

my boxes work ok from up to 5m - you haven't still got the plastic screen protector on have you ?

undone pelican
#

Nope.

#

Lemme check.....

upper fractal
#

hmmm

undone pelican
#

nope

#

My LED blaster only worked up to 1.5 meters, too.

#

I figured they were just crappy parts.

upper fractal
#

yeah ... i think the IR is a bit weak ... i noticed in the first box i had the screen over the led was quite dark and the newer one is much lighter... as if they tried to improve it by making it more transparent

undone pelican
#

Do you have a public config for your atom echo?

upper fractal
undone pelican
#

Thanks.

upper fractal
#

this is my echo's current state lol

undone pelican
#

It's a wee bit bigger than mine.

upper fractal
#

sounds better though ๐Ÿ™‚

undone pelican
#

You use them as media players then?

upper fractal
#

i don't ... i just can't resist experimenting ... so was just seeing if could replace the speaker ..and yes.. you can

undone pelican
#

haha

gray dove
#

On the aliases - I thought it would be nice to stop bothering saying "main bedroom top light", while I'm in freaking main bedroom, and say just "turn off top light", or "turn on the purifier". Hence PR.