C# 家庭自动化图书馆
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/394303/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Home Automation Library
提问by Aaron
I'm a C# developer looking to get into home automation as a hobby. I have done a little research, but was wondering if anyone knows of a good .NET library that supports Insteon hardware. I'd rather use Insteon than X10 due to reliability issues.
我是一名 C# 开发人员,希望将家庭自动化作为一种爱好。我做了一些研究,但想知道是否有人知道支持 Insteon 硬件的优秀 .NET 库。由于可靠性问题,我宁愿使用 Insteon 而不是 X10。
My ultimate objective at this point is to have a simple home automation server (maybe lights and climate control) with a secure ASP.NET web application interface. I'm more interested in actually building it and learning about it rather than finding an existing solution.
在这一点上,我的最终目标是拥有一个简单的家庭自动化服务器(可能是灯光和气候控制)和一个安全的 ASP.NET Web 应用程序界面。我对实际构建和了解它更感兴趣,而不是找到现有的解决方案。
Thanks for any suggestions or comments.
感谢您的任何建议或意见。
Edit: Thanks for the help, everyone.
编辑:谢谢大家的帮助。
Does anyone have experience with Z-wave technology? Seems promising - appears to be higher quality hardware, includes a core library, supports .NET, etc. ControlThinkappears to have a pretty good controller and SDK.
有没有人有使用Z-wave 技术的经验?看起来很有希望 - 似乎是更高质量的硬件,包括一个核心库,支持 .NET 等。 ControlThink似乎有一个非常好的控制器和 SDK。
Here's an interesting application to consider: Stall Status: Know Before You Go
这是一个值得考虑的有趣应用:失速状态:出发前了解
采纳答案by Scott Whitlock
We found there really wasn't much developer support for Insteon unless you wanted to buy their SDK and agree to their rather heavy-handed license agreement. Rather than go that route, we wrote our own .NET library called FluentDwellingand we open-sourced it. You can find a download link, and some get-you-started code samples if you follow that link.
我们发现对 Insteon 的开发者支持并不多,除非你想购买他们的 SDK 并同意他们相当严厉的许可协议。我们没有走那条路,而是编写了自己的 .NET 库,称为FluentDwelling,并将其开源。如果您点击该链接,您可以找到下载链接和一些入门代码示例。
The source code comes with a full suite of unit tests (requires NUnit, also free), so you can add improvements and make changes if you like.
源代码附带一整套单元测试(需要 NUnit,也是免费的),因此您可以根据需要进行改进和更改。
回答by Qwark
I think this would bee a place to start insteon sdk
我认为这将是一个开始insteon sdk的地方
回答by Joel Coehoorn
Some research via Google looking for an Insteon SDKonly yields stuff from way back in 2005. There's only information on serial port interfaces(no USB) and the only language mentioned is something called DockLight scripting that also looks like it hasn't been updated since 2005.
一些通过 Google 寻找Insteon SDK 的研究只产生了2005 年的东西。只有关于串行端口接口(没有 USB)的信息,并且提到的唯一语言是一种叫做 DockLight 脚本的语言,它看起来自 2005 年以来就没有更新过。
X10, on the other hand, boasts support for C++, VisualBasic, VB Script, and JavaScript. No .Net listed, but VisualBasic/VB Script likely implies a COM object you can easily import for use in C#. They're also much more USB friendly, and the kit costs 1/4 of the Insteon kit ($50 vs $200).
另一方面,X10支持 C++、VisualBasic、VB Script 和 JavaScript。没有列出 .Net,但 VisualBasic/VB 脚本可能暗示了一个 COM 对象,您可以轻松导入以在 C# 中使用。它们也更加 USB 友好,该套件的成本是 Insteon 套件的 1/4(50 美元对 200 美元)。
If you were actually building a product I would understand the reliability concern. But since this is a home project I think you'll have much better luck with X10.
如果您实际上是在构建产品,我会理解可靠性问题。但由于这是一个家庭项目,我认为 X10 的运气会好得多。
回答by Morten Christiansen
I can't remember if it covers the specific technologies you mention but you should definately check out this episode of .NET Rocks. They talk about all the different stuff you can do with home automation and a lot about how to do it. I believe one of the main points was that Microsoft RoboticsStudio was a good tool to use, as it uses a lot of the same abstractions as you would otherwise use.
我不记得它是否涵盖了您提到的特定技术,但您绝对应该查看这一集 .NET Rocks。他们谈论了您可以使用家庭自动化做的所有不同的事情,以及如何做到这一点。我相信其中一个要点是 Microsoft RoboticsStudio 是一个很好用的工具,因为它使用了许多与您将使用的抽象相同的抽象。
回答by J Wynia
I would avoid X10 like the plague. Between things like modern TV's and power strips, bridged power junction boxes and just plain strange wiring, X10 signals tend to just "disappear" and never get to their destination.
我会像躲避瘟疫一样避开 X10。在现代电视和电源板、桥接电源接线盒和普通奇怪的接线之间,X10 信号往往只是“消失”而永远不会到达目的地。
If you really want to give X10 a shot, I've got a box of X10 stuff in the garage that was worth $250+ new and it's all completely useless in my house, so you can have it. Some of it worked in my old house, but it won't so much as turn a light on 2 outlets away where I live now.
如果你真的想试一试 X10,我在车库里有一盒价值 250 美元以上的 X10 东西,而且在我家里完全没用,所以你可以拥有它。其中一些在我的旧房子里工作,但它不会在我现在住的地方打开 2 个插座的灯。
X10 is viewed by most modern electronics as "noise" on the line (which, technically, it is) and something to be filtered out rather than passed along or left alone.
X10 被大多数现代电子产品视为线路上的“噪音”(从技术上讲,确实如此)并且需要过滤掉而不是传递或单独留下的东西。
回答by zimmer62
I know it's been a long time since this post was made, however I was wondering if you'd picked a route, and what you've ended up doing with home automation since.
我知道这篇文章已经很长时间了,但是我想知道您是否选择了一条路线,以及从那以后您最终在家庭自动化方面做了什么。
I've been doing this kind of stuff with many of the technologies available, but I've always done it on top of a product called homeseer. .net plug-ins and vb.net and c# scripting can be done on top of this foundation. I've been thinking of rolling my own similar to what you were describing. Any thoughts, tips, decisions you've made etc?
我一直在使用许多可用的技术来做这种事情,但我总是在名为 homeseer 的产品之上完成它。.net 插件以及 vb.net 和 c# 脚本都可以在此基础上完成。我一直在考虑滚动我自己的类似于你所描述的。你有什么想法、技巧、决定等吗?
回答by Jimmy Engtr?m
A bit off topic, but listen to the latest episode of dot net rocks, one of the finalists of my .net story built an home automation solution that really made me want to dive into home automation again. Totally awsome solution.
有点题外话,但听听 dot net rock 的最新一集,我的 .net 故事的决赛选手之一构建了一个家庭自动化解决方案,这真的让我想再次深入研究家庭自动化。非常棒的解决方案。
回答by arah
you can try C-bus by Clipsal(schneider) it's free.
你可以试试Clipsal(schneider)的C-bus,它是免费的。