Skip to content

Commit

Permalink
Merge 4f259df into 8e0276b
Browse files Browse the repository at this point in the history
  • Loading branch information
helto4real committed Feb 6, 2021
2 parents 8e0276b + 4f259df commit f6c6bfa
Show file tree
Hide file tree
Showing 83 changed files with 115 additions and 5,982 deletions.
17 changes: 17 additions & 0 deletions Docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This is an example of docker-compose for NetDaemon. Copy this file and change settings as needed
version: "3"
services:
netdaemon:
image: "netdaemon/netdaemon"
ports:
- "1337:1337"
environment:
HOMEASSISTANT__HOST: ip_to_hass
HOMEASSISTANT__PORT: 8123
# Use environment varable at host or paste token here
HOMEASSISTANT__TOKEN: ${HOMEASSISTANT__TOKEN}
NETDAEMON__GENERATEENTITIES: "False"
LOGGING__MINIMUMLEVEL: info
TZ: Europe/Stockholm
volumes:
- ~/netdaemon_apps/apps:/data
42 changes: 0 additions & 42 deletions src/App/NetDaemon.App/Common/Attributes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,46 +45,4 @@ public sealed class DisableLogAttribute : System.Attribute
/// </summary>
[System.AttributeUsage(System.AttributeTargets.Method, Inherited = false, AllowMultiple = false)]
public sealed class HomeAssistantServiceCallAttribute : System.Attribute { }

/// <summary>
/// Attribute to mark function as callback for state changes
/// </summary>
[System.AttributeUsage(System.AttributeTargets.Method, Inherited = false, AllowMultiple = true)]
public sealed class HomeAssistantStateChangedAttribute : System.Attribute
{
/// <summary>
/// Default constructor
/// </summary>
/// <param name="entityId">Unique id of entity</param>
/// <param name="to">To state filtered</param>
/// <param name="from">From state filtered</param>
/// <param name="allChanges">Get all changes, ie also attribute changes</param>
public HomeAssistantStateChangedAttribute(string entityId, object? to = null, object? from = null, bool allChanges = false)
{
EntityId = entityId;
To = to;
From = from;
AllChanges = allChanges;
}

/// <summary>
/// Get all changes, even if only attribute changes
/// </summary>
public bool AllChanges { get; }

/// <summary>
/// Unique id of the entity
/// </summary>
public string EntityId { get; }

/// <summary>
/// From state filter
/// </summary>
public object? From { get; }

/// <summary>
/// To state filter
/// </summary>
public object? To { get; }
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NetDaemon.Common.Fluent
namespace NetDaemon.Common
{
/// <summary>
/// Context
Expand Down
86 changes: 0 additions & 86 deletions src/App/NetDaemon.App/Common/DelayResult.cs

This file was deleted.

1 change: 0 additions & 1 deletion src/App/NetDaemon.App/Common/ExtensionMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System.Dynamic;
using System.Globalization;
using System.Text;
using NetDaemon.Common.Fluent;
using System.Diagnostics.CodeAnalysis;
namespace NetDaemon.Common
{
Expand Down
50 changes: 0 additions & 50 deletions src/App/NetDaemon.App/Common/ExternalEvents.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,54 +18,4 @@ public class ExternalEventBase
public class AppsInformationEvent : ExternalEventBase
{
}

/// <summary>
/// Information about the application
/// </summary>
public class ApplicationInfo
{
/// <summary>
/// Unique id
/// </summary>
public string? Id { get; set; }
/// <summary>
/// All application dependencies
/// </summary>
public IEnumerable<string>? Dependencies { get; set; }

/// <summary>
/// If app is enabled or disabled
/// </summary>
public bool IsEnabled { get; set; }

/// <summary>
/// Application description
/// </summary>
public string? Description { get; set; }

/// <summary>
/// Next scheduled event
/// </summary>
public DateTime? NextScheduledEvent { get; set; }

/// <summary>
/// Last known error message
/// </summary>
public string? LastErrorMessage { get; set; }
}

/// <summary>
/// All config information
/// </summary>
public class ConfigInfo
{
/// <summary>
/// Settings for NetDaemon
/// </summary>
public NetDaemonSettings? DaemonSettings { get; set; }
/// <summary>
/// Settings Home Assistant related
/// </summary>
public HomeAssistantSettings? HomeAssistantSettings { get; set; }
}
}
77 changes: 0 additions & 77 deletions src/App/NetDaemon.App/Common/Fluent/EntityBase.cs

This file was deleted.

Loading

0 comments on commit f6c6bfa

Please sign in to comment.