thyraz / snips-fhem Goto Github PK
View Code? Open in Web Editor NEWFhem module for snips.ai
Fhem module for snips.ai
Hi,
first let me say "Thank you" for this great project!!!
I have installed snips-fhem and got it working. But one thing seems not to work correct in my installation: when I say ".... lauter" it works (detected intend Thyraz:SetNumeric), but when I say "... leiser" it doesnt work (detected intend Thyraz:SetOnOff)
from watching: "lauter" is working
[11:02:24] [Nlu] was asked to parse input "fernseher lauter"
[11:02:24] [Nlu] detected intent Thyraz:SetNumeric with confidence score 0.382 for input "fernseher lauter"
Slots ->
Change -> lauter (confidence: 1.000)
[11:02:24] [Dialogue] New intent detected Thyraz:SetNumeric with confidence 0.382
Slots ->
Change -> lauter (confidence: 1.000)
[11:02:24] [Nlu] was asked to parse input "standardgerät lauter"
[11:02:24] [Nlu] detected intent Thyraz:SetNumeric with confidence score 0.422 for input "standardgerät lauter"
Slots ->
Device -> Standardgerät
Change -> lauter
[11:02:24] [Dialogue] was ask to end session with id f7901edd-bfae-4c81-8b19-7f61f438d2d5 by saying 'Ok.'
[11:02:24] [Tts] was asked to say "Ok."
and "leiser" isnt working:
[11:02:33] [Nlu] was asked to parse input "fernseher leiser"
[11:02:33] [Nlu] detected intent Thyraz:SetOnOff with confidence score 0.556 for input "fernseher leiser"
Slots ->
Device -> Fernseher (confidence: 1.000)
|-> (alt) Fernseher
|-> (alt) Fernseher
[11:02:33] [Dialogue] New intent detected Thyraz:SetOnOff with confidence 0.556
Slots ->
Device -> Fernseher (confidence: 1.000)
|-> (alt) Fernseher
|-> (alt) Fernseher
[11:02:33] [Nlu] was asked to parse input "standardgerät leiser"
[11:02:33] [Nlu] detected intent Thyraz:SetOnOff with confidence score 0.702 for input "standardgerät leiser"
Slots ->
Device -> Standardgerät
[11:02:33] [Dialogue] was ask to end session with id 77514bc1-91e4-4b44-aab6-aeb84c3e6788 by saying 'Da ist etwas schief gegangen.'
[11:02:33] [Tts] was asked to say "Da ist etwas schief gegangen."
Also when I'm on https://console.snips.ai/assistant/proj_Ny2w04OKrZN/edit
and I try to test "lauter" I get:
{
"input": "lauter",
"intent": {
"intentName": "Thyraz:SetNumeric",
"confidenceScore": 0.3404139
},
"slots": [
{
"rawValue": "lauter",
"value": {
"kind": "Custom",
"value": "lauter"
},
"range": {
"start": 0,
"end": 6
},
"entity": "de.fhem.ChangePercent",
"slotName": "Change"
}
]
and when I test "leiser" I get:
{
"input": "leiser",
"intent": {
"intentName": null,
"confidenceScore": 0.30528286
},
"slots": []
}
What can I do, so it works correct?
thx and regards
raimund
Hi
switching a hue light on and off works fine.
but setting a numeric to control pct seems not to work.
My attributes are
SnipsMapping with 2 lines:
SetOnOff:cmdOn=on,cmdOff=off
SetNumeric:currentVal=pct,cmd=dim,minVal=0,maxVal=99,step=25,type=Helligkeit,map=percent
snipsName & snipsRoom are also filled correctly.
device is in room Snips.
Since new syntax I was not able to find some usefull examples in FHEM blogs.
Any incorrect syntax in my example?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.