Created
April 3, 2020 22:27
-
-
Save helto4real/d2deffdbfbf10ac99ea0223ef4ea352f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using JoySoftware.HomeAssistant.NetDaemon.Common; | |
namespace Netdaemon.Generated.Extensions | |
{ | |
public static partial class EntityExtension | |
{ | |
public static MediaPlayerEntities MediaPlayerEx(this NetDaemonApp app) => new MediaPlayerEntities(app); | |
public static ScriptEntities ScriptEx(this NetDaemonApp app) => new ScriptEntities(app); | |
public static CameraEntities CameraEx(this NetDaemonApp app) => new CameraEntities(app); | |
public static LightEntities LightEx(this NetDaemonApp app) => new LightEntities(app); | |
public static SwitchEntities SwitchEx(this NetDaemonApp app) => new SwitchEntities(app); | |
public static SceneEntities SceneEx(this NetDaemonApp app) => new SceneEntities(app); | |
public static AutomationEntities AutomationEx(this NetDaemonApp app) => new AutomationEntities(app); | |
} | |
public partial class MediaPlayerEntities | |
{ | |
private readonly NetDaemonApp _app; | |
public MediaPlayerEntities(NetDaemonApp app) | |
{ | |
_app = app; | |
} | |
public IMediaPlayer PlexChrome2 => _app.MediaPlayer("media_player.plex_chrome_2"); | |
public IMediaPlayer Huset => _app.MediaPlayer("media_player.huset"); | |
public IMediaPlayer MelkersTv => _app.MediaPlayer("media_player.melkers_tv"); | |
public IMediaPlayer PlexTomasIpad => _app.MediaPlayer("media_player.plex_tomas_ipad"); | |
public IMediaPlayer PlexChrome3 => _app.MediaPlayer("media_player.plex_chrome_3"); | |
public IMediaPlayer Kok => _app.MediaPlayer("media_player.kok"); | |
public IMediaPlayer Sovrum => _app.MediaPlayer("media_player.sovrum"); | |
public IMediaPlayer PlexChromecast => _app.MediaPlayer("media_player.plex_chromecast"); | |
public IMediaPlayer TvNere => _app.MediaPlayer("media_player.tv_nere"); | |
public IMediaPlayer TvUppe => _app.MediaPlayer("media_player.tv_uppe"); | |
public IMediaPlayer PlexChrome => _app.MediaPlayer("media_player.plex_chrome"); | |
public IMediaPlayer TvRummetGh => _app.MediaPlayer("media_player.tv_rummet_gh"); | |
public IMediaPlayer Vardagsrum => _app.MediaPlayer("media_player.vardagsrum"); | |
public IMediaPlayer SallysHogtalare => _app.MediaPlayer("media_player.sallys_hogtalare"); | |
public IMediaPlayer PlexKodiAddOnLibreelec => _app.MediaPlayer("media_player.plex_kodi_add_on_libreelec"); | |
public IMediaPlayer KodiTvNere => _app.MediaPlayer("media_player.kodi_tv_nere"); | |
public IMediaPlayer MelkersRum => _app.MediaPlayer("media_player.melkers_rum"); | |
public IMediaPlayer TvUppe2 => _app.MediaPlayer("media_player.tv_uppe2"); | |
} | |
public partial class ScriptEntities | |
{ | |
private readonly NetDaemonApp _app; | |
public ScriptEntities(NetDaemonApp app) | |
{ | |
_app = app; | |
} | |
public IEntity Notify => _app.Entity("script.notify"); | |
public IEntity TvOffScene => _app.Entity("script.tv_off_scene"); | |
public IEntity Setnightmode => _app.Entity("script.setnightmode"); | |
public IEntity EveningScene => _app.Entity("script.evening_scene"); | |
public IEntity NightScene => _app.Entity("script.night_scene"); | |
public IEntity NotifyGreet => _app.Entity("script.notify_greet"); | |
public IEntity TvScene => _app.Entity("script.tv_scene"); | |
public IEntity CleaningScene => _app.Entity("script.cleaning_scene"); | |
public IEntity FilmScene => _app.Entity("script.film_scene"); | |
public IEntity MorningScene => _app.Entity("script.morning_scene"); | |
public IEntity ColorScene => _app.Entity("script.color_scene"); | |
public IEntity DayScene => _app.Entity("script.day_scene"); | |
} | |
public partial class CameraEntities | |
{ | |
private readonly NetDaemonApp _app; | |
public CameraEntities(NetDaemonApp app) | |
{ | |
_app = app; | |
} | |
public IEntity Kamera3 => _app.Entity("camera.kamera_3"); | |
public IEntity MyCamera => _app.Entity("camera.my_camera"); | |
public IEntity KameraStream => _app.Entity("camera.kamera_stream"); | |
} | |
public partial class LightEntities | |
{ | |
private readonly NetDaemonApp _app; | |
public LightEntities(NetDaemonApp app) | |
{ | |
_app = app; | |
} | |
public IEntity HallByra => _app.Entity("light.hall_byra"); | |
public IEntity SallysRum => _app.Entity("light.sallys_rum"); | |
public IEntity HallDorr => _app.Entity("light.hall_dorr"); | |
public IEntity JulbelysningSovrum => _app.Entity("light.julbelysning_sovrum"); | |
public IEntity TvrumFonsterHoger => _app.Entity("light.tvrum_fonster_hoger"); | |
public IEntity SallysRumFonster => _app.Entity("light.sallys_rum_fonster"); | |
public IEntity TomasRumFonster => _app.Entity("light.tomas_rum_fonster"); | |
public IEntity JulbelysningVardagsrumH => _app.Entity("light.julbelysning_vardagsrum_h"); | |
public IEntity MelkersRumFonster => _app.Entity("light.melkers_rum_fonster"); | |
public IEntity FarstukvistLed => _app.Entity("light.farstukvist_led"); | |
public IEntity JulbelysningKokH => _app.Entity("light.julbelysning_kok_h"); | |
public IEntity KokFonster => _app.Entity("light.kok_fonster"); | |
public IEntity Vardagsrum => _app.Entity("light.vardagsrum"); | |
public IEntity TvrumBakgrundTv => _app.Entity("light.tvrum_bakgrund_tv"); | |
public IEntity TomasRum => _app.Entity("light.tomas_rum"); | |
public IEntity VardagsrumFonsterHoger => _app.Entity("light.vardagsrum_fonster_hoger"); | |
public IEntity TvrumVagg => _app.Entity("light.tvrum_vagg"); | |
public IEntity Ambient => _app.Entity("light.ambient"); | |
public IEntity VardagsrumFonsterMitten => _app.Entity("light.vardagsrum_fonster_mitten"); | |
public IEntity TvrumFonsterVanster => _app.Entity("light.tvrum_fonster_vanster"); | |
public IEntity Sovrum => _app.Entity("light.sovrum"); | |
public IEntity Farstukvisten => _app.Entity("light.farstukvisten"); | |
public IEntity SovrumBrya => _app.Entity("light.sovrum_brya"); | |
public IEntity KokLillaFonster => _app.Entity("light.kok_lilla_fonster"); | |
public IEntity JulbelysningKokV => _app.Entity("light.julbelysning_kok_v"); | |
public IEntity JulbelysningVardagsrumM => _app.Entity("light.julbelysning_vardagsrum_m"); | |
public IEntity JulbelysningVardagsrumV => _app.Entity("light.julbelysning_vardagsrum_v"); | |
public IEntity Tvrummet => _app.Entity("light.tvrummet"); | |
public IEntity MelkersRum => _app.Entity("light.melkers_rum"); | |
public IEntity SovrumFonster => _app.Entity("light.sovrum_fonster"); | |
public IEntity Kok => _app.Entity("light.kok"); | |
public IEntity JulbelysningTomasRum => _app.Entity("light.julbelysning_tomas_rum"); | |
public IEntity VardagsrumFonsterVanster => _app.Entity("light.vardagsrum_fonster_vanster"); | |
} | |
public partial class SwitchEntities | |
{ | |
private readonly NetDaemonApp _app; | |
public SwitchEntities(NetDaemonApp app) | |
{ | |
_app = app; | |
} | |
public IEntity Switch3 => _app.Entity("switch.switch3"); | |
public IEntity JulbelysningKokV => _app.Entity("switch.julbelysning_kok_v"); | |
public IEntity Remote1B3 => _app.Entity("switch.remote_1_b3"); | |
public IEntity Switch66 => _app.Entity("switch.switch66"); | |
public IEntity JulbelysningKokH => _app.Entity("switch.julbelysning_kok_h"); | |
public IEntity JulbelysningSovrum => _app.Entity("switch.julbelysning_sovrum"); | |
public IEntity Switch1Rb => _app.Entity("switch.switch_1_rb"); | |
public IEntity SallysRumFonster => _app.Entity("switch.sallys_rum_fonster"); | |
public IEntity Switch1 => _app.Entity("switch.switch1"); | |
public IEntity JulbelysningVardagsrumM => _app.Entity("switch.julbelysning_vardagsrum_m"); | |
public IEntity Remote1B2 => _app.Entity("switch.remote_1_b2"); | |
public IEntity Switch2 => _app.Entity("switch.switch2"); | |
public IEntity Tv => _app.Entity("switch.tv"); | |
public IEntity Switch15 => _app.Entity("switch.switch15"); | |
public IEntity Switch8MelkersTv => _app.Entity("switch.switch8_melkers_tv"); | |
public IEntity Switch1Lb => _app.Entity("switch.switch_1_lb"); | |
public IEntity Switch13 => _app.Entity("switch.switch13"); | |
public IEntity KokKaffebryggare => _app.Entity("switch.kok_kaffebryggare"); | |
public IEntity JulbelysningVardagsrumH => _app.Entity("switch.julbelysning_vardagsrum_h"); | |
public IEntity ADiod => _app.Entity("switch.a_diod"); | |
public IEntity TvrumVagg => _app.Entity("switch.tvrum_vagg"); | |
public IEntity ComputerTomas => _app.Entity("switch.computer_tomas"); | |
public IEntity ShellyRelay => _app.Entity("switch.shelly_relay"); | |
public IEntity Switch9outdoor => _app.Entity("switch.switch9outdoor"); | |
public IEntity Film => _app.Entity("switch.film"); | |
public IEntity Sonoff1Relay => _app.Entity("switch.sonoff1_relay"); | |
public IEntity Testswitch => _app.Entity("switch.testswitch"); | |
public IEntity JulbelysningTomasRum => _app.Entity("switch.julbelysning_tomas_rum"); | |
public IEntity JulbelysningVardagsrumV => _app.Entity("switch.julbelysning_vardagsrum_v"); | |
public IEntity Motorvarmare => _app.Entity("switch.motorvarmare"); | |
public IEntity MelkersRumFonster => _app.Entity("switch.melkers_rum_fonster"); | |
public IEntity Switch16 => _app.Entity("switch.switch16"); | |
public IEntity Switch10 => _app.Entity("switch.switch10"); | |
public IEntity Switch14 => _app.Entity("switch.switch14"); | |
public IEntity Switch12 => _app.Entity("switch.switch12"); | |
public IEntity Switch7 => _app.Entity("switch.switch7"); | |
public IEntity Switch11 => _app.Entity("switch.switch11"); | |
public IEntity Switch5MelkersFan => _app.Entity("switch.switch5_melkers_fan"); | |
public IEntity Remote1B1 => _app.Entity("switch.remote_1_b1"); | |
public IEntity Switch4TomasFan => _app.Entity("switch.switch4_tomas_fan"); | |
} | |
public partial class SceneEntities | |
{ | |
private readonly NetDaemonApp _app; | |
public SceneEntities(NetDaemonApp app) | |
{ | |
_app = app; | |
} | |
public IEntity Stadning => _app.Entity("scene.stadning"); | |
public IEntity Dag => _app.Entity("scene.dag"); | |
public IEntity Kvall => _app.Entity("scene.kvall"); | |
public IEntity Natt => _app.Entity("scene.natt"); | |
public IEntity Morgon => _app.Entity("scene.morgon"); | |
} | |
public partial class AutomationEntities | |
{ | |
private readonly NetDaemonApp _app; | |
public AutomationEntities(NetDaemonApp app) | |
{ | |
_app = app; | |
} | |
public IEntity SetThemeAtStartup => _app.Entity("automation.set_theme_at_startup"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment