SEPIA-Framework / sepia-docs

Documentation and Wiki for SEPIA. Please post your questions and bug-reports here in the issues section! Thank you :-)
https://sepia-framework.github.io/
238 stars 16 forks source link

Smarthome devices with custom_config + more questions #130

Closed royrogermcfreely closed 2 years ago

royrogermcfreely commented 3 years ago

Hey,

first of all, thanks for the great work. i installed the last update and got it running so far. also the mqtt binding with Home Assistant is working.

i can create a "tv device" to turn it on and off. when i want for example switch to netflix an the tv i can create another tv device named netflix (dont like it to do it for all apps) or create a teach-sentence with smart device: ;;androidbox and value: {"type":"text_raw","value":"netflix"}

is it possible to create diffrent values for the tv-device with the "custom_config"?

is the google api (still needs a creditcard for the api key) still requiered for the geolocation search or can we use a diffrent geo-api service?

/roy

fquirin commented 3 years ago

first of all, thanks for the great work. i installed the last update and got it running so far

:slightly_smiling_face: :+1:

also the mqtt binding with Home Assistant is working

great to hear :-)

is it possible to create diffrent values for the tv-device with the "custom_config"?

I fear the answer currently is "not yet" :-/ but let me do some testing tomorrow and give you more info later. In the worst case I could repurpose a custom service to support this :thinking:

is the google api (still needs a creditcard for the api key) still requiered for the geolocation search or can we use a diffrent geo-api service?

Unfortunately I haven't had time to fully implement the Graphhopper API yet. I'll put this on the top of the to-do list :-)

royrogermcfreely commented 3 years ago

I fear the answer currently is "not yet" :-/ but let me do some testing tomorrow and give you more info later. In the worst case I could repurpose a custom service to support this 🤔

that would be awesome and will open a new world for users and we would need less teach sentences. and this option could be used for a hole range of possiblities like rooms for the vaccumrobot-device, playlists for the mediaplayer-device, apps and channels for the smarttv and so on.

Unfortunately I haven't had time to fully implement the Graphhopper API yet. I'll put this on the top of the to-do list :-)

👍

royrogermcfreely commented 2 years ago

you got some infos for this? just asking

it works meanwhile with a lot of devices (arround 50)

fquirin commented 2 years ago

Sorry, I've been focused on finishing the next update and haven't had time to play with the custom service yet, but it's still on the to-do list in the top 3 ^^.

I have finished Graphhopper integration though ^^, it will be included in the next release, currently testing the last features :-)

royrogermcfreely commented 2 years ago

nice :)

and dont worry about that too much ;)

will ask in a couple of months again ^^

royrogermcfreely commented 2 years ago

If you need someone to test stuff, feel free to ask

fquirin commented 2 years ago

Ty, I will :slightly_smiling_face: :+1:

fquirin commented 2 years ago

Here is something to test :grin: : SEPIA-Home v2.6.1.

I've implemented a new smart-home feature called "general values". It's not very elegant but the best I could do without breaking too much ^^. Coming back to your initial question you should now be able to say something like "Set TV to value Netflix" ("TV auf Wert Netflix"). If you use the Teach-UI you could remap "TV to \" to "Set TV to value \" via Execute Command(s).

Let me know if that works for you ... or if it breaks something existing ^^ :see_no_evil: .

[EDIT]: Oh an Graphhopper is available as well ;-)

royrogermcfreely commented 2 years ago

the new feature is pretty nice.

it works for my tv to call netflix, disney, kodi etc...

than i tried do to the same with my vacuum robot as device. i can set the state to "gang" but not to kitchen, living room, sleepingroom etc.

sepia tells me that it could not find a right device.

but i can set the device vacuum to netflix, kodi etc... :D

setting devices states to numbers is working as usual.

do you know why this happens?

i tried it with a punch of random words but could not find a red line where sepia accept the value as state and where not

ps: graphhopper is awesome :) edit: the english names of the rooms are working but the german ones are not working

fquirin commented 2 years ago

do you know why this happens?

I think so yes. I'm pretty sure it's because the room is considered as location of the device (robot) and not destination. A classic NLU cross-talk issue. The room NLU parameter is rather greedy, taking everything it can find. So if you say "set XY to value living-room" its probably the same as "set XY in the livin-room to value living-room" or it might remove the 2nd one. When you are in German mode and use English room names you work around this cross-talk because the input is used as raw text. In the Control-HUB you can find a page called "Assistant Testing" where you can input text and see the actual NLU result. It will likely confirm this theory.

A while ago I had a similar discussion with another user that's why I made a demo custom service to work around the problem. I've uploaded the RoboCleaner demo with the latest SDK/extensions update, you can give it a try ^^.

royrogermcfreely commented 2 years ago

ah thanks now i know :)

i gave the vacuum device a location ("küche") now i got it working with the following teaching: when i say "sauge " -> execute command: "gerät staubsauger in der küche auf wert "

so sepia tells me when i want to clean the kitchen: "staubsauger in der Küche auf küche, wird gemacht." thats not a dealbreaker for me.

maybe i try your robocleaner demo someday.

thanks again for this feature. i reduced my smart home devices from over 40 to about 15 devices. was a lot of work, but now its much simpler to add new stuff to my smarthome :)

fquirin commented 2 years ago

thanks again for this feature. i reduced my smart home devices from over 40 to about 15 devices. was a lot of work, but now its much simpler to add new stuff to my smarthome :)

niceee :-D

fquirin commented 2 years ago

so sepia tells me when i want to clean the kitchen: "staubsauger in der Küche auf küche, wird gemacht." thats not a dealbreaker for me.

Btw, you can actually customize the answer inside the teach command as well ;-)