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
- platform: broadlink | |
host: 192.168.100.109 | |
mac: 'removed' | |
switches: | |
tv_power: | |
friendly_name: "TV Power" | |
command_on: 'JgBIAAABJZMTEhMSEzYSExITERQRExMSEjcTNhMSEzYTNhI3EzYTNhITEhMRFBE4EhITEhITExITNhM2EzYTEhI3EzYROBI3EgANBQ==' | |
command_off: 'JgBIAAABJZMTEhMSEzYSExITERQRExMSEjcTNhMSEzYTNhI3EzYTNhITEhMRFBE4EhITEhITExITNhM2EzYTEhI3EzYROBI3EgANBQ==' | |
- platform: template |
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
## Nano syntax highlighting for YAML files | |
## | |
## Author: Leo Arnold | |
## License: Public Domain | |
## URL: https://gist.github.com/leoarnold/96272e33753aff09163cf18ad641f028 | |
syntax "yaml" "\.(yml|yaml)$" | |
## Keys | |
icolor green "^[[:space:]]*(- )?[.0-9A-Z_/-]+:( |$)" |
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
- alias: What is being played? | |
trigger: | |
- platform: state | |
entity_id: sensor.gaming | |
action: | |
- service: notify.scott | |
data_template: | |
message: "{{ states.sensor.gaming }}" |
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
public class MiningJob | |
{ | |
public Asteroid TargetAsteroid { get; set; } | |
public int Row { get; set; } | |
public int Column { get; set; } | |
internal MiningVessel _vessel; | |
public bool FinishedBore { get; internal set; } | |
internal Size BoreSize{get;set;} | |
public MiningJob(Asteroid asteroid, MiningVessel vessel) |
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
import autogen | |
import ollama | |
import random | |
from ollama import ChatResponse | |
from autogen import AssistantAgent, ModelClient, UserProxyAgent | |
from types import SimpleNamespace | |
from autogen.agentchat.contrib.retrieve_assistant_agent import RetrieveAssistantAgent | |
from autogen.agentchat.contrib.retrieve_user_proxy_agent import RetrieveUserProxyAgent | |
config_list_custom = [{ |