GithubHelp home page GithubHelp logo

docs's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

docs's Issues

add some docs test

Describe your issue

Additional information

Added by Discord user helto

Small bug in CodeGen for SetDateTime

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

explain core interfaces

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.

Getting-Started-Instructions for Studio Code Server Addon don't work

The instructions at https://netdaemon.xyz/docs/v3/started/development#24-studio-code-server-addon don't work.

  1. Trying to install 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)
  2. The C# addons (ms-dotnettools.csharp) is not available for vscode-server(i believe because of issues with the licence of the addon)

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

Add examples for Event()

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.

Code Server config for Raspberry Pi

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: /

MQTT Triggers

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.