net-daemon / docs Goto Github PK
View Code? Open in Web Editor NEWDocumentation for NetDaemon
License: MIT License
Documentation for NetDaemon
License: MIT License
public static void SetDatetime(this IEnumerable<InputDatetimeEntity> target, string? date = null, DateTime? time = null, string? datetime = null, long? timestamp = null)
{
target.CallService("set_datetime", new InputDatetimeSetDatetimeParameters { Date = date, Time = time, Datetime = datetime, Timestamp = timestamp });
}
The time parameter expectes DateTime but when passing a valid value it does not work. I changed it to string and passed a string time "14:00:00" and that works fine
The Secrets feature needs docs :)
In the land of HA, MQTT is rather popular. In HA automations, MQTT triggers are done via the MQTT trigger type or the device trigger type. It appears, MQTT events aren't ever published on the HA event bus, so code like the following wouldn't see it:
ha.Events
.Where(x => x.EventType != "state_changed")
.Subscribe(e => { Console.WriteLine(JsonSerializer.Serialize(e)); });
Is there another way to response to MQTT events, if not, would this be a good addition to JoySoftware.NetDaemon.Extensions.Mqtt
package, since an implementation would likely just read from MQTT as is done by AppDaemon?
Document TTS Speak function.
Added by Discord user helto
apt installation for .net 6 only works for x64. Since rpi is ARM, I switched the config to use the dotnet-install.sh script.
It would be nice to have this method in the instructions.
init_commands:
- >-
wget
https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb
-O packages-microsoft-prod.deb
- dpkg -i packages-microsoft-prod.deb
- rm packages-microsoft-prod.deb
- apt-get update
- apt-get install -y apt-transport-https
- apt-get update
- wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh
- chmod +x ./dotnet-install.sh
- ./dotnet-install.sh -c 6.0
- export PATH="$PATH:$HOME/.dotnet"
- . ~/.profile
- dotnet tool install -g JoySoftware.NetDaemon.HassModel.CodeGen
packages: []
log_level: info
config_path: /
Make sure the "netdaemon:" in config is documented
I can do it, but I don't have time right now, so I wanted to create an issue as for it not to be forgotten.
We added the I...Entity ore interfaces to enable libraries to interact with user generated entity classes. We need to explain how that works in the docs.
The instructions at https://netdaemon.xyz/docs/v3/started/development#24-studio-code-server-addon don't work.
dotnet-sdk-8.0
results in the error Unable to locate package dotnet-sdk-6.0
(i think because the container is based on an too old debian release)A workaround for 1.
is as follows:
init_commands:
- wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh
- chmod +x ./dotnet-install.sh
- ./dotnet-install.sh --channel 8.0
- export DOTNET_ROOT=$HOME/.dotnet
- export PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools
- export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
- dotnet tool install -g NetDaemon.HassModel.CodeGen
For 2.
the free-omnisharp-vscode
extension can be installed instead
the code snippet in line 51 of https://netdaemon.xyz/docs/api/api_entities doesn't fit the description "select on attributes" and is a duplicate of the sample just above.
So I suppose, it's a copy & paste mistake.
Added by Discord user helto
I can't yarn start
inside the container - yarn and docusaurus don't appear to be installed.
Just noticed .TurnOn() doesn't work with input booleans.
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.